I tried a version of the "are we connected" script and according to that (when run as a payload) it shows that I do have an internet connection, yet (somehow) when I run it when ssh'ed into the bashbunny... it fails. Also, wget is taking forever to finish in both.
payload.txt: (passes)
LED R
ATTACKMODE ECM_ETHERNET
LED R G B
ifconfig > /root/udisk/loot/ifconfig
while true; do
LED B
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
LED G
sleep 5
else
LED R
sleep 5
fi
done
test.sh: (fails)
#!/bin/bash
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
echo passed
else
echo failed
fi
ifconfig output for both:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:520 (520.0 B) TX bytes:520 (520.0 B)
usb0 Link encap:Ethernet HWaddr 5a:00:00:5a:5a:00
inet addr:172.16.64.1 Bcast:172.16.64.255 Mask:255.255.255.0
inet6 addr: fe80::5800:ff:fe5a:5a00/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26507 (25.8 KiB) TX bytes:690 (690.0 B)