dbisu / pico-ducky

Create a USB Rubber Ducky like device using a Raspberry PI Pico
GNU General Public License v2.0
2.42k stars 440 forks source link

Kind of a dumb question (setup mode) #230

Closed arxifythedev closed 9 months ago

arxifythedev commented 9 months ago

Hello. Is there any possible way of entering setup mode without having to connect GP0 and GND? My jumper wires aren't thick enough and therefore it does not work. If not, are there any jumper wires you would recommend?

Thanks in advance.

dbisu commented 9 months ago

Setup mode is so you can update the scripts without them running against your host computer. Running a jump or using a switch are the easiest ways to accomplish that. You could modify the code to reverse the logic (always in setup mode), update your scripts, and then change it back. That is more work and if not careful could still cause the script to run against your computer.

arxifythedev commented 9 months ago

Do you have any examples of the second option?

arxifythedev commented 9 months ago

@dbisu

dbisu commented 9 months ago

change the code in this function.

arxifythedev commented 9 months ago

And how do you think I could make the Pico detect that I want to go on setup mode? I don't know if I explain myself correctly...

dbisu commented 9 months ago

Have you actually looked at the code? it is fairly straight forward on how it figures out if the device is in setup mode or not.

arxifythedev commented 9 months ago

Of course, it figures out if the device is in setup mode or not if the pins are connected, but I'm not really sure how else I could tell it that I want to go on setup mode

dbisu commented 9 months ago

Not sure I'm following the problem.

arxifythedev commented 9 months ago

Let me explain it better: I want to go onto setup mode without having to connect the two pins. I need a way to tell the Raspberry Pi Pico that I want to go on setup mode without having to connect the pins.

dbisu commented 9 months ago

OK. I've pointed out the code the decides if it is in setup mode or not. You should be able to modify that to force it into setup mode and out again.

arxifythedev commented 9 months ago

The issue is not with modifying the code, it's to give the code the signal that I want to go on setup mode

dbisu commented 9 months ago

So you asked about my second suggestion, which was to modify the code to be in setup mode, add your payload, then modify it back to not be in setup mode. Buttons or switches would be the other way, which are already supported by the code. You would need added hardware.

arxifythedev commented 9 months ago

Alright, thank you very much.