Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random TX Power for beacon attack #69

Closed
Enziak opened this issue Jun 14, 2018 · 6 comments
Closed

Random TX Power for beacon attack #69

Enziak opened this issue Jun 14, 2018 · 6 comments

Comments

@Enziak
Copy link

Enziak commented Jun 14, 2018

Hi.

It's possible to add random tx power for beacon attack like in spacehuhn project?
Thats the only code i find for it

if (settings.getRandomTX() && (beacon.active || probe.active)) setOutputPower(random(21)); else setOutputPower(20.5f);

Could someone help with code and where to add it for arduino file?
Just add random tx power by default for beacon attack

@bddvlpr
Copy link
Collaborator

bddvlpr commented Jun 14, 2018

@Enziak
Copy link
Author

Enziak commented Jun 14, 2018

I'm still learning and I can't manage to do that.

C:\Users\enzo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/WString.h:113: undefined reference to setOutputPower(float)'`

I hope it's good idea to implement and will be in next release.

@Enziak
Copy link
Author

Enziak commented Jun 15, 2018

I think i made it to work

in Attack.cpp added
`void setOutputPower(float dBm) {

uint8_t val = (dBm*4.0f);
system_phy_set_max_tpw(val);

}`

in beacon attack loop setOutputPower(random(21));

Effect is not same, it's bit smaller power range than in spacehuhn project but work like i wanted.

btw, sometimes randomly 2nd led turning on on my nodemcu, it shine pretty low and cant find for what it is

@bddvlpr
Copy link
Collaborator

bddvlpr commented Jun 16, 2018

I'm not completely sure but i think the GPIO pins D0 and D1 are actually the built-in leds too.

@Enziak
Copy link
Author

Enziak commented Jun 16, 2018

Yeah, when connected to some stronger 1A+ usb, second led above rst button can be turn on or off when i touch GPIO pins D0 and D1 (really low constant light)

No output in serial monitor and can't notice if it do something more.

@bddvlpr
Copy link
Collaborator

bddvlpr commented Jun 16, 2018

Feel free to make a pull request. Until then, i’m closing this issue as it is no longer necessary right now.

@bddvlpr bddvlpr closed this as completed Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants