Git Product home page Git Product logo

2fa-datacollector's Introduction

2fa-datacollector

Collect random numbers that will be made by 2FA's you can give it a secret key and also determine how long it can work and collect It's raw idea I'm working on it then I can write a program that predict 2FA cods faster .

Requirement

  • based on python3 so you need to install python3
  • then install pyotp module by running this command on linux :
  • pip3 install pyotp

    Or in windows machine :

    pip install pyotp

Usage instruction:

It accepts up to 4 switches :

The ORDER of SWITCHES is important!!!!

 Without applying the first switch next number means second but you can use m for Minute and h for Hour so the next parameter it must be a number. third parameter if you use m or h switch or the second parameter if you don't use any previous switch stand for the secret key and the last parameter is the output file name also it has an output on the terminal. by default the output file name "totp.txt" .

example:

In Linux:

python3 2fa.py m 1 JBSWY3DPEHPK3PXP log.txt

In windows:

python 2fa.py m 1 JBSWY3DPEHPK3PXP log.txt

The m stand for minute and the 1 means one minute the next parametr is the secret key and the last is the file name.

In Linux:

python3 2fa.py 60 JBSWY3DPEHPK3PXP log.txt

In Windows:

python 2fa.py 60 JBSWY3DPEHPK3PXP log.txt

In this eample 60 means sixty seconds .

Windows:

python 2fa.py h 1 JBSWY3DPEHPK3PXP log.txt

linux:

python3 2fa.py h 1 JBSWY3DPEHPK3PXP log.txt

The h means Hour and the 1 stand for one-hour working.

NOTE :
"JBSWY3DPEHPK3PXP" is the test key from :

https://github.com/pyauth/pyotp

Output description:

sample output after 1-minute work :

total
Inputs:	2
------------------------------------------------------------------------------------------
count:1	 number:174071
count:1	 number:567867
All DigitS
------------------------------------------------------------------------------------------
count:4	 number:7
count:2	 number:1
count:2	 number:6
count:1	 number:4
count:1	 number:0
count:1	 number:5
count:1	 number:8
Digit	1
------------------------------------------------------------------------------------------
count:1	 number:1
count:1	 number:5
Digit	2
------------------------------------------------------------------------------------------
count:1	 number:7
count:1	 number:6
Digit	3
------------------------------------------------------------------------------------------
count:1	 number:4
count:1	 number:7
Digit	4
------------------------------------------------------------------------------------------
count:1	 number:0
count:1	 number:8
Digit	5
------------------------------------------------------------------------------------------
count:1	 number:7
count:1	 number:6
Digit	6
------------------------------------------------------------------------------------------
count:1	 number:1
count:1	 number:7

The "Inputs" means total input or total number that received.

"count" means the iteration time.

"All Digits" mean total number in all places Digit1 to Digit 6. then "Digit1" means in the place of the first digit that numbers with that count iterated, and also for other digits.

2fa-datacollector's People

Contributors

h4mid2019 avatar

Stargazers

Afif 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.