Updated ngrep payload. (#25)
parent
1579f80efc
commit
916e810873
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue