Skip to content

Instantly share code, notes, and snippets.

@fxsjy
fxsjy / SimpleAuthServer.py
Created April 26, 2013 06:23
SimpleAuthServer: A SimpleHTTPServer with authentication
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import sys
import base64
key = ""
class AuthHandler(SimpleHTTPRequestHandler):
''' Main class to present webpages and authentication. '''
def do_HEAD(self):
@bonsaiviking
bonsaiviking / cli_zenmap_png.py
Created December 20, 2013 22:18
YMMV, but this should export a PNG of a zenmap topology from a Nmap XML file
#!/usr/bin/env python
import sys
if len(sys.argv) != 4:
print """{0} - Output a PNG from Nmap XML
Usage: {0} <scan.xml> <out.png> <width_in_pixels>""".format(sys.argv[0])
sys.exit(1)
try:
@jaybosamiya
jaybosamiya / GSoC 2014 Mini Projects.md
Last active September 24, 2018 15:05
A semi formal log of the miniprojects I work on during GSoC 2014

GSoC 2014 Mini Projects

Reducing Zenmap Topology Noise

  • Zenmap produces some really noisy Topology views if there are multiple (parallel) anonymous hops.
  • For example: a->b->X->c->d, and a->b->X->c->e (where X means anonymous) would cause 2 anonymous nodes to appear.
  • Anders Sundman had sent a patch a long time ago for this but it handled only a very small subset of all the possible cases.
  • Wrote a patch that handles almost all the cases. Not sure of what to do in two cases so have mentioned it in the mail to list and have asked for feedback.
diff --git a/zenmap/radialnet/gui/ControlWidget.pyc b/zenmap/radialnet/gui/ControlWidget.pyc
new file mode 100644
index 0000000..6bb1865
Binary files /dev/null and b/zenmap/radialnet/gui/ControlWidget.pyc differ
diff --git a/zenmap/radialnet/gui/Dialogs.py b/zenmap/radialnet/gui/Dialogs.py
index 260f827..e57fa6b 100644
--- a/zenmap/radialnet/gui/Dialogs.py
+++ b/zenmap/radialnet/gui/Dialogs.py
@@ -123,7 +123,9 @@
@PseudoSky
PseudoSky / nmap-scripts.json
Created November 9, 2016 20:44
Security Tools Help & Data
[
{
"link": "https://nmap.org/nsedoc/scripts/acarsd-info.html",
"name": "acarsd-info",
"info": "Retrieves information from a listening acarsd daemon. Acarsd decodes ACARS (Aircraft Communication Addressing and Reporting System) data in real time. The information retrieved by this script includes the daemon version, API version, administrator e-mail address and listening frequency."
},
{
"link": "https://nmap.org/nsedoc/scripts/address-info.html",
"name": "address-info",
"info": "Shows extra information about IPv6 addresses, such as embedded MAC or IPv4 addresses when available."