script.md
if it compiles it works :)
# my documentation if it compiles it works :)
script.src
// Developer : deadx
// Version : 1.0
// Description : Eazy wifi cracker
// Date : 2023-10-19
crypto = include_lib("/lib/crypto.so")
printInfo = function(message)
print("<color=#8787F5>[*] " + message + "</color>")
end function
printError = function(message)
print("<color=#FF0000>[-] " + message + "</color>")
end function
printSuccess = function(message)
print("<color=#7DCE13>[+] " + message + "</color>")
end function
printBanner = function(bool)
print("<color=#607EAA>AIRGEDON</color>")
print("<color=#607EAA>v1.0.0 - deadmaux</color>")
end function
if not crypto then
printError("Crypto.so not found.")
return
end if
aireplayWifi = function(net)
printInfo("Now setting WiFi: " + net.essid)
acks = net.signal.replace("%","").to_int
reqacks = 300000 / acks + 100
crypto.airmon("start","wlan0")
printInfo("Collecting " + reqacks + " ACKs...")
print("\n")
crypto.aireplay(net.bssid,net.essid,reqacks)
pass = crypto.aircrack(current_path + "/file.cap")
printSuccess("WiFi Cracked! Password: " + pass)
file = get_shell.host_computer.File(current_path + "/file.cap")
file.delete()
crypto.airmon("stop","wlan0")
return pass
end function
main = function(boolean)
if not boolean then
clear_screen()
printBanner()
end if
printInfo("Loading WiFi networks...")
networks = get_shell.host_computer.wifi_networks("wlan0")
formatted = []
for network in networks
bssid = network.split(" ")[0]
essid = network.split(" ")[2]
pwr = network.split(" ")[1]
id = networks.indexOf(network)
id = id + 1
formatted.push({"id":id,"bssid":bssid,"essid":essid,"signal":pwr})
printSuccess( id + " : " + essid + " " + pwr )
end for
printInfo("Insert network id")
while true
input = user_input("<color=#607EAA>ID> ")
args = input.split(" ")
if args[0].to_int <= formatted.len then
if args.len > 1 then
printError("Please enter an valid ID.")
continue
end if
id = args[0].to_int - 1
aireplayWifi(formatted[id])
end if
end while
end function
main()