Add Nmap Recon

Ports Scanning with Nmap.
pull/36/head^2
TW-D 2022-02-07 03:54:46 -05:00 committed by GitHub
parent 784df7bf8b
commit a11fbb44f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# Nmap Recon
- Title: Nmap Recon
- Author: TW-D
- Version: 1.0
- Target: Any
- Category: Recon
- Attackmode: RNDIS_ETHERNET
## Description
Ports Scanning with Nmap.
## Configuration
From "nmap-recon_payload.txt" change the value of the protocol for **ATTACKMODE** :
```
######## SETUP ########
LED SETUP
##
# (Windows) ATTACKMODE RNDIS_ETHERNET
# or
# (Mac and Linux) ATTACKMODE ECM_ETHERNET
##
ATTACKMODE RNDIS_ETHERNET
```
## Trigger
>
> __nmap-recon
>

View File

@ -0,0 +1,74 @@
#!/bin/bash
#
# Title: Nmap Recon
# Description:
# Ports Scanning with Nmap.
#
# Author: TW-D
# Version: 1.0
# Target: Any
# Category: Recon
# Attackmode: RNDIS_ETHERNET
#
# TESTED ON
# ===============
# Ubuntu 20.04.3 LTS with "Logitech Keyboard K120"
#
# STATUS
# ===============
# Magenta solid ................................... SETUP
# Yellow single blink ............................. ATTACK
# White fast blink ................................ CLEANUP
# Green 1000ms VERYFAST blink followed by SOLID ... FINISH
#
######## TRIGGER ########
MATCH __nmap-recon
######## INITIALIZATION ########
readonly KEYCROC_LOOT="/root/loot/scan-output_${RANDOM}.xml"
readonly NMAP_COMMAND="nmap -Pn -sT -p1-65535 -sV --script=\"banner\" -O -T4 -oX ${KEYCROC_LOOT} --open --webxml"
######## SETUP ########
LED SETUP
##
# (Windows) ATTACKMODE RNDIS_ETHERNET
# or
# (Mac and Linux) ATTACKMODE ECM_ETHERNET
##
ATTACKMODE RNDIS_ETHERNET
sleep 7
GET_VARS
######## ATTACK ########
LED ATTACK
if [ -n "${TARGET_IP}" ]
then
/bin/bash -c "${NMAP_COMMAND} ${TARGET_IP}" > /dev/null
fi
######## CLEANUP ########
LED CLEANUP
sync
######## FINISH ########
LED FINISH
ATTACKMODE OFF
######## OFF ########
LED OFF
reboot --force