mirror of
https://github.com/bhattsameer/Bombers.git
synced 2023-08-10 21:12:53 +03:00
Twitter bomber fixes
This commit is contained in:
parent
b51835c128
commit
cdd8f8ef87
@ -27,9 +27,12 @@ def banner():
|
|||||||
parser = argparse.ArgumentParser(description='Bomb twitter user with spam messages')
|
parser = argparse.ArgumentParser(description='Bomb twitter user with spam messages')
|
||||||
|
|
||||||
""" 4 Step:
|
""" 4 Step:
|
||||||
|
cautain: be sure your connection is fast and take no more than 4-5sec to enter username of the victim as chrome driver is stateless
|
||||||
|
and opening a new url after a interval of seconds may log you out of your twitter account.
|
||||||
|
|
||||||
1) run command python Twitter_bomber.py -u *your_twitter_username* -p *your_twitter_password*
|
1) run command python Twitter_bomber.py -u *your_twitter_username* -p *your_twitter_password*
|
||||||
2) enter correct username of person you want to spam, make sure his twitter messages are open
|
2) enter correct username of person you want to spam, make sure his twitter messages are open, after message screen is opened,
|
||||||
|
minimize window 7 follow #3
|
||||||
3) press 1 if you want to manually type the message you eant to send; or 2 if you want to export a file and extract message from there
|
3) press 1 if you want to manually type the message you eant to send; or 2 if you want to export a file and extract message from there
|
||||||
4) enter message count
|
4) enter message count
|
||||||
|
|
||||||
@ -59,17 +62,19 @@ def attack():
|
|||||||
userId.send_keys(args.username)
|
userId.send_keys(args.username)
|
||||||
userPass = driver.find_element_by_xpath('//*[@id="react-root"]/div/div/div[2]/main/div/div/div[1]/form/div/div[2]/label/div/div[2]/div/input')
|
userPass = driver.find_element_by_xpath('//*[@id="react-root"]/div/div/div[2]/main/div/div/div[1]/form/div/div[2]/label/div/div[2]/div/input')
|
||||||
userPass.send_keys(args.password)
|
userPass.send_keys(args.password)
|
||||||
|
|
||||||
loginBtn = driver.find_element_by_xpath('//*[@id="react-root"]/div/div/div[2]/main/div/div/div[1]/form/div/div[3]/div')
|
loginBtn = driver.find_element_by_xpath('//*[@id="react-root"]/div/div/div[2]/main/div/div/div[1]/form/div/div[3]/div')
|
||||||
loginBtn.click()
|
loginBtn.click()
|
||||||
driver.minimize_window()
|
driver.minimize_window()
|
||||||
|
|
||||||
|
|
||||||
name = input('Enter the twitter name of victim: ')
|
name = input('Enter the twitter name of victim: ')
|
||||||
if len(name) >= 3:
|
if len(name) >= 3:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
name = input('Enter the name of victim correctly: ')
|
name = input('Enter the name of victim correctly: ')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### GET VICTIM PROFILE PAGE ###
|
### GET VICTIM PROFILE PAGE ###
|
||||||
driver.get(f'https://twitter.com/{name}')
|
driver.get(f'https://twitter.com/{name}')
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
@ -80,8 +85,9 @@ def attack():
|
|||||||
messageLink = driver.find_element_by_xpath('//*[@id="react-root"]/div/div/div[2]/main/div/div/div/div[1]/div/div[2]/div/div/div[1]/div/div[1]/div/div[2]')
|
messageLink = driver.find_element_by_xpath('//*[@id="react-root"]/div/div/div[2]/main/div/div/div/div[1]/div/div[2]/div/div/div[1]/div/div[1]/div/div[2]')
|
||||||
messageLink.click()
|
messageLink.click()
|
||||||
|
|
||||||
#### SEND MESSAGE IN VICTIMS INBOX ###
|
|
||||||
|
|
||||||
|
|
||||||
|
#### SEND MESSAGE IN VICTIMS INBOX ###
|
||||||
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="react-root"]/div/div/div[2]/main/div/div/div/section[2]/div[2]/div/div/div/div/aside/div[2]/div[2]/div/div/div/div/div[1]/div'))).click()
|
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="react-root"]/div/div/div[2]/main/div/div/div/section[2]/div[2]/div/div/div/div/aside/div[2]/div[2]/div/div/div/div/div[1]/div'))).click()
|
||||||
MsgBx = driver.find_element_by_css_selector('#react-root > div > div > div.css-1dbjc4n.r-18u37iz.r-13qz1uu.r-417010 > main > div > div > div > section:nth-child(2) > div.css-1dbjc4n.r-1pz39u2.r-13awgt0 > div > div > div > div > aside > div.css-1dbjc4n.r-obd0qt.r-18u37iz.r-1uu6nss.r-13qz1uu > div.css-1dbjc4n.r-1kihuf0.r-16y2uox.r-1wbh5a2 > div > div > div > div > div.css-901oao.r-jwli3a.r-6koalj.r-16y2uox.r-1qd0xha.r-a023e6.r-16dba41.r-ad9z0x.r-bcqeeo.r-qvutc0 > div > div > div > div.DraftEditor-editorContainer > div > div > div > div')
|
MsgBx = driver.find_element_by_css_selector('#react-root > div > div > div.css-1dbjc4n.r-18u37iz.r-13qz1uu.r-417010 > main > div > div > div > section:nth-child(2) > div.css-1dbjc4n.r-1pz39u2.r-13awgt0 > div > div > div > div > aside > div.css-1dbjc4n.r-obd0qt.r-18u37iz.r-1uu6nss.r-13qz1uu > div.css-1dbjc4n.r-1kihuf0.r-16y2uox.r-1wbh5a2 > div > div > div > div > div.css-901oao.r-jwli3a.r-6koalj.r-16y2uox.r-1qd0xha.r-a023e6.r-16dba41.r-ad9z0x.r-bcqeeo.r-qvutc0 > div > div > div > div.DraftEditor-editorContainer > div > div > div > div')
|
||||||
Ops = int(input("Select what form of messahe you would like to send: \n Enter [1] to send manual message Enter [2] to import a txt file: "))
|
Ops = int(input("Select what form of messahe you would like to send: \n Enter [1] to send manual message Enter [2] to import a txt file: "))
|
||||||
|
Loading…
Reference in New Issue
Block a user