Skip to content

Incredibly fast crawler designed for OSINT.

Simplify colors.py

ConnorSkees6ff2b2c80c6b
diff --git a/core/colors.py b/core/colors.py
index 7e33051..495f178 100644
--- a/core/colors.py
+++ b/core/colors.py
@@ -1,10 +1,8 @@
import sys
-colors = True # Output should be colored
-machine = sys.platform # Detecting the os of current system
-if machine.lower().startswith(('os', 'win', 'darwin', 'ios')):
- colors = False # Colors shouldn't be displayed in mac & windows
-if not colors:
+
+if sys.platform.lower().startswith(('os', 'win', 'darwin', 'ios')):
+ # Colors shouldn't be displayed on Mac and Windows
end = red = white = green = yellow = run = bad = good = info = que = ''
else:
white = '\033[97m'