Don't use this to port scan arbitrary hosts (you can freely use scanme.nmap.org to play). Your ISP WILL block you. You have been warned. Also, check the license for this code. TL;DR If you fuck up, it's your problem.
This repo follows a typical Go command library structure. You 'll find the different commands under cmd/.
Run make and you 're set. You 'll get a bunch of executables under bin/.
rude_scanner: A simple connect port scanner, nothing elaborate. Nice parallelism pattern though.echo_server: A generic TCP server echoing back whatever you send it. Use telnet with it and be amazed.tcp_proxy: Proxies access to any site (currentlyexample.com) to:80. Fully functional, you could use it to bypass a firewall by running it in an intermediate, "approved" server.command_proxy: Pretty basic TCP server: Fires up a shell and gives remote access to anyone. Don't fuck around in production with this.shodan: A simple command to search for a host in shodan.io and return results.metasploit: A simple command to demonstrate how to interact with Metasploit's Meterpreter, assuming you 've managed to compromise a machine somewhere.bing_scrape: Scrapes bing for a given expression and Office document type, then tries to extract metadata from it.simple_http_server: Demonstrates how to write a simple http servermiddleware_example: Demonstrates hand-crafting middlewarenegroni_example: Demonstrates use of thenegronimiddleware package together with themuxpackage to create a more sophisticated http server with a middleware chainhtml_template_example: Demonstrates the built-in html template functionality in Gocredentials_harvester: A demonstration of how to create a credentials harvester in Gowebsocket_keylogger: A simple example of how to keylog user strokes in a webpage using web sockets.serve(own): A simple utility to serve a directory statically.fqdn(own): A DNS Type A lookup utility.guessdns(kinda own): A utility to fetch subdomains from DNS records.simple_dns_server: An example of a simple DNS server resolving all queries to "127.0.0.1".
-
To run the
shodancommand, you need to have theSHODAN_API_KEYvar in your environment. This implies you have an account with Shodan. You don't need to pay for executing a few example scans, but anything more elaborate and you need to cough up the cash (not cheap). -
To run the
metasploitcommand, you need to:-
have the Metasploit community edition installed.
-
Follow the guide in the page to go through initial setup.
-
kickoff an rpc server in metasploit as follows:
$ msfconsole [...] msf6> load msgrpc Pass=s3cr3t ServerHost=10.0.1.6 -
Create two environment variables to hold your beer:
$ export MSFHOST=10.0.1.6:55552 $ export MSFPASS=s3cr3t
-
-
To execute the roundcube server (to obtain fresh copies the files for the credentials harvester), you can:
docker run --rm -it -p 80:80 -h 127.0.0.1 robbertkl/roundcube