-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.py
82 lines (70 loc) · 1.92 KB
/
functions.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import os
import pyautogui, sys
import pyperclip
import subprocess
import webbrowser
import sys
def wipe():
clear = lambda: os.system('cls')
clear()
def cursorLocation():
print('Press Ctrl-C to quit.')
try:
while True:
x, y = pyautogui.position()
positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4)
print(positionStr, end='')
print('\b' * len(positionStr), end='', flush=True)
except KeyboardInterrupt:
print('\n')
def resolution():
pyautogui.size()
print("Here is your resolution:")
print("")
print(pyautogui.size())
print("Press enter to leave")
def writeFile():
passw = input("> ")
with open('password.txt', 'w') as f:
f.write(passw)
def copyPaste():
filepath = 'password.txt'
line = ""
with open(filepath) as f:
line = f.readline()
pyperclip.copy(line)
pyperclip.paste()
def writeMessageFile():
msg = input("> ")
with open('message.txt', 'w') as f:
f.write(msg)
def copyPasteMessage():
filepath = 'message.txt'
line = ""
with open(filepath) as f:
line = f.readline()
pyperclip.copy(line)
pyperclip.paste()
def browser():
url = 'https://youtu.be/eHXAxDk2qRo'
if sys.platform == '':
subprocess.Popen(['open', url])
else:
webbrowser.open_new_tab(url)
def downloadLinks():
url = 'https://github.com/Mariuseledy/FattyRAT'
if sys.platform == '':
subprocess.Popen(['open', url])
else:
webbrowser.open_new_tab(url)
def tfmMessage():
pyautogui.hotkey('enter')
pyautogui.PAUSE = 1
pyautogui.hotkey('ctrl', 'v')
pyautogui.PAUSE = 2
def secret():
url = 'https://youtu.be/dkxYiI2W2tY'
if sys.platform == '':
subprocess.Popen(['open', url])
else:
webbrowser.open_new_tab(url)