-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrawnix.py
44 lines (35 loc) · 1 KB
/
crawnix.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import win_unicode_console , colorama
import os , subprocess
width = os.get_terminal_size().columns
# Windows deserves coloring too :D
G = '\033[92m' # green
Y = '\033[93m' # yellow
B = '\033[94m' # blue
R = '\033[91m' # red
W = '\33[97m' # white
def banner():
print("""%s
_________ _________ __
__ ____/____________ ___ ___________(_)_ |/ /
_ / __ ___/ __ `/_ | /| / /_ __ \_ /__ /
/ /___ _ / / /_/ /__ |/ |/ /_ / / / / _ |
\____/ /_/ \__,_/ ____/|__/ /_/ /_//_/ /_/|_| %sv1.0\n""" % (W,R))
def directory():
if os.path.isdir('directory'):
pass
else:
os.mkdir('directory')
def crawl():
from modules import crawler
#The main routine
def main():
subprocess.call('clear')
banner()
a = 1
if a == a:
directory()
crawl()
try:
main()
except Exception as e:
print("%s[-] No Internet Connection!"%(R))