GithubHelp home page GithubHelp logo

kashimastro / kdsniffer Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 245 KB

Sniffer keyboard and X11 screen capture

Makefile 1.11% Shell 1.41% C++ 36.66% C 60.83%
sniffer sniffing x11 capture-screenshots capture-events keyboard unix cplusplus

kdsniffer's Introduction

KDSniffer

a simple sniffer for event keyboard and screen desktop x11, this demon it is divided into two pieces:

bin/sniffer

(to be placed on the machine to sniff)
and
bin/receive
(this piece is not mandatory, it can need if you want to capture remote sniffer, via a vpn or as shown in the example below with a raspberry via USB otg.)

a example use with raspberry pi zero otg usb and client pc:

connect your pi-zero via USB to PC you want to monitor.

PC(sniffer) <---> ZERO(receive)

run the receive on the pi-zero and run sniffer on PC, sniffer it takes care of sending all the keyboard info to the receive.

usb otg pi-zero:

configure otg usb network on pi-zero:
edit /boot/config.txt
and add: dtoverlay=dwc2
edit /boot/cmdline.txt
and add: modules-load=dwc2,g_ether

assign static ip on pi-zero:

allow-hotplug usb0
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255
gateway 192.168.7.1

screen sniffig:


for disable X11 capture screen edit Makefile and change value variable NO_X11=0
Example use receive and sniffer:

server receive event keyboard from sniffer
./bin/receive 11999

with network receive, sniffig keyboard by input event and capture display X11
sudo ./bin/sniffer /dev/input/event0 192.168.7.2 11999 :0.0

without network receive sniffig keyboard by input event and capture display X11
sudo ./bin/sniffer /dev/input/event0 0 0 :0.0

without x11 capture (only compile with NO_X11=0)
sudo ./bin/sniffer /dev/input/by-path/pci-0000\:00\:14.0-usb-0\:7\:1.0-event-kbd 127.0.0.1 11999


if client side ifconfig does not return USB device, try with:
ip address show
ip link set usb0 up
ifconfig usb0 192.168.7.10

kdsniffer's People

Contributors

kashimastro avatar

Stargazers

 avatar  avatar

Watchers

 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.