mirror of https://github.com/hak5/shark-files.git
minor optimization
parent
91412d7066
commit
1fc1fdaad0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue