PDA

View Full Version : Issues found when launching Mana from NetHunter app menu



s0b31t
2015-09-27, 20:34
Hello guys, I just found a strange issue when launching mana from NetHunter app menu, my test phone is 1+plus with 4.4.4 Kitkat, and the script i'm using is /usr/share/mana-toolkit/run-mana/start-nat-full-kitkat.sh.

After lauched from app menu, sslsplit would die along with the script after the script finish executing. I try nohup, setsid, and include the full command in brackets, none of them works, and the parent process doesn't change as well. I have to either remove '&' at the end of the command, or add 'wait $pid' as the last line of the script to prevent it exiting. However when i launch the script in terminal like ssh, this issue is gone, sslsplit won't exit when script finished. I note sslsplit is the only binary being executed in that script as background process, the rests like sslstrip, firelamb, etc are all python scripts and not affected.

So i wonder is there someone else had this issue before, and is there any better solutions? I really don't like there are multiple scripts still running when their jobs are done
(root 5385 0.0 0.0 964 472 ? S 20:24 0:00 /system/bin/sh /system/bin/bootkali mana-full-kitkat start
root 5400 0.0 0.0 2168 968 ? S 20:24 0:00 /bin/bash /usr/bin/start-mana-full-kitkat
root 5401 0.2 0.0 2184 1048 ? S 20:24 0:00 /bin/bash ./start-nat-full-kitkat.sh)


PS: Another issue, but i've solution, when launching dhcpd with wlan0 attached to a network, it would be failed due to the reason '/var/run/dhcpd.pid' exists, so have to remove it before 'dhcpd -cf /etc/mana-toolkit/dhcpd.conf $phy'. Anyone experience it before?