Results 1 to 3 of 3

Thread: bash script alias

  1. #1
    Join Date
    2013-Jun
    Posts
    123

    bash script alias

    hello all,

    just thought i would share something that my be useful to others.
    Code:
    nano .bashrc
    alias mac="ifconfig wlan0 down; ifconfig wlan0 hw ether 00:11:22:33:44:55; ifconfig wlan0 up"
    restart terminal
    with wifi disconnected
    type
    Code:
    mac
    and it will shutdown ifconfig, give you a different mac address and then bring it back up without having to type everything out

    edit ~ here are some that I have created already and I am finding useful:
    alias mac="ifconfig wlan0 down; ifconfig wlan0 hw ether 00:11:22:33:44:55; ifconfig wlan0 up"
    alias updatesys='apt-get update && apt-get upgrade'
    alias reaverit='mac;airmon-ng start wlan0; ifconfig mon0 down; macchanger -m 00:11:22:33:44:55 mon0; ifconfig mon0 up; airodump-ng mon0'
    alias reaverit2='echo reaver -i mon0 -c x -b xx:xx:xx:xx:xx:xx -vv -a -S -N -E'
    Last edited by brazen; 2014-01-03 at 01:14.

  2. #2
    Join Date
    2013-Nov
    Posts
    24

    Talking

    Quote Originally Posted by brazen View Post
    hello all,

    just thought i would share something that my be useful to others.
    Code:
    nano .bashrc
    alias mac="ifconfig wlan0 down; ifconfig wlan0 hw ether 00:11:22:33:44:55; ifconfig wlan0 up"
    restart terminal
    with wifi disconnected
    type
    Code:
    mac
    and it will shutdown ifconfig, give you a different mac address and then bring it back up without having to type everything out
    This is awesome!! So useful for all my airmon-ng and airodump-ng commands and macchanger commands!
    Visit my blog! PenTesting for Amateurs, by Amateurs -- Request your own tutorial, or send one to me to post.
    "thevanoutside" a Wordpress Blog!

  3. #3
    Join Date
    2013-Jun
    Posts
    123
    careful with the macchanger commands... i have been reading that mac changer isn't as helpful as we think and it was recommended to use ifconfig wlan0 ether xx:xx:xx:xx:xx:xx instead of macchanger -m xx:xx;xx:xx:xx:xx

    but someone can chime in here and comment for clarification.

Similar Threads

  1. Saving a bash script fails due to GVfs problem
    By relayer77 in forum General Archive
    Replies: 0
    Last Post: 2020-08-14, 23:02
  2. KAAIS v2 {Bash Script}
    By r4wstring in forum General Archive
    Replies: 3
    Last Post: 2013-09-21, 15:37
  3. KAAIS v2 {Bash Script}
    By r4wstring in forum Installing Archive
    Replies: 0
    Last Post: 2013-08-23, 00:52

Posting Permissions

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