So I created this updated payload script and saw the packet squirrel device blinking yellow, but still not getting any "dump.pcap" installed on the device or the USB.
Here is my output to the tcp_payload.log that was created on the device.
Starting payload
MKDIR Created
TCPDUMP Payload started
NETMODE TRANSPARENT
Sleep 5
function run() {
# Create loot directory
mkdir -p /mnt/loot/tcpdump &> /dev/null
echo "MKDIR Created" >> /root/tcp_payload.log
# Start tcpdump on the bridge interface
tcpdump -i br-lan -s 0 -w /mnt/loot/tcpdump/dump.pcap &> /dev/null & tpid=$!
echo "TCPDUMP Payload started" >> /root/tcp_payload.log
# Wait for button to be pressed (disable button LED)
NO_LED=true BUTTON
finish $tpid
}
# This payload will only run if we have USB storage
#[[ ! -f /mnt/NO_MOUNT ]] && {
[[ ! -f /mnt/NO_MOUNT ]] && {
echo "Starting payload" >> /root/tcp_payload.log
LED ATTACK
run &
monitor_space $! &
} || {
echo "Payload failed, no USB storage device detected" >> /root/tcp_payload.log
LED FAIL
}
Is there anything wrong with the script?