edit nmap

This commit is contained in:
crate 2024-09-30 21:01:21 +00:00
parent f6c78e26d0
commit a25430cd17

View File

@ -277,6 +277,7 @@ async def on_message(message):
rejection = await generate_chat_response("Hey Garfield, explain to me why I am dumb for trying to hack your private computer network.") rejection = await generate_chat_response("Hey Garfield, explain to me why I am dumb for trying to hack your private computer network.")
await message.channel.send(rejection) await message.channel.send(rejection)
else: else:
await message.channel.send(f"Scanning {target}, hold on a sec...")
result = subprocess.run(['nmap', '-A', '-Pn', target], capture_output=True, text=True) result = subprocess.run(['nmap', '-A', '-Pn', target], capture_output=True, text=True)
await message.channel.send(f"`Ping result for {target}: {result.stdout}`") await message.channel.send(f"`Ping result for {target}: {result.stdout}`")
except Exception as e: except Exception as e: