forked from Gumbraise/instagram-bomber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbomber.py
61 lines (51 loc) · 3.01 KB
/
bomber.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
"""
▄████ █ ██ ███▄ ▄███▓ ▄▄▄▄ ██▀███ ▄▄▄ ██▓ ██████ ▓█████
██▒ ▀█▒ ██ ▓██▒▓██▒▀█▀ ██▒▓█████▄ ▓██ ▒ ██▒▒████▄ ▓██▒▒██ ▒ ▓█ ▀
▒██░▄▄▄░▓██ ▒██░▓██ ▓██░▒██▒ ▄██▓██ ░▄█ ▒▒██ ▀█▄ ▒██▒░ ▓██▄ ▒███
░▓█ ██▓▓▓█ ░██░▒██ ▒██ ▒██░█▀ ▒██▀▀█▄ ░██▄▄▄▄██ ░██░ ▒ ██▒▒▓█ ▄
░▒▓███▀▒▒▒█████▓ ▒██▒ ░██▒░▓█ ▀█▓░██▓ ▒██▒ ▓█ ▓██▒░██░▒██████▒▒░▒████▒
░▒ ▒ ░▒▓▒ ▒ ▒ ░ ▒░ ░ ░░▒▓███▀▒░ ▒▓ ░▒▓░ ▒▒ ▓▒█░░▓ ▒ ▒▓▒ ▒ ░░░ ▒░ ░
░ ░ ░░▒░ ░ ░ ░ ░ ░▒░▒ ░ ░▒ ░ ▒░ ▒ ▒▒ ░ ▒ ░░ ░▒ ░ ░ ░ ░ ░
░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ▒ ▒ ░░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
"""
from InstagramAPI import InstagramAPI
import time
import requests
import json
nostop = 0
accounts = input("Put your Instagram accounts list here (if there is no file just press ENTER): ")
if not accounts:
username = input("Put your IG Username then press ENTER: ")
password = input("Put your IG Password then press ENTER: ")
api = InstagramAPI(username, password)
api.login()
istimes = 0
else:
f = open(accounts, 'r')
NumberOfLine = 0
for line in f:
NumberOfLine += 1
username, password = line.split(':')
print ("Username found: ", username)
print ("Password found: ", password)
api = InstagramAPI(username, password)
api.login()
istimes = 1
user = input("Enter the victim's IG Username then press ENTER: ")
url = "https://www.instagram.com/web/search/topsearch/?context=blended&query="+user+"&rank_token=0.3953592318270893&count=1"
response = requests.get(url)
respJSON = response.json()
user_id = str( respJSON['users'][0].get("user").get("pk") )
message = input("Put the message you want the software send and press ENTER: ")
if istimes == 0:
times = int(input("How many messages do you want to send? "))
elif istimes == 1:
times = NumberOfLine
print("You are gonna STRESS", times,"times", user_id, "with the message: ", message, ".")
input("Are you sure?")
while times > nostop:
nostop = nostop + 1
api.sendMessage(user_id,message)
print(nostop, ">> Sent to", user, ": ", message)