From 25bd35db7e31968f12692bf05a2bac805fa4ad3f Mon Sep 17 00:00:00 2001 From: crate Date: Mon, 30 Sep 2024 21:15:09 +0000 Subject: [PATCH] fix nmap --- garfbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garfbot.py b/garfbot.py index b8baafe..757d909 100644 --- a/garfbot.py +++ b/garfbot.py @@ -277,8 +277,8 @@ 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.") await message.channel.send(rejection) else: - await message.channel.send(f"Scanning {target}, hold on a sec...") - result = subprocess.run(['nmap', '-A', '-Pn', target], capture_output=True, text=True) + await message.channel.send(f"`Scanning {target}...`") + result = subprocess.run(['nmap', '-Pn', '-O', '-v', target], capture_output=True, text=True) await message.channel.send(f"`Ping result for {target}: {result.stdout}`") except Exception as e: await message.channel.send(f"`GarfBot Error: {str(e)}`")