Skip to content

Commit

Permalink
Twitter bomber fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaykalucha committed Oct 1, 2020
1 parent b51835c commit cdd8f8e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Twitter_bomber.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ def banner():
parser = argparse.ArgumentParser(description='Bomb twitter user with spam messages')

""" 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*
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
4) enter message count
Expand Down Expand Up @@ -59,17 +62,19 @@ def attack():
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.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.click()
driver.minimize_window()


name = input('Enter the twitter name of victim: ')
if len(name) >= 3:
pass
else:
name = input('Enter the name of victim correctly: ')



### GET VICTIM PROFILE PAGE ###
driver.get(f'https://twitter.com/{name}')
time.sleep(1)
Expand All @@ -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.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()
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: "))
Expand Down

0 comments on commit cdd8f8e

Please sign in to comment.