forked from f4l1k/WeChatOpenDevTools-Python-arm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
34 lines (24 loc) · 957 Bytes
/
main.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
from argparse import RawTextHelpFormatter
from utils.commons import Commons
from utils.banner import generate_banner
from utils.colors import Color
import argparse
def print_colored_message(message, color):
print(color + message + Color.END)
def main():
HELPALL = """
请选择要执行的方法:
[+] python main.py -h 查看帮助
[+] python main.py -p 指定pid
"""
parser = argparse.ArgumentParser(description=HELPALL, formatter_class=RawTextHelpFormatter)
parser.add_argument('-p', help='指定pid',dest="pid", type=int)
args = parser.parse_args()
if args.pid:
commons.load_wechatEx_configs_pid(args.pid)
else:
commons.load_wechatEx_configs()
if __name__ == "__main__":
generate_banner()
commons = Commons()
main()