Code Monkey home page Code Monkey logo

backend-password-cracker's Introduction

A Simple backend password cracker

This is a test you a password cracker tool. There are 22 passwords to find, 12 are dictionary words, 4 are numbers, 4 are 3 lowercase characters strings with a number at the end, and Two are 6 character length string made up of Upper, Lowercase and Numbers.

๐Ÿš€ Tech

PHP

โœ‹๐Ÿป Pre-requisites

๐Ÿ”ฅ Install & Execute

  1. Clone the repo;
  2. Open the cloned repo;
  3. Run Local server environment. i.e XAMPP, MAMP, MAMP Pro
  4. Import SQL instructions file to PhpMyAdmin
  5. Add 3 support raw files inside folder "Main"
  6. Navigate to Main folder path in terminal and execute "php passwordCracker.php"

๐Ÿฆพ Tasks

  • Easy - The 4 user IDs who used 5 numbers as their passwords i.e. 12345
  • Medium - The 4 user IDs who used just 3 Uppercase characters and 1 number as their password i.e. ABC1
  • Medium - The 12 user IDs who used just lowercase dictionary words (Max 6 chars) as their passwords i.e. london
  • Hard - The 2 user IDs who used a 6 character passwords using a mix of Upper, Lowercase and numbers i.e AbC12z

๐Ÿ›ฃ Possible solutions

Solutions Pros Cons
Search with regular expressins Extremely powerful search pattern Passwords are not in plain text
Search with MYSQL Compares cracked passwords faster with search engine DBMS can ocasionally time-out
Chunkify word and perform multiple SELECT on database Search is quicker than one at a time Uses more resources and only worked with small files

๐Ÿ›ฃ Choosen solution

Searching directly with DBMS one word at a time. It is a more time consuming approach, however, it works with large file and returns the number of matches at the end of the search. To search for matching MD5 salted passwords in the database, word/numeric/alphanumeric values were created and appended to text files that are then used to compare.

It operates in the following way:

  • Grabs text file
  • Assigns text file to cracking methods
  • Opens file and retrieves content line by line
  • Each content goes through encryptToMD5 method to be encrypted
  • Upon encryption. It is searched in the database via a query
  • If there is a match, it is echoed on the screen and saved into an array
  • Upon reaching the end of the file. It prints every match that was saved in the array

Made with โค๏ธ by Joselson

backend-password-cracker's People

Contributors

jcassio1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.