Giter Club home page Giter Club logo

l2flood's Introduction

l2flood

l2ping with threads.

Flood a given bluetooth device with ping requests in order to force it to disconnect.

INSTALL

Satisfy the dependencies first, and then:

git clone https://github.com/kovmir/l2flood
cd l2flood
make # Use `make serial` to build upstream l2ping.
sudo make install

USAGE

Suppose there is a loud bluetooth speaker in public, and suppose 94:3a:2c:e1:2b:07 is its address. You can shut it off like that:

l2flood 94:3a:2c:e1:2b:07 # Flood with as much threads as the are CPU cores.
l2flood -n 50 94:3a:2c:e1:2b:07 # Flood with 50 threads.

A weak speaker CPU will not be able to process that many ping requests, and music decoding simultaneously; so it will disconnect.

Keep in mind:

  • The default delay between packets has been changed to 0.
  • The default data packet size has been increased to 600.
  • l2ping options work.
  • Your bluetooth card is your bottleneck: Even if you have a multi-core multi-gigahertz CPU, it makes little to no sense to spawn as much as 1,000 threads, because your bluetooth card is unlikely to be fast enough to process all the requests as quick as you submit them.

DEPENDENCIES

SUPPORTED OPERATING SYSTEMS

  • Linux

FAQ

Q: Does it work in termux?

A: No, Bluez libraries are not available in termux.

Q: Does it work on Steam Deck?

A: Yes.

Q: How to increase flood efficiency?

A: Get a second bluetooth card, and flood using both of them.

BT_ADDR='00:00:00:00:00:00' # Set the target address.
l2flood -i hci0 $BT_ADDR
l2flood -i hci1 $BT_ADDR

Q: How to fix Can't create socket: Operation not permitted?

A: Re-run as root user.

l2flood's People

Contributors

kovmir avatar

Stargazers

 avatar Alan Barrientos avatar  avatar  avatar  avatar Amped Meds avatar  avatar  avatar  avatar Yourredyknowwhoitisss avatar funnix avatar Jair F Ochoa Davila avatar  avatar  avatar  avatar deadbeef avatar Alberto Roura avatar  avatar πš…πšŽπš—πšŽπš›πšŠπš‹πš•πšŽ πš‡πšž avatar

Watchers

 avatar  avatar

l2flood's Issues

Missing Bluez header

Kali Linux on Raspberry Pi 4. I have bluez installed.

β”Œβ”€β”€(kaliγ‰Ώkali-raspberry-pi)-[~/l2flood]
└─$ make                          
cc l2flood.c -fopenmp -lbluetooth -o l2flood
l2flood.c:45:10: fatal error: bluetooth/bluetooth.h: No such file or directory
   45 | #include <bluetooth/bluetooth.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:10: parallel] Error 1

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.