bbounce.md
-Only currently works with 'wlan0'. -Only works if you have a wifi card connected to the PC that the script is running on. -This is not perfect. It will crack a wifi's passwod every time it attempts to connect, does not used stored passwords to connections -This is not a random selection, but stores the available wifi connections in a list and iterate throughout them. When the last connection is connected to, it will go back to the first wifi in the list.
# bbounce documentation -Only currently works with 'wlan0'. -Only works if you have a wifi card connected to the PC that the script is running on. -This is not perfect. It will crack a wifi's passwod every time it attempts to connect, does not used stored passwords to connections -This is not a random selection, but stores the available wifi connections in a list and iterate throughout them. When the last connection is connected to, it will go back to the first wifi in the list.
bbounce.src
crypto = include_lib("/lib/crypto.so")
computer = host_computer(get_shell) // Get the host computer from running shell
netCType = active_net_card(computer) // get active net card on the computer
if netCType == "WIFI" then print("WIFI connection found.") else exit("Only works with WIFI.") // check if the active card is wifi or lan
net_card = network_devices(computer).split(" ")[0] // extract the wlan string for use
print("Starting WIFI scan...")
networks = computer.wifi_networks(net_card) // check for the wlan networks available to this computer
if len(networks) == 0 then print("No networks found.")
c = 1
network_map = {}
conn_map = {}
for network in networks
key = network.split(" ")
network_map[c] = key
parsed = network_map[c]
pwr = parsed[1][:-1].val
// ensure power is viable for connection
// this can be changed to make connection cracking faster
if pwr > 20 then
conn_map[c] = parsed
print(key[0]+ " " + key[1] + " " + key[2])
end if
c = c + 1
end for
keys = conn_map.indexes
print(keys)
c = 0
counter = 0
while counter <= len(keys)
print("--------------------------------------------")
c = keys[counter]
print("c = " + c)
print("counter = " + counter)
parsed = conn_map[c]
bssid = parsed[0]
pwr = parsed[1][:-1].val
essid = parsed[2]
potAcks = 300000 / pwr
print("Starting bounce to " + essid)
print("Press CTRL+C to exit")
print("Required acks = " + potAcks)
crypto.aireplay(bssid, essid, potAcks)
wifiPass = crypto.aircrack("/home/" + active_user + "/file.cap")
connRes = computer.connect_wifi(net_card, bssid, essid, wifiPass)
if typeof(connRes) == "string" then
print(connRes)
print("--------------------------------------------")
continue
else
print("Connected to " + essid + " Wifi successfully.")
print("--------------------------------------------")
end if
counter = counter + 1
if counter == len(keys) then counter = 0
end while