Jump to content

sslstrip autostart


tertko

Recommended Posts

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 by tertko
Link to comment
Share on other sites

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 by coolgeek
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...