with open("flag.pdf", "rb") as f:
data = f.read()
data = data.replace(b"\r\n", b"\n")
data = data.replace(b"\r\x00", b"\r")
with open("flag-fixed.pdf", "wb") as f:
f.write(data)
tshark -r file.pcapng --export-objects "ftp-data, ."
tshark -r file.pcapng -T fields -e data
tshark -r file.pcapng -T fields -e json.value.string -Y json | tr -d '\n ' && echo
tshark -i <your interface here> -Y wlan.fc.type_subtype==0x08 -T fields -e wlan.ssid -r sus.pcap
$base64data = " "
$data = [System.Convert]::FromBase64String($base64data)
$ms = New-Object System.IO.MemoryStream
$ms.Write($data, 0, $data.Length)
$ms.Seek(0,0) | Out-Null
$sr = New-Object System.IO.StreamReader(New-Object System.IO.Compression.DeflateStream($ms, [System.IO.Compression.CompressionMode]::Decompress))
while ($line = $sr.ReadLine()) {
$line
}
Get-WinEvent -LogName Microsoft-Windows-PowerShell/Operational | % Message > text.txt
Place to look for:
- /asset
- /values/public.xml
- /values/strings.xml
- /lib