PineDominator Posted August 25, 2012 Posted August 25, 2012 (edited) Ok so I have a script in /usb/ called deauth.sh and it works good when running from an ssh session, BUT when I add it to the startup script IE "/usb/deauth.sh &" or even to WM module "button" and also running it from the advance tab "/usb/./deauth.sh" it does not deauth me from my home network??? works when running directly from an ssh session "/usb/./deauth.sh" #!/bin/shairmon-ng start wlan1ifconfig wlan0 | awk '/HWaddr/ {print $5}' > /tmp/deauth-whitelist.txtmdk3 mon0 d -w /tmp/deauth-whitelist.txt -c 1,2,3,4,5,6,7,8,9,10,11 &sleep 36killall -9 mdk3airmon-ng stop mon0[/CODE]ps If I remove the "&" from the script it doesn't get hung up? it does go to sleep 36 and the process gets killed, the process mdk3 is in the resources page until killed.EDIT:problem was that I had installed mdk3 to usb and I also needed to add this[CODE]ln -s /usb/usr/sbin/mdk3 /usr/sbin/mdk3[/CODE] Edited August 25, 2012 by petertfm
PineDominator Posted August 25, 2012 Author Posted August 25, 2012 Weird thing I have been doing everything I can to track down the bug and I found the issue:-D I install mdk3 to usb and I had to put this into the script "/usb/usr/sbin/mdk3 mon0 d -w /tmp/deauth-whitelist.txt -c 1,2,3,4,5,6,7,8,9,10,11 &" what do I have to sym link to make this work without /usb/usr/sbin?
WatskeBart Posted August 25, 2012 Posted August 25, 2012 Have you tried sh /usb/deauth.sh &[/CODE]in your startup script?Maybe the problem resides in the /usb[color=#ff0000][b]/./[/b][/color]deauth.sh part
PineDominator Posted August 25, 2012 Author Posted August 25, 2012 Have you tried sh /usb/deauth.sh &[/CODE]in your startup script?Maybe the problem resides in the /usb[color=#ff0000][b]/./[/b][/color]deauth.sh partya I even tried bash /usb/deauth.sh to no avail, I figured out how to permanently fix it by adding a sym link in my mdk3 install script
PineDominator Posted August 25, 2012 Author Posted August 25, 2012 Still weird though <_< you know It could have been that bash works but I did not change the tag #!/bin/sh to #!/bin/bash, it could have been passing control to sh
Sebkinne Posted September 15, 2012 Posted September 15, 2012 As this issue seems to have been resolved, I will close this thread. Best Regards, Sebkinne
Recommended Posts