spacehuhn / wifi_ducky

Upload, save and run keystroke injection payloads with an ESP8266 + ATMEGA32U4
MIT License
1.29k stars 296 forks source link

Arduino Pro mini? #1

Closed ghost closed 7 years ago

ghost commented 7 years ago

Just wondering if this could work if you add a usb with d+ d- + -

1

tobozo commented 7 years ago

Depending on the chosen model (pro mini 3.3v or 5v) I wonder if you'll need a logic level converter between the arduino and the ESP or between the arduino and the USB.

ghost commented 7 years ago

Ok I got a 5v one but I have a level shifter

tobozo commented 7 years ago

I'll try later tonight, I have both 5v and 3.3v model, I'm very interested by the results of your tests

ghost commented 7 years ago

And how do i wire the usb jack?😂

spacehuhn commented 7 years ago

you need an ATmega32u4 the Pro mini doesn't use that microcontroller.

spacehuhn commented 7 years ago

But you could use a Arduino Pro micro. You'll need the 3.3V version yes, or use a voltage regulator.

ghost commented 7 years ago

What is the difference between the two microcontrollers?

spacehuhn commented 7 years ago

one can talk USB the other not.

ghost commented 7 years ago

Aren't there any library's for usb ?

tobozo commented 7 years ago

There are libraries but they'll only work with built-in USB communications. The Pro Micro models will do just fine if you're ready to wait a full month , the good thing is They're not that expensive

[edit] markdown typo ate half my comment lol

ghost commented 7 years ago

I didn't was that they are expensive lol

ghost commented 7 years ago

Lol

tobozo commented 7 years ago

Just stumbled upon this and it looks like the ESP8266 can act as a low speed USB if you can bother to lose ESP8266AsyncWebServer and use SDK 1.5.x or earlier

spacehuhn commented 7 years ago

haha @tobozo you haven't read the readme, have you? Because I linked exectly that project. 😄

tobozo commented 7 years ago

Your readme says "The Latest SDK" while espusb's readme says "You cannot use SDKs newer than 1.5.X" now I'm confused

tobozo commented 7 years ago

Also why are you using an arduino when espusb can have the ESP to act as a host ?

spacehuhn commented 7 years ago

How it works

[...]

Although the ESP8266 is awesome, it doesn't have native USB, which means it can't act as a keyboard :(
(cnlohr made a cool project on this and added a USB stack himself: https://github.com/cnlohr/espusb. The problem with that is, that it isn't compatible with the current SDK version, also I wanted to use Arduino to make it more user friendly.)

Here comes the ATmega32u4 into play!
[...]

tobozo commented 7 years ago

Ok danke stupid me lol

So in order to use this librarty one would need to use two ESPs, one for the logic+wifi, the other to act as a USB host, and that would be:

thank you sir!