# Network Scanner (nmap) as a Service Run a long network scan in background with support for webhook on completion. * The user can define the destination IP and port(s). * The service answers immediately with a `jobid`. * If a webhook url is defined it will be called on completion with the result and the jobid. * At any moment the user can request the status of the scan at /scan/{jobid} ## How to run it ``` $ kapow server NetworkScanner.pow ``` ## How to consume it * Scan your own host ``` $ curl --data 'ports=1-65535&ip=127.0.0.1' http://localhost:8080/scan { "job": "dba2edbc-527d-453a-9c25-0608bb8f06da" } ``` * Grab the result ``` $ curl -v http://localhost:8080/scan/dba2edbc-527d-453a-9c25-0608bb8f06da
``` *If you receive a 202 it means the scan is still on progress*