Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobiuse authored Feb 13, 2020
1 parent e37454f commit 707cc60
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,39 @@
try:
exec(compile(open("config.py", "rb").read(), "config.py", 'exec'), config)
except IOError:
print("Íåòó ôàéëà êîíéôèãóðàöèè, ÷òîáû åãî ñîçäàòü, çàïóñòèòå ôàéë auth.py")
print("���� ����� �������������, ����� ��� �������, ��������� ���� auth.py")
quit(1)

url = "https://oauth.vk.com/token?grant_type=password&client_id=3697615&client_secret=AlVXZFMUqyrnABp8ncuU&username=%s&password=%s" % (config['username'], config['password'])

try:
r = urllib.request.urlopen(url)
except urllib.error.HTTPError:
print("Íå ïîëó÷èëîñü àâòîðèçîâàòüñÿ (âîçìîæíî íåïðàâèëüíî óêàçàíû ëîãèí èëè ïàðîëü)")
print("�� ���������� �������������� (�������� ����������� ������� ����� ��� ������)")
quit(1)

r = r.read()
token = json.loads(r)["access_token"]
session = vk.Session(access_token = token)
api = vk.API(session)
vk = vk.API(session)

foo = ["1", "2", "3", "4", "5"]
foo = ["hi", "2", "3", "fuck", "5"]

# print (foo)

victim = input("Victim id: ")
r = api.users.get(user_ids = victim, fields = "id")
r = r[0]["uid"]
r = vk.users.get(user_id = victim, fields = "id", v = 5.73)
r = r[0]["id"]
victim = r

def mainloop():
while(1):
time.sleep(2)
r = api.messages.send(peer_id = victim, message = random.choice(foo), v = 5.38)
time.sleep(7)
r = vk.messages.send(peer_id = victim, message = random.choice(foo), v = 5.73)
print()
print("wait...")
time.sleep(3)
print("done ",random.choice(foo))
pass

mainloop()

0 comments on commit 707cc60

Please sign in to comment.