Remote Wifi Sniffing Station with an ESP8266

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • You can use ESPthernet to turn an ESP8266 into a remote wifi sniffing station. Turns out it's not that hard.
    Hackaday article on ESPthernet: hackaday.com/20...
    Github: github.com/cnlo...
    Patreon: / cnlohr

Комментарии • 106

  • @JB-fh1bb
    @JB-fh1bb 2 года назад +1

    Still holds up 6 years later

  • @UKsystems
    @UKsystems 3 месяца назад

    One improvement I would add is getting an RJ 45 connector with the built-in magnetics as makes it smaller

    • @CNLohr
      @CNLohr  19 дней назад

      I've found most of those are usually slightly bigger but not always. At the least, they're definitely not cheaper.

    • @UKsystems
      @UKsystems 19 дней назад

      @@CNLohr however they do improve reliability most of the time so you can weigh that with cost especially if you’re getting them from AliExpress because they are good enough from there when they call them ethernet transformer RJ 45

  • @davidreynolds9649
    @davidreynolds9649 8 лет назад

    Where did you find the information about port 6648? (nc 10.2.10.5 6648)

  • @aymericvanetti4703
    @aymericvanetti4703 3 года назад

    How about connecting lots of ESP to a RTL8316 16 port RMII to create a ESP cactus sniffer ?

  • @xecoq
    @xecoq 8 лет назад +1

    Could you have one esp sniff, wired to a 2nd one to send the info to your network? Or cant they talk to each other though wired connections?

    • @CNLohr
      @CNLohr  8 лет назад

      +xecoq Absolutely, but because of the packet size limitations, it wouldn't be practical.

    • @tablatronix
      @tablatronix 8 лет назад

      check out WebSocketSerialMonitor
      github.com/tzapu/WebSocketSerialMonitor

  • @chakarkhadija5069
    @chakarkhadija5069 7 лет назад

    are there a library from ESP8266 in Proteus 8 ? i want it pliz

  • @Gheotic
    @Gheotic 7 лет назад

    Would it be possible to make the ESP8266, capture mac adresses than for each one switch to normal wifi mode and connect to your own wifi network and post it with a GET or POST request, then switch back to monitor mode and do it over and over again?

    • @CNLohr
      @CNLohr  7 лет назад

      I am pretty sure it would be possible :).

  • @DeepSpider
    @DeepSpider 8 лет назад +3

    So is it possible to use two of these ESP-12e(I meant replace the LAN circuit with another ESP-12e) and make it complete wireless? :D

    • @CNLohr
      @CNLohr  8 лет назад +2

      +eAffiliation Yes, but... but... That's not the point *sigh* you guys.... Wanting to do things that are useful...

    • @ashimjgec08
      @ashimjgec08 8 лет назад

      +CNLohr this will be useful too, one scenario, you can keep this in pocket while it is sniffing and use the smart phone to connect it to and do some stuff while you're roaming around. :P

    • @CNLohr
      @CNLohr  8 лет назад

      I understand. I will think about it. I could see some applications of that.... Dunno, the ESP32's got Bluethooth AND wifi, so.....

  • @jonahtaylor9534
    @jonahtaylor9534 8 лет назад +1

    Could you set up a frame work of home automation triggers generated by proximity of your phones mac address? Or is there a more secure token?

    • @CNLohr
      @CNLohr  8 лет назад +1

      +Jonah Taylor That's actually a really good idea!! You totally could set it up to do a trigger when it sees a specific device broadcasting a browse request.

    • @tablatronix
      @tablatronix 8 лет назад

      +Jonah Taylor That was the first thing i though of as well, It would be neat to have it set as a reverse beacon, so it detects you , then switches to STA and sends the event somewhere, even back to your phone to tell you your here, or perform anything else of course.

    • @damavox
      @damavox 7 лет назад

      Have a look at tasker (app), it can do what your asking if i understand the question right.
      For example i have it set up where as soon as i pull in the driveway of my home after 8pm my porch lights turn on automatically.
      How this works is phone>connects to wifi > tasker checks time, if after 8pm then sends commad via ssh to flip relay>porch lights turn on.
      I use 433mhz and a RPi instead of esp but it wil work the same with your the setup you are speaking of.

  • @fredblogs7819
    @fredblogs7819 8 лет назад +1

    Any advantage in using this instead of a standard wifi module in monitor mode?

    • @CNLohr
      @CNLohr  8 лет назад +1

      This is weird?

  • @n0ukf
    @n0ukf 6 лет назад

    One use I can see for wifi sniffing is to find available APs/routers/whatever and then choose one to connect to. Every project I've seen so far, you have to specify in the sketch ahead of time what one SSID the device will be connecting to. Useless to my thinking if you want to take it from home to the library, to the coffee shop, to a convention, etc. without having to reprogram the sketch every time.

    • @CNLohr
      @CNLohr  6 лет назад

      If you don't use arduino, there's a lot of options as far as a GUI, etc. For instance ESP82xx starts up as an AP, you can connect to with your smart phone and using the GUI select an AP put in a password and connect.

  • @felixcat4346
    @felixcat4346 8 лет назад

    Wireshark can tell were traffic is flowing too, but of course except for were it is going it probably is encrypted and not readable. You need to have the RSA keys to do that.

  • @littlefrog9947
    @littlefrog9947 2 года назад

    Is there somebody who can send me a version of this that doesnt require ethernet/can run on just the esp board! So it does like the same thing and show device distance etc. Would be grateful asf.

    • @CNLohr
      @CNLohr  2 года назад

      It doesn't really work that way. You can't just rebroadcast packets like that.

  • @jerry71000
    @jerry71000 7 лет назад

    A simple question, can ESP8266 monitor how much packet is transmitted from a WiFi router to a client? I'm making a project that auto disconnect clients if they hog my bandwidth but they can still browse as long as they are not reaching the threshold.

    • @CNLohr
      @CNLohr  7 лет назад

      that would best be done on the AP itself. The ESP cannot see encrypted packets.

    • @jerry71000
      @jerry71000 7 лет назад

      Hmmm.. I think I can use the value of "Since seen"

  • @willrandship
    @willrandship 8 лет назад +2

    So, the ESP is essentially running as a monitor mode wifi adapter over ethernet?

    • @CNLohr
      @CNLohr  8 лет назад +1

      +William Shipley Yep!

    • @sciencoking
      @sciencoking 8 лет назад

      +William Shipley The possibilities!

  • @tablatronix
    @tablatronix 8 лет назад

    Can you capture or forward raw tcp packets, like all traffic targeted at the ip ?

    • @CNLohr
      @CNLohr  8 лет назад

      Only if it was receiving the packets. I don't think Espressif's current thing works that way, though you could probably get there eventually.

  • @Dibblah1900
    @Dibblah1900 8 лет назад

    So... Uhm... Why does wireshark need root if you're piping the packets straight to stdin?

    • @CNLohr
      @CNLohr  8 лет назад

      +Allan Stirling THAT IS A REALLY GOOD QUESTION. When I run it this way it complains and says "Couldn't run /usr/bin/dumpcap in child process: Permission denied"

  • @DarrenRainey
    @DarrenRainey 6 лет назад

    I've seen a few projects on github like this that allow the ESP to just display WiFi probes over USB/serial but this is pretty interesting could be cool if you could link to ESP's together for one to monitor and on for transmitting as a wireless bug.

  • @piitsen
    @piitsen 8 лет назад +10

    2.4 GHz spectrum analyzer? :)

    • @CNLohr
      @CNLohr  8 лет назад

      +piitsen Dunno if the ESP gives you that level of clarity.

    • @petersilie4927
      @petersilie4927 8 лет назад

      +CNLohr how would you describe the needed level of access to the rf part?
      really narrow band, arbitrary frequency selection.
      narrow band receiving might be a problem since it was designed for 802.11 which is 20 MHz/Channel.
      why would there be steeper rx filters configurable?

    • @CNLohr
      @CNLohr  8 лет назад

      As far as is easily exposed, you just get to pick channels, the part handles re-tuning, etc.

  • @zZkamexZz
    @zZkamexZz 8 лет назад +1

    Waiting for my esp8266 traveling throug time and space.
    Meanwhile wondering if it can be used for indoor GPS system. If it possible to retrive signal strength value from this cutie ?:O

    • @CNLohr
      @CNLohr  8 лет назад

      +zZkamexZz Signal strength is on the right... But, signal strength is not a good metric for localization. Only precision packet timing - which the ESPs do NOT do that I'm aware of.

  • @fredr0
    @fredr0 8 лет назад

    Your android device is in tether mode so it is not actually sniffing. Have you tried catching ethernet frames from hosts connected to the same network as your Esp8266? Is it even possible?

    • @CNLohr
      @CNLohr  8 лет назад

      +fredro not really... though you can see the data frames, just not the data inside since it's encrypted.

  • @AidanOttawa
    @AidanOttawa 8 лет назад

    Is the reverse true?? How would one sniff MAC addresses of clients trying to connect to a ESP8266 that is in Access Point mode? Is that even possible?

    • @CNLohr
      @CNLohr  8 лет назад

      www.esp8266.com/viewtopic.php?f=32&t=5669

    • @AidanOttawa
      @AidanOttawa 8 лет назад

      +CNLohr Thanks but this is a bit different than what I envisioned. Think of your phone that has wifi on and scans available networks. Can I program the chip to broadcast an SSID so when the phone during the network scan finds the SSID its Mac address gets sniffed? - all that assuming that the phone actually broadcasts something ...

    • @CNLohr
      @CNLohr  8 лет назад

      It does, but most phones now do mac scrambling so you can't identify them :-/

  • @apiedoe
    @apiedoe 8 лет назад

    great job! i am new to this so maybe you know what i am looking for. I want to make a program that displays(on Arduino serial monitor) all WiFi devices around the esp. I thinks it is called passive scanning. any ideas how I could do that?

    • @CNLohr
      @CNLohr  8 лет назад +1

      Yep. The ESP has a library call for showing all nearby APs, and their power!

    • @apiedoe
      @apiedoe 8 лет назад

      CNLohr any chance that you know the library?

    • @CNLohr
      @CNLohr  8 лет назад +1

      It's part of the main user interface.
      bool wifi_station_scan(struct scan_config *config, scan_done_cb_t cb);

    • @tablatronix
      @tablatronix 8 лет назад

      Heres my arduino AP scanner, for clients you would have to do like above switch into promiscuous and log all the traffic, there are a few of these on github already.
      gist.github.com/tablatronix/497f3b299e0f212fc171ac5662fa7b42

    • @apiedoe
      @apiedoe 8 лет назад

      did you found the command that it turns it in promiscuous mode with arduino IDE . I only found scripts that works with de SDK not arduino

  • @imignap
    @imignap 8 лет назад

    Could you use this for WiFi SLAM?

    • @CNLohr
      @CNLohr  8 лет назад

      +Nathan Imig You could try, too bad Rx power really isn't that good of a mechanism of seeing signal power.

  • @RaoulosCA
    @RaoulosCA 8 лет назад

    Can we have a location with these informations ?

    • @CNLohr
      @CNLohr  8 лет назад

      it can't calculate it, but you can tell the specific nodes apart.

  • @mnageh-bo1mm
    @mnageh-bo1mm 5 лет назад +1

    Hi dude we need fluxion for esp

  • @tommihommi1
    @tommihommi1 8 лет назад

    Haven't watched the video yet, would PoE be possible?

    • @CNLohr
      @CNLohr  8 лет назад

      +tommihommi1 If you use the proper design, with magnetics, yes, yes it would. I guess you could also half-bake your PoE and just provide power over the unused pairs.

  • @BAFMisWSH
    @BAFMisWSH 7 лет назад

    Can someone hypothetically run a phishing device from the web server on the esp
    promoting it as free wifi or something and phishing

    • @CNLohr
      @CNLohr  7 лет назад

      Totally can be done. Wouldn't be that hard.

    • @BAFMisWSH
      @BAFMisWSH 7 лет назад

      can you make a tut or point me in the direction

    • @CNLohr
      @CNLohr  7 лет назад

      I mean, not really... you ca make it appear as any network you want. I can't remember how, but you can hook the IP stack and pass packets that are going to the internet off to some other server and pass them back, getting all the data inbetween... but, I think using a TP Link or something like that and sniffing the hardwire connection may be easier.

  • @isfiyiywafibc6qaiiiiiiiiii570
    @isfiyiywafibc6qaiiiiiiiiii570 8 лет назад

    Are you sure you need sudo there?

    • @CNLohr
      @CNLohr  8 лет назад

      +ISFiYIywAFIBc6qAIIIIIIIIIIIIIIIIQrXTJiCtY3Asd4WF I did, but I fixed it by adding the sticky flag to /usr/bin/dumpcap

  • @Jasmohan
    @Jasmohan 8 лет назад

    Very good project.

  • @Willy_Tepes
    @Willy_Tepes 4 года назад

    This would be great with a scanning directional antenna.

    • @CNLohr
      @CNLohr  4 года назад

      That's a really cool idea, I've never tried to do anything like that.

  • @goeiecool9999
    @goeiecool9999 8 лет назад +1

    Your stuff blows my mind. I've never been this interested in electric engineering.

    • @goeiecool9999
      @goeiecool9999 8 лет назад

      This opens up many oportunities. I wouldn't be surprised if you could make it into a tiny wifi router.

    • @CNLohr
      @CNLohr  8 лет назад +1

      Indeed you could! I don't know why technology excites me so much, but I am really glad that excitement was successfully imparted to you.

  • @Gonlinein
    @Gonlinein 5 лет назад

    Which propose it is used explain briefly then I like your video

  • @SkiingInMoscow
    @SkiingInMoscow 4 года назад

    Thank you.

  • @axlecrusher
    @axlecrusher 8 лет назад

    Good, except for the limited packet size.

  • @KENT0070
    @KENT0070 5 лет назад

    smart job!!!!salute!!!

  • @southgeorgiawx2816
    @southgeorgiawx2816 7 лет назад

    very interesting project. Nice job. Cheers

  • @djnikx1
    @djnikx1 4 года назад

    Nice one 👍🏻

  • @imignap
    @imignap 8 лет назад +1

    mind = blown. Very cool!

  • @surajbhawal2474
    @surajbhawal2474 8 лет назад

    I'm still not convinced that it isn't an April fool prank.

    • @Manu.Makes.Things
      @Manu.Makes.Things 8 лет назад

      +suraj bhawal I thought I was the only one.

    • @CNLohr
      @CNLohr  8 лет назад

      +SolidMPH Y'all are gonna have to just go download and compile the source from github.

    • @Manu.Makes.Things
      @Manu.Makes.Things 8 лет назад

      +CNLohr Alrighty then!

    • @surajbhawal2474
      @surajbhawal2474 8 лет назад

      CNLohr what if the purpose of the source code is to render our ESPs unusable? again belated april fool's prank?

    • @CNLohr
      @CNLohr  8 лет назад

      +suraj bhawal Hey, if I can make firmware that permabricks your $3 ESP, I think that alone would be worth bricking an ESP for a Hackaday article!

  • @arejay988
    @arejay988 7 лет назад +4

    i love the video, but i want to come over and like help u organize

  • @juliancaste3914
    @juliancaste3914 3 года назад

    sweeeeet

  • @adilmalik7066
    @adilmalik7066 8 лет назад +1

    Thank god for Https :)

  • @AgentOffice
    @AgentOffice 7 лет назад

    crazy

  • @aniketkedar6545
    @aniketkedar6545 7 лет назад

    fuckin awesome!!!!!!!!

  • @atenechannel1039
    @atenechannel1039 6 лет назад

    un botto

  • @gerritvisser
    @gerritvisser 8 лет назад +3

    Please, please learn to shoot video. I had to stop watching