Skip to content

Commit

Permalink
Merge pull request #50 from iaacornus/patch-distro
Browse files Browse the repository at this point in the history
fixes name 'distro' is not defined
  • Loading branch information
GamehunterKaan authored Apr 27, 2024
2 parents 827e26f + 433acf0 commit 20a685b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ autopwn.svg
exploits/
__pycache__/
modules/__pycache__
modules/web/__pycache__
modules/web/__pycache__
venv/*
3 changes: 2 additions & 1 deletion modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from socket import AF_INET, SOCK_DGRAM, socket
from subprocess import DEVNULL, PIPE, CalledProcessError, Popen, check_call
from sys import platform as sys_platform
from platform import platform

from requests import get
from rich.text import Text
Expand Down Expand Up @@ -753,7 +754,7 @@ def check_nmap(log) -> None:
auto_install = True
else:
auto_install = (
input(f"Install Nmap on your system ({distro.id()})? ").lower() != "n"
input(f"Install Nmap on your system ({system()})? ").lower() != "n"
)
if auto_install:
platform_ = system().lower()
Expand Down

0 comments on commit 20a685b

Please sign in to comment.