Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- #(c) blackplatypus
- echo "[x] Stop Injection"
- lsmod | grep wl1251 > /dev/null 2>&1
- if [ $? -eq 0 ]
- then
- echo "[-] Stop wlan0 interface"
- ifconfig wlan0 down
- echo "[-] Unload injection modules"
- rmmod msm_wifi
- rmmod wl1251_sdio
- rmmod wl1251
- rmmod mac80211
- rmmod cfg80211
- if [ "`uname -r`" == "2.6.29.6injection-flykernel-13" ]
- then
- rmmod rfkill_backport
- fi
- rmmod compat
- if [ "`uname -r`" == "2.6.29.6injection-flykernel-13" ]
- then
- echo "[+] Load wlan.ko module"
- insmod /system/lib/modules/wlan.ko
- echo "[+] Load Firmware"
- wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /system/etc/wifi/tiwlan.ini
- echo "[+] Start tiwlan0 interface"
- ifconfig tiwlan0 up
- echo "tiwlan0 should be up and running :)"
- netcfg
- else
- echo "Sry no support for wlan.ko :("
- fi
- else
- lsmod | grep wlan > /dev/null 2>&1
- if [ $? -eq 0 ]
- then
- echo "[+] Injection already stopped!!"
- exit
- else
- if [ "`uname -r`" == "2.6.29.6injection-flykernel-13" ]
- then
- echo "[+] Load wlan.ko module"
- insmod /system/lib/modules/wlan.ko
- echo "[+] Load Firmware"
- wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /system/etc/wifi/tiwlan.ini
- echo "[+] Start tiwlan0 interface"
- ifconfig tiwlan0 up
- echo "tiwlan0 should be up and running :)"
- netcfg
- else
- echo "Sry no support for wlan.ko :("
- fi
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement