Nmap Development mailing list archives
Happy birthday Nmap!
From: Pierre LALET <pierre () droids-corp org>
Date: Wed, 2 Sep 2015 21:38:09 +0200
Hi Nmap, I understand you've just turned 18. Happy birthday! You can now drink alcohol (OK, not everywhere) and watch porn (OK, probably not everywhere)! I have a present for you, a script to grab screenshots from Web servers. It does not qualify for inclusion in your source tree, since it relies on external programs, but I though it might interest some people here. It is similar to the script from SpiderLabs [1] but relies on a PhantomJS script rather than Wkhtmltoimage. [1] https://github.com/SpiderLabs/Nmap-Tools/blob/master/NSE/http-screenshot.nse It is integrated to an opensource network recon project (IVRE, which is French for DRUNK, have a look now you're allowed!), but it can be used alone: - install PhantomJS - get the PhantomJS script [2], make it executable and install it to a directory in your PATH - get the NSE script [3], install it to Nmap's script directory, run 'nmap --script-update' [2] https://github.com/cea-sec/ivre/raw/master/docker/client/screenshot.js [3] https://github.com/cea-sec/ivre/raw/master/docker/client/http-screenshot.nse If you're too lazy, you can get the Docker image ivre/client and run Nmap from a container. Now you are old enough, you can see that: $ nmap -p 80 --script=http-screenshot www.youporn.com Starting Nmap 6.49SVN ( https://nmap.org ) at 2015-09-02 11:26 CEST Nmap scan report for www.youporn.com (31.192.116.24) Host is up (0.016s latency). PORT STATE SERVICE 80/tcp open http |_http-screenshot: Saved to screenshot-31.192.116.24-80.jpg OK let's see if it worked: $ convert screenshot-31.192.116.24-80.jpg -crop 193x40+7+35 \
-brightness-contrast 30x100 - | jp2a - --chars=" #"
## ## ##### ## ## ## ##### ## ## ######## #### #### ### ### ######### #### ##### ######## ######## ######## ### ## ### ### ### #### ### ### # ### #### ### #### #### ######## ### ### #### ### ### ########## ### ### ### ########## #### #### ##### ### #### ######## ##### ### #### ######### #### #### #### ####### ###### ### ####### ### ### ### ## Cheers! -- Pierre http://pierre.droids-corp.org/ _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Happy birthday Nmap! Pierre LALET (Sep 02)