forked from Funsiooo/chunsou
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunsou.py
More file actions
55 lines (40 loc) · 1.23 KB
/
chunsou.py
File metadata and controls
55 lines (40 loc) · 1.23 KB
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
45
46
47
48
49
50
51
52
53
54
55
# -*- coding: utf-8 -*-
'''
@File :chunsou.py
@IDE :PyCharm
@Author :Funsiooo
@Github :https://github.com/Funsiooo
'''
from modules.core.banner import banner,banner_2
from modules.core.args import argument
from modules.core.domain import subdomain_single,subdomain_list
from modules.api.fofa import fofa_main
from modules.core.scan import lists_main,single_main
from modules.core.color import Colors
from modules.core.time import print_start_time
from modules.api.hunter import hunter_main
from modules.core.tip import tip_main
from modules.core.check import check_version
def main():
args = argument()
try:
if args.url:
single_main()
if args.file:
lists_main(args.file)
if args.domain:
subdomain_single()
if args.domains:
subdomain_list()
if args.fofa:
fofa_main()
if args.hunter:
hunter_main()
if args.tip:
tip_main()
except Exception as e:
print(f"{Colors.CYAN}{print_start_time()} {Colors.GREEN}{Colors.RED}[-] Error occurred , Check whether the "
f"network, command, or configuration is correct.")
if __name__ == '__main__':
banner_2()
main()