Grey Hack

Grey Hack

Not enough ratings
My version of theplague1988's autowifi
By BiteyCalderon
My version of theplague1988's autowifi.

changes:
Included the get_library function so it doesn't need an external one
it sorts the signals so the strongest are on the bottom (easier to see on small windows when there are many)
added a function (as in mathematical) to automatically pick an appropriate number of ACKs to save time
   
Award
Favorite
Favorited
Unfavorite
Intro
Just a revision of theplague1988's autowifi, nothing special. I just started this game so let me know if any changes cause trouble.

Original script, most of the hard work by far:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2866064345
Autowifi
// So we can grab crypto.so later in script get_library = function(libname = "metaxploit.so") mx = null libpaths = ["/lib/", parent_path(program_path) + "/"] for libpath in libpaths mx = include_lib(libpath + libname) if not mx then print("Warning: Library not found at '" + libpath + "'.") else print("Information: Found library '" + libname + "'.") break end if end for return mx end function // Gather all network devices into an array. array = [] devices = get_shell.host_computer.network_devices for device in devices.split("\n") array = array + [device.split(" ")[0]] end for // List all network devices and get user option. option = null while not option or (option.val < 0 or option.val > array.len) i = 1 for device in array if device == "" then continue print(i + ". " + device) i = i + 1 end for print("0. Exit\n") option = user_input("Enter choice? ") end while // Check if option is exit. if option.val == 0 then exit("Quitting wifi autohack...") netdev = array[option.val - 1] networks = get_shell.host_computer.wifi_networks(array[option.val - 1]) sorted_networks = [] for x in networks bssid = x.split(" ")[0] sigstrength = x.split(" ")[1][0:2].to_int() essid = x.split(" ")[2] sorted_networks.push([sigstrength, bssid, essid]) end for sorted_networks = sort(sorted_networks, [0], 1) //change the 1 to a zero to reverse the sorting option = null while not option or (option.val < 0 or option.val > sorted_networks.len) // List all wifi networks. i = 1 info = "OPTION PWR BSSID ESSID" for network in sorted_networks info = info + "\n" + i + ". " + network i = i + 1 end for print(format_columns(info)) print("0. Exit") option = user_input("Enter choice? ") end while // Check if option is exit. if option.val == 0 then exit("Quitting wifi autohack...") // Use crypto crypt = get_library("crypto.so") if not crypt then exit() // The actual function according to that chart I saw on Steam guides is // y = 300000 * x^-1 but this one gives a little safety factor bssid = sorted_networks[option.val - 1][1] sigstrength = sorted_networks[option.val - 1][0] essid = sorted_networks[option.val - 1][2] req_acks = 330000 * (sigstrength ^ (-0.999)) print("Signal strength: " + sigstrength + " Collecting " + round(req_acks) + " ACKS") // Crack wifi password. crypt.airmon("start", netdev) crypt.aireplay(bssid, essid, req_acks) crypt.airmon("stop", netdev) pass = crypt.aircrack(home_dir + "/file.cap") // Connect to wifi network. print("Trying to connect to " + essid) if not get_shell.host_computer.connect_wifi(netdev, bssid, essid, pass) then print("Failed to connect to " + essid) end if
1 Comments
BiteyCalderon  [author] 19 Nov, 2024 @ 4:15am 
Having failures at low signals 30ish percent or so, will change the curve a bit in a revision soon