Merge pull request #68 from D4Vinci/master
Making it able to use coloring in windows too ;)
This commit is contained in:
commit
ebe9a05c76
18
README.md
18
README.md
|
@ -30,9 +30,8 @@ These dependencies can be installed using the requirements file:
|
||||||
|
|
||||||
- Installation on Windows:
|
- Installation on Windows:
|
||||||
```
|
```
|
||||||
c:\python27\python.exe -m pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
- Installation on Linux
|
- Installation on Linux
|
||||||
```
|
```
|
||||||
sudo pip install -r requirements.txt
|
sudo pip install -r requirements.txt
|
||||||
|
@ -44,7 +43,7 @@ Alternatively, each module can be installed independently as shown below.
|
||||||
|
|
||||||
- Install for Windows:
|
- Install for Windows:
|
||||||
```
|
```
|
||||||
c:\python27\python.exe -m pip install requests
|
python -m pip install requests
|
||||||
```
|
```
|
||||||
|
|
||||||
- Install for Ubuntu/Debian:
|
- Install for Ubuntu/Debian:
|
||||||
|
@ -66,7 +65,7 @@ sudo pip install requests
|
||||||
|
|
||||||
- Install for Windows:
|
- Install for Windows:
|
||||||
```
|
```
|
||||||
c:\python27\python.exe -m pip install dnspython
|
python -m pip install dnspython
|
||||||
```
|
```
|
||||||
|
|
||||||
- Install for Ubuntu/Debian:
|
- Install for Ubuntu/Debian:
|
||||||
|
@ -96,6 +95,17 @@ sudo yum install python-argparse
|
||||||
sudo pip install argparse
|
sudo pip install argparse
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**And for coloring in windows install the following libraries**
|
||||||
|
```
|
||||||
|
python -m pip install win_unicode_console colorama
|
||||||
|
```
|
||||||
|
|
||||||
|
*Note:To get the path of python.exe for the windows installation process use :*
|
||||||
|
```
|
||||||
|
import sys
|
||||||
|
sys.executable
|
||||||
|
```
|
||||||
|
|
||||||
##Usage
|
##Usage
|
||||||
|
|
||||||
Short Form | Long Form | Description
|
Short Form | Long Form | Description
|
||||||
|
|
15
sublist3r.py
15
sublist3r.py
|
@ -42,9 +42,22 @@ is_windows = sys.platform.startswith('win')
|
||||||
|
|
||||||
# Console Colors
|
# Console Colors
|
||||||
if is_windows:
|
if is_windows:
|
||||||
# use no terminal colors on windows
|
# Windows deserve coloring too :D
|
||||||
|
G = '\033[92m' # green
|
||||||
|
Y = '\033[93m' # yellow
|
||||||
|
B = '\033[94m' # blue
|
||||||
|
R = '\033[91m' # red
|
||||||
|
W = '\033[0m' # white
|
||||||
|
try:
|
||||||
|
import win_unicode_console , colorama
|
||||||
|
win_unicode_console.enable()
|
||||||
|
colorama.init()
|
||||||
|
#Now the unicode will work ^_^
|
||||||
|
except:
|
||||||
|
print("[!] Error: Coloring libraries not installed ,no coloring will be used [Check the readme]")
|
||||||
G = Y = B = R = W = G = Y = B = R = W = ''
|
G = Y = B = R = W = G = Y = B = R = W = ''
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
G = '\033[92m' # green
|
G = '\033[92m' # green
|
||||||
Y = '\033[93m' # yellow
|
Y = '\033[93m' # yellow
|
||||||
|
|
Loading…
Reference in New Issue