Active Topics

 


Reply
Thread Tools
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#591
i can't seem to find it on the forum..mind linking it to me? thx
 
Posts: 23 | Thanked: 0 times | Joined on Sep 2010
#592
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

Last edited by aureonfirewire; 2010-10-28 at 17:35.
 
Posts: 9 | Thanked: 3 times | Joined on Sep 2010 @ UK
#593
the only way i have managed to do it is the following

chroot into neopwn
cd /usr/local/bin/
./nmap {command}
 
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#594
is there a script to turn on and off the packet injection?

pls help
 
Posts: 346 | Thanked: 271 times | Joined on Jan 2010
#595
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.
 

The Following User Says Thank You to Megaltariak For This Useful Post:
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#596
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?

Last edited by one1002; 2010-10-29 at 15:15.
 
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#597
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 ;)"

Last edited by one1002; 2010-10-29 at 15:56.
 
Posts: 346 | Thanked: 271 times | Joined on Jan 2010
#598
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.
 
Posts: 309 | Thanked: 115 times | Joined on May 2010 @ Malaysia
#599
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"
 
Posts: 346 | Thanked: 271 times | Joined on Jan 2010
#600
Seriously, I don't see where it fails, for me it works with vim and leafpad.
Try to paste again
 

The Following User Says Thank You to Megaltariak For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 22:13.