Skip to content

Incredibly fast crawler designed for OSINT.

Use feature detection instead of version detection

cclauss431360dfc1e8
diff --git a/photon.py b/photon.py
index 0ac3f86..eb7f558 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')):