Results 1 to 5 of 5

Thread: grep the output of airodump

  1. #1
    Just burned his ISO
    Join Date
    Dec 2008
    Posts
    7

    Default grep the output of airodump

    I'm trying to write a script that needs to read the BSSID's that airodump spits out. Is there a way I can do this? obviously a simple parse, grep doesn't work.

  2. #2
    Junior Member
    Join Date
    Mar 2008
    Posts
    96

    Default

    best bet is using awk,

    Code:
    cat test-01.txt | awk -F "," '{ print $1 }'
    for example will display all the BSSID's and client MAC addresses you captured in your dump.

    Code:
    BSSID
    02:18:F8:F9:73:F6
    02:18:F8:F9:73:F5
    
    Station MAC
    00:13:10:3D:82:0F

  3. #3
    Junior Member NaZirCon's Avatar
    Join Date
    Sep 2007
    Posts
    71

    Default

    Python quickie :

    Code:
    # let's say the Airodump's file is called "temp.cap-01.txt" :
    
    capFile= open( "temp.cap-01.txt", "r" )
    
    # headers to get rid of:
    
    s1 = ( "BSSID, First time" )
    s2 = ( "Station MAC, Firs" )
    
    for line in capFile:
    
    # get rid of the headers:
    
            if not line.rfind(s1) != -1 and  not line.rfind(s2) != -1:
    
              
    #print first 16 chars:
    
                print  line[0:17]
    
    capFile.close()
    Beer is served only to members of the trade union!

  4. #4
    Developer
    Join Date
    Mar 2007
    Posts
    6,124

    Default

    There is also a new tool in aircrack-ng svn written by my friend TheX1le called airgraph-ng which is a python parser for airodump. It gives a graphic image but I'm sure you could add a few lines to output the essids into a list.

    You can get it here svn co http://trac.aircrack-ng.org/svn/branch/airgraph-ng airgraph-ng

    and here is a screenshot of it

    http://d.imagehost.org/view/0033/dakahuna-6_prn.gif

  5. #5

    Default

    Quote Originally Posted by pureh@te View Post
    There is also a new tool in aircrack-ng svn written by my friend TheX1le called airgraph-ng which is a python parser for airodump. It gives a graphic image but I'm sure you could add a few lines to output the essids into a list.

    You can get it here svn co http://trac.aircrack-ng.org/svn/branch/airgraph-ng airgraph-ng

    and here is a screenshot of it

    http://d.imagehost.org/view/0033/dakahuna-6_prn.gif
    That is VERY cool! Downloaded it, gave it a try and BOOM...cool nodal relationships in nifty graphical form!!! Thank you Mr h@te for the info!

Posting Permissions

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