1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

findコマンドでの大量のエラーメッセージを非表示にする(ルートから検索する時に便利)

Last updated at Posted at 2022-04-24

概要

ペネトレ攻撃対象に侵入後のファイル探索にて、ルートディレクトリからfind検索した際に大量のパーミッションのエラーメッセージが表示されてしまう。
簡単なファイル構成のマシンならともかく、必要な情報が埋もれてしまうので、エラーメッセージを非表示としたい。

方法

答えは単純に、エラーメッセージを/dev/nullに飛ばす。
例えば、入手したいファイル名flag.txtが判明しており、探索をルートからを実施する場合は、以下のようfindを実行すれば良い。

$ find / -name flag.txt 2>/dev/null

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?