Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Logo and tracking HTTP result codes.

smicallefaf660ef6df4f
diff --git a/dyn/HEADER.tmpl b/dyn/HEADER.tmpl
index e1ad0887..3671542d 100644
--- a/dyn/HEADER.tmpl
+++ b/dyn/HEADER.tmpl
@@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
+ <link rel="icon" type="image/png" href="/static/img/spiderfoot-icon.png">
<!-- Le styles -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
@@ -14,6 +15,21 @@
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
+ .brand-logo
+ {
+ display: block;
+ float: left;
+ padding: 10px 20px 10px;
+ margin-left: -20px;
+ font-size: 20px;
+ font-weight: 200;
+ color: #777777;
+ text-shadow: 0 1px 0 #ffffff;
+ background: url(static/img/spiderfoot.png) no-repeat center center;
+ background-size: 32px 32px;
+ height: 20px;
+ width: 20px;
+ }
</style>
<link href="/static/css/bootstrap-responsive.css" rel="stylesheet">
@@ -22,8 +38,6 @@
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
- <!-- Le fav and touch icons -->
- <link rel="shortcut icon" href="/static/ico/favicon.ico">
</head>
<body>
@@ -36,7 +50,8 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
- <a class="brand" href="/">SpiderFoot 2.0</a>
+ <a class="brand-logo" href="/"></a>
+ <a class="brand" href="/">SpiderFoot</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index 01e2c27a..ff68aecb 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -108,6 +108,7 @@ class sfp_spider(SpiderFootPlugin):
self.notifyListeners("WEBCONTENT", url, httpresult['content'])
self.notifyListeners("WEBSERVER_HTTPHEADERS", url, httpresult['headers'])
+ self.notifyListeners("HTTP_CODE", url, str(httpresult['code']))
self.results[url]['fetched'] = True
stored += 'h'
diff --git a/sflib.py b/sflib.py
index f439318a..067e263b 100644
--- a/sflib.py
+++ b/sflib.py
@@ -439,6 +439,7 @@ class SpiderFoot:
result['content'] = fullPage.read()
result['headers'] = fullPage.info()
result['realurl'] = fullPage.geturl()
+ result['code'] = fullPage.getcode()
result['status'] = 'OK'
except urllib2.HTTPError as h:
self.debug("HTTP code " + str(h.code) + " encountered for " + url)
diff --git a/static/img/spiderfoot-icon.png b/static/img/spiderfoot-icon.png
new file mode 100644
index 00000000..5826e14f
Binary files /dev/null and b/static/img/spiderfoot-icon.png differ
diff --git a/static/img/spiderfoot.png b/static/img/spiderfoot.png
new file mode 100644
index 00000000..3330c034
Binary files /dev/null and b/static/img/spiderfoot.png differ