Code Monkey home page Code Monkey logo

comp30023_2019_project2's Introduction

teej1_comp30023_2019_project-2

Score and comments

    3.0 out of 3 for correctly implementing the two-argument form of crack
    1.9 out of 2 for "good" guesses
    1.0 out of 1 for code quality
    0.5 out of 1 for build quality
    3.0 out of 3 for passing the Diffie-Hellman challenge response
    5.0 out of 5 for discovering passwords
    
Marker comments:
    Good readability and modularisation, Well commented code, Consistent indentation

1. Statistics for smart guess generation based on common_password.txt and classes hashed passwords:

Statistics are calculated using Stats_common_password.ipynb (python jupyter notebook)


General overview of the distribution of words

  • 82 % are alphabets
  • 11 % are alphanumeric
  • 5 % are numbers

Character distribution of passwords

  • Passwords comprises of 70 different character
  • 99% of passwords dont contain special characters
  • 85% of passwords contain either 0 or 1 numbers
  • 99% of passwords do not contain uppercase

Interesting distribution

  • only 2% of words contain consecutive character
  • numbers character probability sorted in descending order - 1,2,0,9,3,4,5,6,7,8
  • 99% of passwords do not contain uppercase
  • In most cases, uppercase are in the first few characters

Flow of the program for 1 argument (Generate passwords)

  1. Try dictionary attack, spit out words from common_passwords.txt

    • 3 cases:
      • word length = 6 (nice, just print out)
      • word length > 6 (slice word so word length = 6 and print)
      • word length < 6 (digit padding, based on distribution of numbers)
  2. Smart generation of password will be based on:

    • 6 character, split into alphabets (82%), alphanumeric(11%) and numeric passwords (5%)
    • How it works:
      • statisics of each character for each index is calculated
      • based on the statistics, it is randomly generated.

To run this program,

  1. run "make clean" - to remove all binary files and executables
  2. run "make" - to create executable files
  3. run "./crack NUMBEROFGUESSTOGENERATE" OR "./crack GUESSFILE HASHFILE"

comp30023_2019_project2's People

Contributors

jeremytee97 avatar

Watchers

James Cloos avatar  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.