-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathspam.py
98 lines (55 loc) · 2.97 KB
/
spam.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
try:
import os
import threading
import subprocess
import keyboard
import time
from colorama import Fore, Style,init
from pathlib import Path
from os import path
except ModuleNotFoundError:
subprocess.call("pip3 install keyboard", shell=True)
subprocess.call("pip3 install colorama", shell=True)
banner = """
░█████╗░███╗░░██╗░█████╗░███╗░░██╗ ░██████╗██████╗░░█████╗░███╗░░░███╗
██╔══██╗████╗░██║██╔══██╗████╗░██║ ██╔════╝██╔══██╗██╔══██╗████╗░████║
███████║██╔██╗██║██║░░██║██╔██╗██║ ╚█████╗░██████╔╝███████║██╔████╔██║
██╔══██║██║╚████║██║░░██║██║╚████║ ░╚═══██╗██╔═══╝░██╔══██║██║╚██╔╝██║
██║░░██║██║░╚███║╚█████╔╝██║░╚███║ ██████╔╝██║░░░░░██║░░██║██║░╚═╝░██║
╚═╝░░╚═╝╚═╝░░╚══╝░╚════╝░╚═╝░░╚══╝ ╚═════╝░╚═╝░░░░░╚═╝░░╚═╝╚═╝░░░░░╚═╝
AUTHOR : swagkarna
CONTACT ME : github.com/swagkarna
"""
print(Style.BRIGHT+Fore.RED+banner+Fore.RESET)
class spam :
def checkfile(self) :
if path.exists('spam.txt'):
ask = input(str("File already Present\nDo you want to over write(yes or no) : "))
if "yes" in ask :
self.write()
self.spams()
else :
self.spams()
else :
self.write()
def write(self) :
f = open('spam.txt', 'w')
s = int(input("Enter the number of line you want to write : "))
for i in range(s) :
n =input(str("Enter the characters you want to write : "))
f.write(n)
f.write("\n")
def spams(self):
print("Now Place the cursor where you want to spam")
time.sleep(6)
while True:
file=open("spam.txt", 'r')
x=file.read()
keyboard.write(x)
time.sleep(3)
keyboard.send("enter")
def main(self) :
self.checkfile()
self.spams()
x = spam()
x.main()