Added Internet Access Tester payload

best_text_editor
Darren Kitchen 2019-10-24 10:45:50 -07:00 committed by GitHub
parent 2985e1e0e0
commit c86625f930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#!/bin/bash
#
# Title: Internet Access Tester
# Author: Hak5Darren
# Version: 1.0
#
# Description: This payload tests the port to see if the Shark Jack can
# obtain an IP address from DHCP, and if it can access the Internet by
# testing a specified HTTP URL.
#
# LED Red... No IP address from DHCP yet
# LED Yellow... Obtained IP address from DHCP, waiting on Internet access
# LED Green... Confirmed access to Internet
PUBLIC_TEST_URL="http://www.example.com"
LED R SOLID
while ! ifconfig eth0 | grep "inet addr"; do sleep 1; done
LED Y SOLID
while ! wget $PUBLIC_TEST_URL -qO /dev/null; do sleep 1; done
LED G SOLID