Full TX Power & Injection Test

Discussion in 'Scripts & Commands' started by Mr. Penguin, 19 Jul 2012.

  1. Mr. Penguin

    Mr. Penguin Administrator
    Staff Member Admin Moderator VIP

    Joined:
    18 May 2012
    Messages:
    3,087
    Likes Received:
    1,187
    Trophy Points:
    351
    I created this script awhile back for myself. It will set the regulatory domain for your device (in my case an RTL8187L device) to illegal limits of 30dBm. This script also tests to see if injection is working. Enjoy:

    Code:
    Select All
    iw reg set BO iwconfig wlan1 txpower 30dbm sudo aireplay-ng -9 wlan1
    Note that if you download the attachment script that you might need to set permissions as 755 by chmod before you can run it as a script. E.g:

    Code:
    Select All
    sudo chmod 755 '/root/Desktop/Aircrack-ng-SCRIPTS/Test-Injection.sh'
     

    Attached Files:

    • Test-Injection.sh
      File size:
      442 bytes
      Views:
      128
      MD5:
      e11d6d17ae10126016a3ebb1b6de7747
    • Like Like x 3
  2. cristi_28

    cristi_28 Well-Known Member
    Dev Team VIP

    Joined:
    30 Oct 2012
    Messages:
    21
    Likes Received:
    22
    Trophy Points:
    178
    Code:
    Select All
    iw reg set BO iwconfig wlan0 txpower 30dbm sudo airmon-ng start wlan0 sudo aireplay-ng -9 mon0 sudo airmon-ng stop mon0 sleep 5
     
    • Like Like x 2
  3. vampiricbunny1800

    vampiricbunny1800 Well-Known Member
    Dev Team VIP

    Joined:
    8 Oct 2012
    Messages:
    242
    Likes Received:
    64
    Trophy Points:
    63
    whats the sleep 5 for ? and how do you set it back to lets say us ? ( would it be US ) ? because 30dbm is illegal here so it have to be a quick test
     
  4. cristi_28

    cristi_28 Well-Known Member
    Dev Team VIP

    Joined:
    30 Oct 2012
    Messages:
    21
    Likes Received:
    22
    Trophy Points:
    178
    Code:
    Select All
    #!/bin/sh # Test-Injection.sh # # # Created by Adrian on 7/12/11. # Modified by Adrian Woolley, DishingTech. All rights reserved. http://dishingtech.blogspot.com # This is a basic test to determine if you card successfully supports injection. Works if you see Injection is working! Network Scan script: http://pastebin.com/1qCm75yX: needs to be initiated first iw reg set BO iwconfig wlan0 txpower 30dbm sudo airmon-ng start wlan0 sudo aireplay-ng -9 mon0 sudo airmon-ng stop mon0 sleep 5
     
    • Like Like x 1
Loading...
  • About Us

    We are a community mixed with professionals and beginners with an interest in wireless security, auditing and pentesting. Feel free to check out and upload resources.


    You can also find us on: Twitter and Facebook

  • Donate to Us

    Did you find our forums useful? Feel free to donate Bitcoin to us using the form below. Those who donate the equivlent of $10 USD or more will be upgraded to VIP membership. Don't have Bitcoin? Use your credit card to GO VIP here. Don't want to fork out some coin? There are other ways to GO VIP. Bitcoin: 1LMTGSoTyJWXuy2mQkHfgMzD7ez74x1Z8K