diff --git a/source/wifi.src b/source/wifi.src index 4a46827..fd3620e 100644 --- a/source/wifi.src +++ b/source/wifi.src @@ -1,10 +1,18 @@ +if params.len < 1 or params[0] == "-h" or params[0] == "--help" then + current_program = get_shell.host_computer.File(program_path) + print("Usage: " + current_program.name + " [-l|-a||]") + print(" -l list nearby networks") + print(" -a crack and connect to all networks") + print(" MyNetwork crack and connect by ESSID") + print(" AA:BB:CC:DD:EE:FF crack and connect by BSSID") + exit +end if crypto = include_lib("/lib/crypto.so") computer = get_shell.host_computer cappath = current_path + "/file.cap" info = "BSSID STRENGTH ESSID" netname = "" -command = "" -if params.len > 0 then command = params[0] +command = params[0] for letter in computer.network_devices if letter == " " then break @@ -19,7 +27,7 @@ for net in nets if command == "-l" then info = info + "\n" + net continue - else if command == essid or command == bssid or command == "" then + else if command == essid or command == bssid or command == "-a" then crypto.airmon("start", netname) crypto.aireplay(bssid, essid, floor(300000 / strength)) pwd = crypto.aircrack(cappath)