Password hacking

I have two files, a list of usernames and a list of passwords. I need to write a program to check each user name with the list of passwords. Then I need to go to a website and see if it logs in. I am not very sure how to go about the comparing and how to simulate the program to log in the website enter the information. Could you please help me out with this? It's a homework problem.

Regardless of the language you choose to implement this in, the basic idea is to simulate log-ins programatically. This can be done by logging in manually and looking at the HTTP headers, then sending "forged" headers programatically, changing the user/password fields.

Most log-ins will use POST and making a POST is not entirely straightforward. If you are allowed to use external libraries, you can try cURL. Simply set the appropriate headers and look at the response to check if your attempt was successful or not. If not, try again with a new combination.

In pseudo code:

bool simulate_login(user, password) :
    request = new request(url)
    request.set_header('name', user)
    request.set_header('pass', password)

    response = request.fetch_reponse()
    return response.contains("Login successful")

success = []

foreach user:
    foreach password:
        if (simulate_login(user, password)):
            success.append((user, password))

HACK ANY PASSWORD, HACK ANY PASSWORD. Nobledez. Loading. I do not, and will not, participate in actually Duration: 9:50 Posted: 27 Mar 2019 Password Hacking Tools & Software Aircrack. Rating: 4 out of 5. My review of this tool is that it is a “must-learn” for any budding professional Crowbar Password Tool. Rating: 3 out of 5. It’s a little tricky to get going but once you realize the power that Crowbar John The Ripper (‘JTR’ or

If you would like to use java you can try with HtmlUnit (see: or if you are allowed Groovy you can go with

Here is the example from getting started guide that is relevant to your case:

public void login() throws Exception {
    final WebClient webClient = new WebClient();

    // Get the first page
    final HtmlPage page1 = webClient.getPage("http://some_url");

    // Get the form that we are dealing with and within that form, 
    // find the submit button and the field that we want to change.
    final HtmlForm form = page1.getFormByName("myform");

    final HtmlSubmitInput button = form.getInputByName("submitbutton");
    final HtmlTextInput textField = form.getInputByName("userid");

    // Change the value of the text field
    // Do similar for password and that's all

    // Now submit the form by clicking the button and get back the second page.
    final HtmlPage page2 =;


5 Ways To Hack A Password (Beginner Friendly), Hacking Passwords made simple and beginner friendly. Today I'm showing you 5 different Duration: 7:55 Posted: 10 Aug 2018 Password cracking steps Make sure the cracker tab is selected as shown above Click on the Add button on the toolbar.

How to Crack a Password, Password cracking is the process of attempting to gain Unauthorized access to restricted systems using common passwords or algorithms that guess passwords. In other words, it's an art of obtaining the correct password that gives access to a system protected by an authentication method. Hackers use a variety of means to gain passwords. One of the most common ways for hackers to get access to your passwords is through social engineering, but they don’t stop there. Check out the following tools and vulnerabilities hack exploit to grab your password.

4 Ways Hackers Crack Passwords, Check out the following tools and vulnerabilities hack exploit to grab your password. Keystroke logging. One of the best techniques for capturing passwords is� Download Password Hacker for free. This is a javascript code to reset your forgotten password, or to hack a Password

The Mathematics of (Hacking) Passwords, Here is the logic behind setting hack-resistant passwords. When you are asked to create a password of a certain length and combination of� All Passwords Visible in Minutes Free WiFi Password Hacker is integrated with up-to-date decryption algorithm, making it possible to hack into most advanced security WPA2 technology and others, cracking even the most complicated passwords. It will get the password revealed to your eyes in minutes.

Defend Against Password Hacking, Keep your passwords for your applications and software secure. Learn about how passwords get hacked, and the security you need to stay private. So here is a Wi-Fi hacker Online tool for PC, Android, iOS and Mac. Our Online Wi-Fi hacker is a genuine tool with help of which you can easily get any Wi-Fi password and had unlimited usage. It’s a versatile tool and can be used to hack any Local Wi-Fi.

  • Do the Java, C++ and C tags mean those are your options for implementing this?
  • What specifically will you do to check each username against the passwords? Or is logging in the check you're referring to?
  • yea ! i am not exactly sure what to use ..
  • log in check ! its for a website that is created by my TA.. we are supposed to log-in inside that
  • How do you need to compare usernames against passwords? Do you mean you have to combine every username with every password to try to log in?
  • I am not very sure how to use cURL? how do i check using this ?
  • @Priya Check the link I provided on my answer
  • Thanks a lot, this was helpful :)
  • @Priya NullUserException hinted on this, but you might want to double check your class notes to make sure that they didn't already suggest a library or method to use for accessing the website. cURL will do the job fine, but it seems odd to give an assignment with so little direction.