diff --git a/README.rst b/README.rst index 684a902..5f3dbd4 100644 --- a/README.rst +++ b/README.rst @@ -79,6 +79,7 @@ This project is still in early development, as such the feature set is limited. * DNS redirection based on simple config file * HTTP/HTTPS serving of static files based on url regexes +* Imitate known external IP address lookup sites (thanks to `ipgetter`_ for the compiled list) * IRC service to capture connect and channel joins, etc. * Basic SMTP server support (no auth support yet) * Listening port ranges easily configurable and separate from the modules that handle the traffic. @@ -90,7 +91,7 @@ Planned Additions: * Internal DHCP server to auto configure clients * Expand available fake services to include FTP, etc. * SMTP Authentication support -* HTTP/S response switching based on requested host/server not just URL pattern +* Pluggable fake C2 servers * Better documentation Issues @@ -101,6 +102,7 @@ requests can be made using GitHub's `issues system`_. .. _GitHub: https://github.com/shendo/netsink .. _issues system: https://github.com/shendo/netsink/issues +.. _ipgetter: https://github.com/phoemur/ipgetter .. |build_status| image:: https://secure.travis-ci.org/shendo/netsink.png?branch=master :target: https://travis-ci.org/shendo/netsink diff --git a/netsink/conf/http.conf b/netsink/conf/http.conf index 3a4582d..a71bb4e 100644 --- a/netsink/conf/http.conf +++ b/netsink/conf/http.conf @@ -1,8 +1,18 @@ [http] -responses = test,default +responses = iplookup.txt,iplookup.html,test,default serverstring = Apache/1.3.3.7 (Unix) (Red-Hat/Linux) +[iplookup.txt] +pattern = (ip\.dnsexit\.com|ifconfig\.me/ip|ipecho\.net/plain|checkip\.dyndns\.org/plain|bot\.whatismyipaddress\.com|myexternalip\.com/raw|www\.trackip\.net/ip|icanhazip\.com|wtfismyip\.com/text) +status = 200 +file = ipaddress.txt + +[iplookup.html] +pattern = (ipecho\.net|checkip\.dyndns\.org|ipogre\.com|whatismyipaddress\.com|ip\.my-proxy\.com|websiteipaddress\.com/WhatIsMyIp|getmyipaddress\.org|www\.my-ip-address\.net|myexternalip\.com|www\.canyouseeme\.org|www\.trackip\.net|www\.iplocation\.net|www\.howtofindmyipaddress\.com|www\.ipchicken\.com|whatsmyip\.net|www\.ip-adress\.com|checkmyip\.com|www\.tracemyip\.org|checkmyip\.net|www\.lawrencegoetz\.com/programs/ipinfo|www\.findmyip\.co|ip-lookup\.net|www\.dslreports\.com/whois|www\.mon-ip\.com/../my-ip|myip\.ru|ipgoat\.com|www\.myipnumber\.com/my-ip-address\.asp|www\.whatsmyipaddress\.net|formyip\.com|check\.torproject\.org|www\.displaymyip\.com|www\.bobborst\.com/tools/whatsmyip|www\.geoiptool\.com|www\.whatsmydns\.net/whats-my-ip-address\.html|www\.privateinternetaccess\.com/pages/whats-my-ip|checkip\.dyndns\.com|myexternalip\.com|www\.ip-adress\.eu|www\.infosniper\.net|wtfismyip\.com|ipinfo\.io|httpbin\.org/ip) +status = 200 +file = ipaddress.html + [test] pattern = .*/404$ status = 404 diff --git a/netsink/data/ipaddress.html b/netsink/data/ipaddress.html new file mode 100644 index 0000000..141d1c7 --- /dev/null +++ b/netsink/data/ipaddress.html @@ -0,0 +1,13 @@ + +
+