Added ping tester payload

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

View File

@ -0,0 +1,19 @@
#!/bin/bash
#
# Title: Ping Tester
# Author: Hak5Darren
# Version: 1.0
#
# Description: This payload tests to see if the Shark Jack can ping
# a specified resource.
#
# LED SETUP (Magenta)... Obtaining IP address from DHCP
# LED FAIL (Red blink)... Unable to ping specified resource
# LED FINISH (Green blink to solid)... Successfully pinged resource
RESOURCE_TO_PING="192.168.86.27"
LED SETUP
while ! ifconfig eth0 | grep "inet addr"; do sleep 1; done
sleep 2
ping -c1 $RESOURCE_TO_PING && LED FINISH || LED FAIL