Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after choosing y when installing nmap prompt #276

Open
kreindo opened this issue Feb 11, 2025 · 0 comments
Open

Error after choosing y when installing nmap prompt #276

kreindo opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kreindo
Copy link

kreindo commented Feb 11, 2025

Which Tool?
networking/nmap

What is the error?
Stacktrace:

fsociety ~/networking/# nmap

Do you want to install https://github.com/nmap/nmap? (y/n): y
Platform not supported, missing arch, brew, linux
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│                                                                                                  │
│ /home/ahmadsan/.local/lib/python3.10/site-packages/fsociety/__main__.py:134 in mainloop          │
│                                                                                                  │
│   131 │   │   return func()                                                                      │
│   132 │   try:                                                                                   │
│   133 │   │   func = items[selected_command].cli                                                 │
│ ❱ 134 │   │   return func()                                                                      │
│   135 │   except Exception as error:                                                             │
│   136 │   │   console.print(str(error))                                                          │
│   137 │   │   console.print_exception()                                                          │
│ /home/ahmadsan/.local/lib/python3.10/site-packages/fsociety/networking/cli.py:11 in cli          │
│                                                                                                  │
│    8                                                                                             │
│    9                                                                                             │
│   10 def cli():                                                                                  │
│ ❱ 11 │   tools_cli(__name__, __tools__)                                                          │
│   12                                                                                             │
│                                                                                                  │
│ /home/ahmadsan/.local/lib/python3.10/site-packages/fsociety/core/menu.py:111 in tools_cli        │
│                                                                                                  │
│   108 │   │   return tools_cli(name, tools, links)                                               │
│   109 │   tool = tools_dict.get(selected_tool)                                                   │
│   110 │   if hasattr(tool, "install") and not tool.installed():                                  │
│ ❱ 111 │   │   tool.install()                                                                     │
│   112 │   try:                                                                                   │
│   113 │   │   response = tool.run()                                                              │
│   114 │   │   if response and response > 0 and response != 256:                                  │
│                                                                                                  │
│ /home/ahmadsan/.local/lib/python3.10/site-packages/fsociety/networking/nmap.py:42 in install     │
│                                                                                                  │
│   39 │   │   return which("nmap")                                                                │
│   40 │                                                                                           │
│   41 │   def install(self):                                                                      │
│ ❱ 42 │   │   super().install(clone=False)                                                        │
│   43 │                                                                                           │
│   44 │   def run(self):                                                                          │
│   45 │   │   hosts = get_hosts()                                                                 │
│                                                                                                  │
│ /home/ahmadsan/.local/lib/python3.10/site-packages/fsociety/core/repo.py:182 in install          │
│                                                                                                  │
│   179 │   │   │   │   elif target_os in install and target_os in self.scriptable_os:             │
│   180 │   │   │   │   │   command = str(install[target_os])                                      │
│   181 │   │   │   │   else:                                                                      │
│ ❱ 182 │   │   │   │   │   raise InstallError(                                                    │
│   183 │   │   │   │   │   │   f"Platform not supported, missing {', '.join(install.keys())}"     │
│   184 │   │   │   │   │   )                                                                      │
│   185 │   │   │   else:                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
InstallError: Platform not supported, missing arch, brew, linux

fsociety info
Run fsociety --info in your terminal and copy the results here.

 fsociety --info     
# Config File

version = 3.2.9
agreement = true
ssh_clone = false
os = ubuntu debian
host_file = hosts.txt
usernames_file = usernames.txt

# Python Version
3.10.12

# Platform
Linux-6.9.3-76060903-generic-x86_64-with-glibc2.35
@kreindo kreindo added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant