Find specific file

Linux

ceil@NIXEASY:~$ find / -name "flag.txt" 2>/dev/null
/home/flag/flag.txt
$ grep -r 'HTB{' /
/usr/lib/int-check.sh:HTB{1***********k}

Windows

Powershell

Get-ChildItem -Path C:\ -Filter "test.txt" -Recurse -ErrorAction SilentlyContinue

Cmd

cd C:\


C:\> dir flag.txt /s /p
C:\> findstr /SIM /C:"password" *.txt *.ini *.cfg *.config *.xml *.git *.ps1 *.yml
Credentials Hunting

Last updated