Compare commits
8 Commits
5487e33d6d
...
e5a05cd220
Author | SHA1 | Date |
---|---|---|
Dallas Winger | e5a05cd220 | |
Peaks | dcf527fd86 | |
BuffBaby253 | 6f8d44d068 | |
BuffBaby253 | cb64802ff5 | |
BuffBaby253 | 26040becb0 | |
BuffBaby253 | 4c5fdf62a1 | |
BuffBaby253 | 4d3431c2e4 | |
Dallas Winger | df16f22319 |
|
@ -0,0 +1,46 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Title: Wireshark PCAP Capture & Examine
|
||||||
|
# Author: BuffBaby253
|
||||||
|
# Version: 1.1
|
||||||
|
#
|
||||||
|
# Description: uses tcpdump to capture network traffic for 1 minute and saves into pcap
|
||||||
|
# into loot storage folder for further analysis in Wireshark
|
||||||
|
#
|
||||||
|
# Note: If you want to extend the time, change the amount of seconds in line 38
|
||||||
|
#
|
||||||
|
# LED SETUP making loot directory and waiting for an ip address from DHCP
|
||||||
|
# LED ATTACK capturing packets
|
||||||
|
# LED FINISH the Shark Jack is finished and you can now download saved pcaps to open in Wireshark
|
||||||
|
|
||||||
|
LOOT_DIR=/root/loot/pcaps
|
||||||
|
INTERFACE="eth0"
|
||||||
|
seconds=60
|
||||||
|
|
||||||
|
|
||||||
|
# preparing for capture
|
||||||
|
|
||||||
|
LED SETUP
|
||||||
|
|
||||||
|
# setting up loot directory
|
||||||
|
mkdir -p $LOOT_DIR
|
||||||
|
COUNT=$(($(ls -l $LOOT_DIR/*.txt | wc -l)+1))
|
||||||
|
|
||||||
|
# waiting for ip address
|
||||||
|
|
||||||
|
NETMODE DHCP_CLIENT
|
||||||
|
while [ -z "$IPADDR" ]; do sleep 1 && IPADDR=$(ifconfig eth0 | grep "inet addr"); done
|
||||||
|
|
||||||
|
LED ATTACK
|
||||||
|
|
||||||
|
# using tcpdump to capture network traffic and save to loot directory
|
||||||
|
tcpdump -i $INTERFACE -w $LOOT_DIR/net-traffic_$COUNT.txt &
|
||||||
|
|
||||||
|
# sleep command will let it run for amount of seconds selected
|
||||||
|
sleep $seconds
|
||||||
|
|
||||||
|
# end capture
|
||||||
|
killall tcpdump
|
||||||
|
|
||||||
|
# the work is done and you can unplug
|
||||||
|
LED FINISH
|
|
@ -7,7 +7,7 @@
|
||||||
# Description: This payload will install the specified package using opkg.
|
# Description: This payload will install the specified package using opkg.
|
||||||
# Use this to provision your Shark Jack for payloads with dependencies.
|
# Use this to provision your Shark Jack for payloads with dependencies.
|
||||||
# Set PACKAGE_TO_INSTALL to the package you wish to install - for example
|
# Set PACKAGE_TO_INSTALL to the package you wish to install - for example
|
||||||
# PACKAGE_TO_INSTALL="nano" will install the best text editor on Earth ;)
|
# PACKAGE_TO_INSTALL="vim" will install the best text editor on Earth ;)
|
||||||
# For a list of available packages, set LIST_PACKAGES to 1 - the results
|
# For a list of available packages, set LIST_PACKAGES to 1 - the results
|
||||||
# will be saved to a log file in the loot directory. Requires Internet.
|
# will be saved to a log file in the loot directory. Requires Internet.
|
||||||
#
|
#
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
# LED SPECIAL (Cyan Blink)... Saving package list to log file
|
# LED SPECIAL (Cyan Blink)... Saving package list to log file
|
||||||
# LED FINISH (Green Fast Blink to Solid)... Package install or list successful
|
# LED FINISH (Green Fast Blink to Solid)... Package install or list successful
|
||||||
|
|
||||||
PACKAGE_TO_INSTALL="nano"
|
PACKAGE_TO_INSTALL="vim"
|
||||||
LIST_PACKAGES=0
|
LIST_PACKAGES=0
|
||||||
LOG_DIR=/root/loot/package-installer
|
LOG_DIR=/root/loot/package-installer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue