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 when executing nmap-scan.sh #34

Open
andrewm659 opened this issue Oct 21, 2021 · 1 comment
Open

error when executing nmap-scan.sh #34

andrewm659 opened this issue Oct 21, 2021 · 1 comment

Comments

@andrewm659
Copy link

I am trying to run this as the netbox user. Should I be doing this with root or another user w/ sudo privileges? I am running this on AlmaLinux 8.4.

[ameyer@dcim001 samples]$ sudo su - netbox
Last login: Thu Oct 21 11:28:28 CDT 2021 on pts/0
[netbox@dcim001 ~]$ cd netbox-scanner-2/samples/
[netbox@dcim001 samples]$ sh nmap-scan.sh
nmap-scan.sh: line 19: NETWORKS: command not found
Traceback (most recent call last):
  File "../netbox-scanner.py", line 80, in <module>
    cmd_nmap(scanner)
  File "../netbox-scanner.py", line 55, in cmd_nmap
    h.run()
  File "/opt/netbox-3.0.7/netbox-scanner-2/nbs/nmap.py", line 13, in run
    for f in os.listdir(self.path):
FileNotFoundError: [Errno 2] No such file or directory: 'samples/nmap'
tar: *.xml: Cannot stat: No such file or directory
tar (child): Cannot connect to nmap-21.10.21T11: resolve failed
tar: Child returned status 128
tar: Error is not recoverable: exiting now
[netbox@dcim001 samples]$

@snok87
Copy link

snok87 commented Feb 15, 2022

You need to launch it from previous folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants