-
Notifications
You must be signed in to change notification settings - Fork 3
/
rc3.py
executable file
·53 lines (42 loc) · 1.14 KB
/
rc3.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
45
46
47
48
49
50
51
52
53
#!/usr/bin/python3
import rc3check, rc3cmd, rc3off, ssh, os, sys
import translate as t
"""
Main application entry point
"""
def main():
if "-en" in sys.argv:
t.CURR_LANG = "en"
os.system("clear")
password = ssh.getpassword()
while True:
os.system("clear")
print(t.translate("prompt").rstrip().lstrip())
i = int(input())
if i == 0:
break
elif i == 1:
rc3off.off(password)
elif i == 2:
rc3check.check(password)
elif i == 3:
rc3cmd.cmd(password)
elif i == 4:
print(t.translate("offin2"))
os.system(rc3off.off_command)
break
elif i == 5:
rc3cmd.vnc(password)
elif i == 6:
rc3off.off(password)
print(t.translate("offin2"))
os.system(rc3off.off_command)
elif i == 7:
rc3cmd.vncall(password, ssh.gethostnames(), False)
elif i == 8:
rc3cmd.vncone(password)
else:
print(t.translate("noopchosen"))
input()
if __name__ == "__main__":
main()