Incredibly fast crawler designed for OSINT.
Sync with master
cclaussd890d231b7c0
diff --git a/photon.py b/photon.pyindex b2ab5f3..95e5cf8 100644--- a/photon.py+++ b/photon.py@@ -16,10 +16,14 @@ try:from urllib.parse import urlparse # for python3python2, python3 = False, Trueexcept ImportError:- input = raw_inputfrom urlparse import urlparse # for python2python2, python3 = True, False+try:+ input = raw_input+except NameError:+ pass+colors = True # Output should be coloredmachine = sys.platform # Detecting the os of current systemif 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 crawledbreakelif 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 itbreakprint('%s Level %i: %i URLs' % (run, level + 1, len(links)))try: