I'm making a automated version of airgeddon or the air tools to capture handshakes for testing. There's a python lib called "pyrcrack" I'm using though it uses async functions. I'm not sure what I can do about this error as I have little experience with async as a whole.
here's the code and error
#FILE 1
networkInterface = input(Fore.GREEN + "\n[?] Enter the network interface: ")
Networks = Tools.FindNetworks(networkInterface)
print(Networks)
#FILE 2
async def FindNetworks(NetWrkInterface):
print(Fore.GREEN + f"[!] Listening For Nearby Networks\n** 1NF0 **\nNetwork Interface ==> {NetWrkInterface}\n")
async with airmon(NetWrkInterface) as mon:
async with pyrcrack.AirodumpNg() as pdump:
async for result in pdump(mon.monitor_interface):
return result
Error Code
sys:1: RuntimeWarning: coroutine 'FindNetworks' was never awaited