Skip to content

Incredibly fast crawler designed for OSINT.

Sync with master

cclaussd890d231b7c0
diff --git a/photon.py b/photon.py
index b2ab5f3..95e5cf8 100644
--- a/photon.py
+++ b/photon.py
@@ -16,10 +16,14 @@ try:
from urllib.parse import urlparse # for python3
python2, python3 = False, True
except ImportError:
- input = raw_input
from urlparse import urlparse # for python2
python2, python3 = True, False
+try:
+ input = raw_input
+except NameError:
+ pass
+
colors = True # Output should be colored
machine = sys.platform # Detecting the os of current system
if machine.lower().startswith(('os', 'win', 'darwin', 'ios')):
@@ -417,7 +421,7 @@ for level in range(crawl_level):
if not links: # if links to crawl are 0 i.e. all links have been crawled
break
elif len(storage) <= len(processed): # if crawled links are somehow more than all links. Possible? ;/
- if len(storage) > 2 + len(seeds): # if you know it, you know it
+ if len(storage) > 2 + len(args.seeds): # if you know it, you know it
break
print('%s Level %i: %i URLs' % (run, level + 1, len(links)))
try: