Updated ngrep payload. (#25)

pull/26/head
StampeRnator 2017-11-21 11:11:11 +01:00 committed by Sebastian Kinne
parent 1579f80efc
commit 916e810873
2 changed files with 13 additions and 7 deletions

View File

@ -4,6 +4,7 @@
NGREP_OPTIONS=("-wiql" "user|pass" "port" "21") NGREP_OPTIONS=("-wiql" "user|pass" "port" "21")
CONDITION="" CONDITION=""
WCNUM=3 WCNUM=3
BUTTON_WAIT="5s"
LOOT_DIR="/mnt/loot/ngrep" LOOT_DIR="/mnt/loot/ngrep"
LOG_FILE="${LOOT_DIR}/ngrep-${RANDOM}.log" LOG_FILE="${LOOT_DIR}/ngrep-${RANDOM}.log"
@ -45,13 +46,15 @@ function run() {
do do
NO_LED=true BUTTON && { NO_LED=true BUTTON && {
checkLog && { checkLog && {
LED FINISH BUTTON $BUTTON_WAIT && {
kill $npid LED FINISH
kill $npid
sleep 3 sleep 3
LED OFF LED OFF
halt halt
}
} || { } || {
LED FAIL LED FAIL
sleep 3 sleep 3

View File

@ -1,9 +1,12 @@
# ngrep payload # ngrep payload
Credits: Hak5Darren, Sebkinne
Small Edit: SebSeifert
# Description # Description
Does packet sniffing stuff Does packet sniffing stuff
If the Button is pressed you have x seconds to push the button one more time. If pressed the payload ends and cleans up. Else it keeps running.
## Options ## Options
BUTTON_WAIT = The seconds you can wait until the button must be pressed to end the payload.