Skip to content

Incredibly fast crawler designed for OSINT.

Fixes #1 #2

Somdev Sangwan742afef2c831
diff --git a/photon.py b/photon.py
index 0844298..6c5298e 100644
--- a/photon.py
+++ b/photon.py
@@ -29,7 +29,10 @@ parser.add_argument('target', help="target website")
parser.add_argument('--cookie', help="cookie", dest='cookie')
parser.add_argument('--delay', help="request delay", dest='delay', type=float)
args = parser.parse_args()
+
target = args.target
+if 'http' not in target:
+ target = 'http://' + target
br = mechanize.Browser() # Just shortening the calling function
br.set_handle_robots(False) # Don't follow robots.txt
@@ -54,6 +57,8 @@ params = set()
endpoints = set()
name = target.split('.')[0].strip('www.').strip('http').strip('https').strip('://')
+if name == '':
+ name = 'result%i' % len(target)
storage.add(target)
def zap(url):