Giter Club home page Giter Club logo

whoishere.py's Introduction

whoishere.py

WIFI Client Detection - Identify people by assigning a name to a device performing a wireless probe request.

whoishere.py running ok

whoishere.py configuration file

whoishere.py configuration file

whoishere.py's People

Contributors

hkm avatar loviuz avatar strasharo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whoishere.py's Issues

Charset

What charset are you using?

TypeError: ord() expected a character, but string of length 0 found

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

OPO - kali nethunter issue

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#

Memory issue

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?

Notify

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

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.