Giter Site home page Giter Site logo

death-hunter / keyboard_audio_hack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cgrassin/keyboard_audio_hack

0.0 0.0 0.0 5 KB

Python proof-of-concept for breaking passwords with a microphone, using machine learning.

License: MIT License

Python 100.00%

keyboard_audio_hack's Introduction

Breaking passwords with a microphone

This repository contains a Python proof-of-concept for breaking passwords with a microphone, using machine learning.

Because keyboards are mechanical devices, each key may create a slightly different sound due to various manufacturing considerations. The fact that keys make a somewhat unique sound is a vulnerability. Although it is not easily picked up by our ear, it can be exploited by an algorithm...

Please have a look at my original article here: http://charleslabs.fr/en/project-Breaking+Passwords+with+a+Microphone

Requirements

  • Python3
  • Keras and Tensorflow (pip3 install keras tensorflow)
  • argparse (pip3 install argparse)

Use instructions

Disclaimer: this is research code, build as a proof-of-concept. It is not meant to be a practical application.

This repository includes two executable Python files:

  • split_audio.py, a script that breaks up an audio recording file in WAV format into individual files for each key presses. It is used to generate the train data.
  • audio_reco.py, a script that actually performs the key recognition. Several methods are included.

To generate the train data, call the "split_audio.py" script:

./split_audio.py --input ./path/to/file_with_KEY_presses.wav --out-dir ./path/to/train --label KEY

To launch the learning process, save the model and make a prediction:

./audio_reco.py --train-path ./path/to/train --test-path ./path/to/test.wav --model ../path/to/save/trained_model.h5

You may want to use the --help option on both scripts.

keyboard_audio_hack's People

Contributors

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