Code Monkey home page Code Monkey logo

esp8266_beaconspam's People

Contributors

led avatar shreyask21 avatar spacehuhn 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  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

esp8266_beaconspam's Issues

SSID length of 32 not working.

When I edit the list of SSID and I make a name exactly 32 characters long, plus one more for the \n at the end, the resulting SSID shown in the WiFi client is truncated - the last one character is not displayed.
Here is an example SSID: "12345678901234567890123456789012\n"

I searched the source code and found that I was able to fix this issue by changing this line:
Original code:
} while (tmp != '\n' && j < 32 && i + j < ssidsLen);

New code:
} while (tmp != '\n' && j < 33 && i + j < ssidsLen);

Spawn specific AP

Hello. Can someone explain how I can spawn specific AP's with specific mac addresses? I mean something like this:
my_wifi 3C:B9:5C:3D:EE:33
my_wifi2 D2:98:4C:05:6D:24
my_wifi3 4E:CE:90:02:21:DA

Beacon packets receive

Hi,

Is it possible to receive beacon packets with your software. I need to process beacon packets in real time, meaning no buffering. libpcap does buffering of 10 packages before user processing them.

SSID names are padded with spaces at the end - making them all 31 characters long.

I noticed that the length of the SSID never changes. They are always padded with spaces.
Perhaps this was intentional. But if you want to truncate them after the last letter, and not have trailing spaces, just add the code I wrote below:

Existing code:
// write new SSID into beacon frame
memcpy_P(&beaconPacket[38], &ssids[i], j - 1);

New code:
// change SSID length to match new SSID used above
beaconPacket[37] = (uint8_t)(j - 1);

esp 32 version wont compile

Hi, i can get this version working fine, thanks!

There is no option to create an issue on the ESP 32 version page so hope you dont mind me asking here and wonder if you can help please?

When trying to compile the ESP-32 version i get the following - error: cannot convert 'esp_interface_t' to 'wifi_interface_t'

I have zero coding knowledge and trying to google it has not provided any pointers :(

Steve.

WiFi networks don't show up

I have changed the SSIDs to the ones I want, but the networks don't show up. They showed up once, but ever since, they don't show. I have tried re-uploading the code multiple times, but that doesn't work. Does anyone know how to fix this?

SSIDs

The SSIDs are absolutely hilarious, thanks for a good laugh ๐Ÿ˜ƒ

Channel 13 is always added

Channel 13 is always added, when two or more channels are specified.

Test case, set two channels:

const uint8_t channels[] = {4, 5};

What's actually used are channels 4, 5, and 13

This line:

    if (channelIndex > sizeof(channels)) channelIndex = 0;

Needs to be changed to:

    if (channelIndex >= sizeof(channels)) channelIndex = 0;

Fake beacon detection in relation to active vs passive modes

Hi. I'm after a pointer (or two) please.
I was trying to elicit a response to a Huawei P20 Lite by beaconing to it with your spammer on the NodeMCU using the SSID it was expecting to see when at home. However, I saw behaviour I dont understand.

At home and connected to WiFi, I see all the fake SSIDs. When I go out of range but with the spammer, I cant see any fake SSIDs. This is the same from two Huawei phone models. P20 and P30 Lite.

When I return in range and my phone connects to the real AP, I then sees all the fake ones. This seems crazy to me but I'm hoping you can explain. I tried this with wpa2 set to true and false.

My aim is, to wake up a phone where I know one or more of the SSIDs it has stored away. Samsung S4 and S8 phones seem to beacon out in the active fashion and so dont present the problem I'm wanting to solve. Many thanks in advance.

issue with iPhones and Samsungs

hi, ssid's generated by this code are perfectly viewed on laptops, but iPhones and Samsungs can't see them. don't you know why can it happen?

it works, but..

I noticed that on some devices (xiaomi redmi note 8 and macbook air) the SSIDs are not shown. For scruple I did the same test with mdk3 and "ESP8266 Deauther 2.0" and on these instead it works very well.

Could anyone explain to me why?

How do I increase the timeout for scanning and attacking?

If I scan for access points (or stations, etc) it quickly timeouts after about 5-10 seconds. Similarly, when I do beacon spam or a deauth it also times out after about 5-10 minutes. The flipper zero will scan and attack for as long as I want it to. How do I increase the timeouts for scanning and attacks?

Thanks!

channel hopping not working

I just tried this out and found that my phone and router show all the APs on channel 13 instead of 1,6,11. Using a single channel works as expected, but hopping between multiple channels does not seem to work?

When I do this with an esp32 it behaves the same.

Does anyone else have this issue?

Beacons not visible on iPhone 15 Pro and Pro Max

Hi there.
More a question as a Issue.
I'm working on a project to use beacons as a reveal for a magic trick. Some people mentioned, that the beacons do not show up on iPhone 15 devices.
Does someone has more informations on this?

Regards

Specifying a single channel only uses channel 1

This line is causing problems:

  if (sizeof(channels) > 1) {

If I'm only wanting to use one channel, eg:

const uint8_t channels[] = {12};

That test for sizeof(channels) fails, and the only channel that's actually used is channel 1.

Question

I just have a question--is there a way to wipe the ESP8266 from previous flashes? Iwant to erase the previous files that I loaded on my ESP8266.

Beacon interval

I'm trying to understand this line:

  /* 32 - 33 */ 0xe8, 0x03,                         // Interval: 0x64, 0x00 => every 100ms - 0xe8, 0x03 => every 1s

As I understand the code, this does not set the actual interval of the beacons, but rather it sets an "expected" time, and within that expected time, a node should expect to see another beacon from this BSSID.

IIUC, the code is running as fast as the wifi chip can send beacons, and it could (presumably) be slowed down with some kind of sleep command (this code is not my first language).

Is that correct?

Maybe that should be documented in the comments of the code.

The WiFi networks always go away after a short period of time

Instead of doing what I expected them to do, which was stay. They all disappear shortly.

I'm a bit confused as to why this happens, and, if possible, how would I be able to keep these WiFi networks up (Pretty great and funny names haha) without them shutting down after ~5-10 seconds?(I counted and its around 15) I'm just testing this on a NodeMCU

However this isn't the only issue. I wouldn't mind, but, then there are No WiFi networks for quite a while
~ 30-60 seconds.` Sometimes less, and sometimes more. As I was typing this, it first took 14 seconds for them to come back then 28. But when I first started it, it took around 30. Then I unplugged and replugged and it was almost immediate when starting. One thing is for sure though: Very inconsistent,

I tried to look through the code and figure out if I could find what was causing this and I was a bit clueless;

P.s. I don't have an SD card (Since I'm on a NodeMCU, there isn't even a slot for one) and I'm using the default ones that load when you don't have an SD card

Feature Request: Change Ssids in runtime

@spacehuhn im still learning from your code, and i like to Play a little bit with this, i can for example read some sensors and put the values as a wifi name (something of wifi1: "temperature: 20ยฐ", wifi2: "pressure: Xvalue"), but i cant change the char, can you add a function to add values from variables in strings?. Thanks so much.

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.