Projects STRLCPY wifi_db Commits e940d554
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    README.md
    1 1  # wifi_db
    2  -Script to parse Aircrack-ng captures into a SQLite database, get handshakes (in 22000 hashcat format), extract MGT identities, get interesting relations between APs, clients and it's Probes, get WPS information and have a global view of all the APs seen.
     2 +Script to parse Aircrack-ng captures into a SQLite database and extract useful information, like handshakes (in 22000 hashcat format), MGT identities, interesting relations between APs, clients and it's Probes, WPS information and have a global view of all the APs seen.
    3 3  
    4 4  ```
    5 5   _ __ _ _ _
    skipped 268 lines
  • ■ ■ ■ ■ ■ ■
    wifi_db.py
    skipped 14 lines
    15 15  # import nest_asyncio ; nest_asyncio.apply() ->
    16 16  # Fix RuntimeError: This event loop is already running”
    17 17   
     18 +VERSION = '1.0'
     19 + 
     20 + 
    18 21  def banner():
    19 22   print('''
    20 23   _ __ _ _ _
    skipped 5 lines
    26 29   by r4ulcl
    27 30  ''')
    28 31   
     32 +def printVersion():
     33 + print("wifi_db version:", VERSION)
    29 34   
    30 35  def main():
    31 36   nest_asyncio.apply()
    32 37   '''Function main. Parse argument and exec the functions '''
    33 38   # args
    34 39   parser = argparse.ArgumentParser()
     40 + parser.add_argument("-V", "--version", help="write the wifi_db version",
     41 + action="store_true")
    35 42   parser.add_argument("-v", "--verbose", help="increase output verbosity",
    36 43   action="store_true")
    37 44   parser.add_argument("--debug", help="increase output verbosity to debug",
    skipped 19 lines
    57 64   help="output database, if exist append to the given"
    58 65   " database (default name: %(default)s)")
    59 66   
    60  - parser.add_argument("capture", type=str, nargs='+',
     67 + parser.add_argument("capture", type=str, nargs='*',
    61 68   help="capture folder or file with extensions .csv, "
    62 69   ".kismet.csv, .kismet.netxml, or .log.csv. If no "
    63 70   "extension is provided, all types will be added. "
    skipped 1 lines
    65 72   "wildcards (*) to select multiple files or folders.")
    66 73   args = parser.parse_args()
    67 74   
     75 + if args.version:
     76 + printVersion()
     77 + exit()
     78 + 
     79 + if not args.capture:
     80 + print("wifi_db.py: error: the following arguments are required: capture")
     81 + exit()
     82 + 
    68 83   # vars
     84 + version = args.version
    69 85   verbose = args.verbose
    70 86   debug = args.debug
    71 87   obfuscated = args.obfuscated
    skipped 146 lines
Please wait...
Page is in error, reload to recover