Skip to content

nbdy/pwnpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwnpi

asciicast

dependencies

  • libgps-dev
  • libtins-dev
  • libboost-log-dev (git version is currently v4.1 / ubuntu18 apt is v3.4)
  • libbluetooth-dev
  • slite3pp
sudo ./dependencies.sh

build

mkdir build; cd build; cmake ..; make

run

sudo ./pwnpi --help
usage: ./pwnpi {arguments}
	-h      --help
	-d      --debug
	-v      --verbose
	-b/-w	--bluetooth/--wifi
		-i	--interface
		-e  --enable
		    --disable
[wifi specific]
		-p	--promiscous
[bluetooth specific]
        -ol --only-le
        -oc --only-classic
[lipo]
	-l      --lipo

ex1:
    sudo ./pwnpi -b -i hci1 -w -i wlan1mon -w -p
                /\          /\          /\
sets bluetooth interface    || sets wifi promiscuous
                sets wifi interface
                
==  sudo ./pwnpi --bluetooth --interface hci1 --wifi --interface wlan1mon --wifi --promiscuous 

ex2:
    ./pwnpi -b --disable -w -i wlan0
               /\           /\
       disables bluetooth   sets wifi interface

ex3:
    sudo ./pwnpi -b -i hci0 -b -ol -w --disable
                /\        /\      /\
sets bluetooth interface  ||    disables wifi
    indicates that we only want to scan for bluetoot low energy devices

faq

Q: why 'pwnpi', it can run anywhere
A: i just run it on a rpi zero, it has been created with only that thought in mind

Q: does it leak?
A: idk, valgrinded everything besides the wifi/bluetooth part and it seemed fine
Q: why didn't you check the wifi/bluetooth part?
A: didn't look into vgdb yet; else i'd need to run clion as root
Q: why don't you wanna run clion as root?
A: why don't you?

Q: i ran it with -d and it's stuck at 'waiting for debugger'
A: if you want to debug something, run with gdb and set 'waitingForDebugger' = false

Q: ble scan throws segmentation fault
A: right? and the code is basically copied from the gattlib examples

About

cpp rpi wardriving application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages