maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   NeoPwn v2 = BackTrack Mobile! (https://talk.maemo.org/showthread.php?t=45472)

one1002 2010-10-28 13:14

Re: NeoPwn v2 = BackTrack Mobile!
 
i can't seem to find it on the forum..mind linking it to me? thx

aureonfirewire 2010-10-28 14:31

Re: NeoPwn v2 = BackTrack Mobile!
 
here
https://garage.maemo.org/plugins/wik...id=1382&type=g

ps . i canot start nmap from chroot ,and he is instaled
what im typing wrong
pleace someone respond

now i have instaled nmap again in neopwn and have same prob

venomousweb 2010-10-28 21:09

Re: NeoPwn v2 = BackTrack Mobile!
 
the only way i have managed to do it is the following

chroot into neopwn
cd /usr/local/bin/
./nmap {command}

one1002 2010-10-29 10:46

Re: NeoPwn v2 = BackTrack Mobile!
 
is there a script to turn on and off the packet injection?

pls help

Megaltariak 2010-10-29 11:06

Re: NeoPwn v2 = BackTrack Mobile!
 
Two scripts that I have rapidly made
For enable injection (assuming that the modules are in /opt/neopwn/):
Code:

#!/bin/sh
if test -f /var/run/inject.pid
then echo "Injection is already enabled ;)"
exit 0
fi
if iwconfig wlan0|grep "Access Point: Not-Associated">/dev/null
then true
else echo "Disconnect from wifi first :p"
exit 1
fi
ifconfig wlan0 down
rmmod wl12xx
rmmod mac80211
rmmod cfg80211
cd /opt/neopwn/
insmod compat.ko
insmod rfkill_backport.ko
insmod cfg80211.ko
insmod mac80211.ko
insmod wl1251.ko
insmod wl1251_spi.ko
iwconfig wlan0 mode monitor
ifconfig wlan0 up
echo $$ > /var/run/inject.pid
echo "Injection is enabled ;)"

For disable injection:
Code:

#!/bin/sh
if test -f /var/run/inject.pid
then true
else echo "Injection is already disabled"
exit 0
fi
ifconfig wlan0 down
rmmod wl1251_spi
rmmod wl1251
rmmod mac80211
rmmod cfg80211
rmmod rfkill_backport
rmmod compat
modprobe cfg80211
modprobe mac80211
modprobe wl12xx
iwconfig wlan0 mode managed
ifconfig wlan0 up
rm /var/run/inject.pid
echo "Injection disabled ;)"

Feel free to adapt them for your needs.

one1002 2010-10-29 14:54

Re: NeoPwn v2 = BackTrack Mobile!
 
thank you!

however, i have no idea how to save this as shell script..i'm using windows..it'll save as .txt rather than .sh.. =(

edited : now the modules are in /MyDocs/neo/..where do i save this script?

one1002 2010-10-29 15:53

Re: NeoPwn v2 = BackTrack Mobile!
 
if i type "chmod +x insneomod.sh" , i got no such file or directory...

if i type "chmod +x /home/user/MyDocs/insneomod.sh", i got nothing..i think its executable already..

however,when i type "sh /home/user/MyDocs/insneomod.sh" , i got :line 25: syntax error : end of file unexpected (expecting "fi")

what seems to be the problem?

this is my script..i change your "opt/neopwn/" to "/mydocs/neo/" for where the modules are located..

Code:

#!/bin/sh
if test -f /var/run/inject.pid
then echo "Injection is already enabled ;)"
exit 0
fi
if iwconfig wlan0|grep "Access Point: Not-Associated">/dev/null
then true
else echo "Disconnect from wifi first :p"
exit 1
fi
ifconfig wlan0 down
rmmod wl12xx
rmmod mac80211
rmmod cfg80211
cd /home/user/MyDocs/neo/
insmod compat.ko
insmod rfkill_backport.ko
insmod cfg80211.ko
insmod mac80211.ko
insmod wl1251.ko
insmod wl1251_spi.ko
iwconfig wlan0 mode monitor
ifconfig wlan0 up
echo $$ > /var/run/inject.pid
echo "Injection is enabled ;)"


Megaltariak 2010-10-29 17:37

Re: NeoPwn v2 = BackTrack Mobile!
 
The script works for me, I think that the problem is the windows editors behavior with the newline character.
Use vi/vim or leafpad (more user-friendly, install it from application manager) on your N900 to paste and edit the script.

one1002 2010-10-29 18:12

Re: NeoPwn v2 = BackTrack Mobile!
 
yes i did..i use the phone to copy the script, and paste it in leafpad and then saved it to .sh..

however,when i try to run it...i still got the ":line 25: syntax error : end of file unexpected (expecting "fi"

Megaltariak 2010-10-29 18:20

Re: NeoPwn v2 = BackTrack Mobile!
 
Seriously, I don't see where it fails, for me it works with vim and leafpad.
Try to paste again


All times are GMT. The time now is 18:18.

vBulletin® Version 3.8.8