-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (27 loc) · 985 Bytes
/
setup.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
#!/bin/env python3
import configparser
import os
re = "\033[1;31m"
gr = "\033[1;32m"
cy = "\033[1;36m"
def banner():
print(f"""
{re}╔╦╗{cy}┌─┐┬ ┌─┐ ╔═╗{cy}┌─┐┬─┐┌─┐┌─┐┌─┐┬─┐
{re} ║ {cy}├┤ │ ├┤ ╚═╗{cy}│ ├┬┘├─┤├─┘├┤ ├┬┘
{re} ╩ {cy}└─┘┴─┘└─┘ ╚═╝{cy}└─┘┴└─┴ ┴┴ └─┘┴└─
""")
def main():
banner()
cpass = configparser.RawConfigParser()
cpass.add_section('cred')
xid = input(gr + "[+] Enter API ID: " + re)
xhash = input(gr + "[+] Enter API Hash: " + re)
xphone = input(gr + "[+] Enter Phone Number: " + re)
cpass.set('cred', 'id', xid)
cpass.set('cred', 'hash', xhash)
cpass.set('cred', 'phone', xphone)
with open('config.data', 'w') as configfile:
cpass.write(configfile)
print(gr + "[+] Setup Complete")
if __name__ == "__main__":
main()