naabu-http-wrapper

command module
v0.0.0-...-fa5fc5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Naabu HTTP wrapper

A simplistic HTTP wrapper around Naabu to allow it to be invoked through HTTP. You can pass it the following GET params

host = Host to scan ex. scanme.sh (required)
ports = Ports to scan ex. 80,443 or 1-1000 (optional, default: top100)
timeouts = Timeout in milliseconds (default: 1000)

The webserver will run Naabu and return a JSON response that looks like this:

{"host":"scanme.sh","ports":[443,80],"time_elapsed":1239}

Usage

The following commands will:

  1. Build a docker image with the webserver
  2. Run the docker container locally with webserver running on port 8080
  3. Query the webserver using curl
make build
make run
curl 'http://127.0.0.1:8080/?host=scanme.sh&ports=80,443'

Building binary locally

Build your local binary like any other Golang binary, however, Naabu requires that you have libpcap-devel installed on your system.

License

MIT 2024

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址