projectdiscovery / naabu

A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests
https://projectdiscovery.io
MIT License
4.7k stars 548 forks source link

Why not have naabu, Linux for arm #686

Closed li-baige closed 1 year ago

li-baige commented 1 year ago

My computer is Mac for ARM, so I want to package naabu into my Docker container, of course my container is also Linux for ARM, so I hope Sitting can provide this help so that I can use it in my project。

ehsandeep commented 1 year ago

@li-baige

To Pull

docker pull projectdiscovery/naabu:latest

To Run:

docker run -it projectdiscovery/naabu:latest -host example.com
li-baige commented 1 year ago

Yes, I want to take naabu out of your container and install it into my project. My project inherits naabu, so I let it scan a time-consuming project through your command. In this During the process, I quickly entered the container and saved it locally, but when I run the command in my project: command = ['./naabu', '-silent', '-l', target_file, '-ports-file', portfile, '-json', '-o', out_file_name, '-nmap-cli', naabu_nmap_cmd], naabu reported an error: [FTL] Could not run enumeration: Could not run nmap command: exit status 1 My Docker is based on python:3.8-alpine3.13, what is the problem?

li-baige commented 1 year ago

I'm very sorry, it's my problem. When I run it alone in the container, I found that I didn't add the nmap script file, so I added: "apk add nmap-scripts " in my Dockerfile, and now everything works fine .