1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-07 20:50:38 +02:00
GTFOBins.github.io/_gtfobins/wireshark.md
Andrea Cardaci 1d2353ad30 Add wireshark GUI Lua execution
As suggested by #396.
2023-10-21 17:18:18 +02:00

909 B

functions
command sudo
description code
This requires GUI interaction. Start Wireshark, then from the main menu, select "Tools" -> "Lua" -> "Evaluate". A window opens that allows to execute [`lua`](/gtfobins/lua/) code. wireshark
description code
This technique can be used to write arbitrary files, i.e., the dump of one UDP packet. After starting Wireshark, and waiting for the capture to begin, deliver the UDP packet, e.g., with `nc` (see below). The capture then stops and the packet dump can be saved: 1. select the only received packet; 2. right-click on "Data" from the "Packet Details" pane, and select "Export Packet Bytes..."; 3. choose where to save the packet dump. PORT=4444 sudo wireshark -c 1 -i lo -k -f "udp port $PORT" & echo 'DATA' | nc -u 127.127.127.127 "$PORT"