minor optimization

pull/8/head
Rick Farina (Zero_Chaos) 2020-02-26 22:29:30 -05:00
parent 91412d7066
commit 1fc1fdaad0
No known key found for this signature in database
GPG Key ID: A29433C0AA431DDC
1 changed files with 7 additions and 11 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
#
# Title: Sample Nmap Payload for Shark Jack
# Author: Hak5
# Version: 1.0
# Title: Demo Advanced Payload for Shark Jack
# Author: Zero_Chaos
# Version: 2.0
#
# Scans target subnet with Nmap using specified options. Saves each scan result
# to loot storage folder.
@ -11,23 +11,18 @@
# Amber..........Scanning
# Green..........Finished
#
# See nmap --help for options. Default "-sP" ping scans the address space for
# fast host discovery.
NMAP_OPTIONS="-sP --host-timeout 30s --max-retries 3"
SCAN_DIR=/etc/shark/nmap
# See nmap --help for options. Default "-sS" syn scans the address space
# with heavy timeouts for fast host discovery.
NMAP_OPTIONS="-sS --host-timeout 30s --max-retries 3"
function finish() {
LED CLEANUP
# Kill Nmap
wait "${1}"
kill "${1}" &> /dev/null
# Sync filesystem
echo "${SCAN_M}" > "${SCAN_FILE}"
sync
sleep 1
LED FINISH
sleep 1
@ -39,6 +34,7 @@ function finish() {
function setup() {
LED SETUP
SCAN_DIR=/etc/shark/nmap
# Create tmp scan directory
mkdir -p "${SCAN_DIR}" &> /dev/null