hkm / whoishere.py Goto Github PK
View Code? Open in Web Editor NEWWIFI Client Detection - Identify people by assigning a name to a device performing a wireless probe request.
WIFI Client Detection - Identify people by assigning a name to a device performing a wireless probe request.
Hello,
Awesome bit of code you wrote there!
Is there any "Easy" way of changing from pushover to notify-cli?
The one from npm.
Cheers
Traceback (most recent call last):
File "whoishere.py", line 155, in
sniff(iface=interface, prn = PacketHandler, store=0)
File "/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py", line 972, in sniff
sniffer._run(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py", line 925, in _run
session.on_packet_received(p)
File "/usr/local/lib/python2.7/dist-packages/scapy/sessions.py", line 47, in on_packet_received
result = self.prn(pkt)
File "whoishere.py", line 133, in PacketHandler
PrintInfo(pkt)
File "whoishere.py", line 107, in PrintInfo
db = -(256-ord(pkt.notdecoded[-4:-3]))
TypeError: ord() expected a character, but string of length 0 found
What charset are you using?
Hi there!
Nice project!
I happened to stumble upon this project and saw that you only perform analysis on probe requests instead of all dot11 packets. I'm curious as to why? (https://github.com/hkm/whoishere.py/blob/master/whoishere.py#L130)
I've created something similar myself and I anlysed all dot11 packets with success:
https://github.com/magnusstubman/wifivicinity/blob/master/maclogger.py#L130
Hello. I'm running the script on a Raspberry Zero running Raspbian 8.0 and Python 2.7.9
The wireless adapter that I'm using is Alfa AWUS036NHA. The script runs fine for a while, except that the memory usage grows up steadily over time and eventually I run out of memory at some point:
pi@zero1:~ $ date;ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort | grep python | egrep -vi 'sudo|grep'
Fri 24 Mar 16:55:50 EET 2017
752.726562 Mb python whoishere.py
pi@zero1:~ $ date;ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort | grep python | egrep -vi 'sudo|grep'
Fri 24 Mar 16:56:19 EET 2017
767.839844 Mb python whoishere.py
pi@zero1:~ $ date;ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort | grep python | egrep -vi 'sudo|grep'
Fri 24 Mar 16:56:25 EET 2017
770.789062 Mb python whoishere.py
pi@zero1:~ $ date;ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort | grep python | egrep -vi 'sudo|grep'
Fri 24 Mar 16:56:34 EET 2017
775.222656 Mb python whoishere.py
pi@zero1:~ $ date;ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort | grep python | egrep -vi 'sudo|grep'
Fri 24 Mar 17:00:36 EET 2017
801.414062 Mb python whoishere.py
pi@zero1:~ $
Is it a memory leak or something this behavior is expected?
I changed wlan0mon to wlan1mon, after running I getting this:
PHY Interface Driver Chipset
phy0 p2p0 ?????? Not pci, usb, or sdio
phy0 wlan0 ?????? Not pci, usb, or sdio
phy5 wlan1 ?????? Atheros Communications, Inc. AR9271 802.11n
(mac80211 monitor mode already enabled for [phy5]wlan1 on [phy5]10)
root@kali:~/whoishere.py-master# python whoishere.py
/ / /
(___ ___ ___ (___ ___ ___ ___
| )| )| )| |___ | )|___)| )|___)
|/\/ | / |__/ | __/ | / |__ | |__
WIFI Client Detection 0.2
Author: Pedro Joaquin @_hkm ([email protected])
To kill this script hit CRTL-C
[+] Current List:
# : MAC - NAME
0 : dc:53:60:67:7d:ca - James Clerk Maxwell
1 : 6C:AD:F8:27:85:CA - Christian Hulsmeyer
2 : e0:b5:2d:0a:d4:a4 - Heinrich Hertz
[+] Configuration:
Current Time [2017-04-21 11:59]
Configuration File [whoishere.conf]
Log File [whoishere.log]
Monitor Interface [wlan1mon]
Pushover Notifications [Disabled]
[+] Listening for probe requests...
Traceback (most recent call last):
File "whoishere.py", line 155, in <module>
sniff(iface=interface, prn = PacketHandler, store=0)
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 593, in sniff
**karg)]
File "/usr/lib/python2.7/dist-packages/scapy/arch/linux.py", line 488, in __init__
self.ins.bind((iface, type))
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 19] No such device
root@kali:~/whoishere.py-master#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.