tertko Posted December 5, 2012 Share Posted December 5, 2012 (edited) hi there im having issues when trying to autostart sslstrip this is from the log: 00:01:16 Pineapple user.info sysinit: /usb/modules/sslstrip/autostart.sh: line 7: sslstrip: not found now, if i run manually the same script over ssh when i login, everything works so i am not sure why i have this error tried searching the forums but didnt come up with nothing root@Pineapple:/usb/modules/sslstrip# sh autostart.sh sslstrip 0.6 by Moxie Marlinspike running... root@Pineapple:/usb/modules/sslstrip# cat autostart.sh #!/bin/sh MYPATH="$(dirname $0)/" MYTIME=`date +%s` iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-ports 10000 sslstrip -k -f -w ${MYPATH}log/output_${MYTIME}.log 2>&1 & Edited December 5, 2012 by tertko Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted December 5, 2012 Share Posted December 5, 2012 I guess it's a path issue. I will have a look at it. Please post in the sslstrip thread next time ;) Quote Link to comment Share on other sites More sharing options...
tertko Posted December 5, 2012 Author Share Posted December 5, 2012 no problem, i will. i doubt its a path issue, as when i start the same script manually, it works. which is weird. if you need any more logs or something, lemme know Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted December 5, 2012 Share Posted December 5, 2012 (edited) I'm pretty sure this is a path issue because the environment variables are not setup at the same moment. You can try it, just add the full path to sslstrip and try to reboot. Edited December 5, 2012 by Whistle Master Quote Link to comment Share on other sites More sharing options...
tertko Posted December 5, 2012 Author Share Posted December 5, 2012 tried to add full path, the error i get after reboot is: 00:01:17 Pineapple user.info sysinit: env: can't execute 'python': No such file or directory i added also a "sleep 60" in the autostart script, but this doesnt work also Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted December 6, 2012 Share Posted December 6, 2012 Ok, so all paths seem to have not being set properly... Strange... I don't know if other are experiencing the same issue as it doesn't seem to be related to the module itself Quote Link to comment Share on other sites More sharing options...
tertko Posted December 7, 2012 Author Share Posted December 7, 2012 I am also wondering if i am the only one having this issue. For people here on the forums , if you can test the autostart of sslstrip and post some logs, please do. Quote Link to comment Share on other sites More sharing options...
inTheDMZ Posted December 7, 2012 Share Posted December 7, 2012 I also had this problem with autostarting sslstrip (not using the module) Quote Link to comment Share on other sites More sharing options...
coolgeek Posted December 7, 2012 Share Posted December 7, 2012 (edited) I'm receiving the same errors as tertko. It can't find sslstrip with the default autostart, and once I give it the full path name for sslstrip there is an error finding python. My SSH connection doesn't work properly on start either, but the persist script that runs every 5 minutes "fixes" that. I did a quick check on the environment variables, and it seems like the USB locations aren't added until after the autostat script runs. During autostart.sh: PATH='/sbin:/usr/sbin:/bin:/usr/bin' Pineapple up and running: PATH='/bin:/sbin:/usr/bin:/usr/sbin:/usb/usr/bin:/usb/usr/sbin' The missing env's can be added to make things work, but this seems to be more of an Ad hoc solution: export PATH=${PATH}:/usb/usr/bin:/usb/usr/sbin I need to do further research on when the usb variables are added, and check if it can either be moved up in the startup process or if the execution of autostart can be delayed. Mk4 2.7.0 Edited December 7, 2012 by coolgeek Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.