cyrus104 Posted May 21, 2020 Share Posted May 21, 2020 @Darren Kitchen / Hak5, Great product, I'm running into an issue that I thought your code mitigates but isn't working properly. First time I run the SJ it works as expected, when I disconnect and run it again (same network or different vlan) it fails. I say fails but it gets to the pulling dhcp (cyan / magenta) and after that it switches to a quick cleanup and then finish. If I do a cleanup and remove the loot files, the second run will work as expected but I need to do a clean up. I am using the example Nmap-C2 from the hak5 github. It looks like you handled this with the SCAN_FILE (/etc/shark/nmap/scan-count), oddly on the SJ I never see this file increment. I see the lines below: In setup() # Create tmp scan file if it doesn't exist SCAN_FILE=$SCAN_DIR/scan-count if [ ! -f $SCAN_FILE ]; then touch $SCAN_FILE && echo 0 > $SCAN_FILE fi In run() SCAN_N=$(cat $SCAN_FILE) SCAN_M=$(( $SCAN_N + 1 )) In finish() echo $SCAN_M > $SCAN_FILE Any thoughts on why the SCAN_FILE next increments would be great. I've cat'd it out after each run and it's always blank or zero. Thanks a bunch Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.