hacks · published

Flag Search

Suchen und sicherstellen, dass keine Flag übersehen wird.

LinuxWindowsHacks

LINUX

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

WINDOWS CMD

dir flag.txt /s /p  

WINDOWS PowerShell

1

findstr /S /I /M "FLAG_PREFIX{" C:\Users\*.txt C:\Users\*.ini C:\Users\*.log 2>$null

2

Get-ChildItem C:\Users -Recurse -Force -ErrorAction SilentlyContinue -Include *.txt,*.ini,*.log | Select-String -SimpleMatch "FLAG_PREFIX{" -List

METERPRETER

search -f  flag.txt### SEARCH FOR STRING THROUGH WHOLE MEMORY  

LINUX

find . -type f -exec grep -iF "FLAG_PREFIX{" /dev/null {} +