From c86625f9304aebf2c29dba6d4a5d93affcde0fb1 Mon Sep 17 00:00:00 2001 From: Darren Kitchen Date: Thu, 24 Oct 2019 10:45:50 -0700 Subject: [PATCH] Added Internet Access Tester payload --- .../util/internet-access-tester/payload.sh | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 payloads/library/util/internet-access-tester/payload.sh diff --git a/payloads/library/util/internet-access-tester/payload.sh b/payloads/library/util/internet-access-tester/payload.sh new file mode 100644 index 0000000..60c8244 --- /dev/null +++ b/payloads/library/util/internet-access-tester/payload.sh @@ -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 \ No newline at end of file