pico-ducky | USB Rubber Ducky like device using a Raspberry PI Pico
kandi X-RAY | pico-ducky Summary
kandi X-RAY | pico-ducky Summary
Create a USB Rubber Ducky like device using a Raspberry PI Pico
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Select the payload .
- Parse a line .
- Run a script .
- Convert a line into a list .
- Get the program status .
- Updates the LED cycle .
- Activate the LED cycle .
- Run a single script line .
- Send a line to the layout .
pico-ducky Key Features
pico-ducky Examples and Code Snippets
circup bundle-add Neradoc/Circuitpython_Keyboard_Layouts
circup install keyboard_layout_win_fr keycode_win_fr
Community Discussions
Trending Discussions on pico-ducky
QUESTION
I wanted to know if it is possible to run system commands on computer using raspberry pi pico when plugging it into the USB?
I've tried to do it like a normal C program :
...ANSWER
Answered 2021-Aug-27 at 13:09To be able to run system()
function call in C in an embedded system, you need to know several things first:
system()
calls the user shell with the string passed as argument as a parameter. Are you running an operating system at all? A shell is normally an operating system component, and it is not normally present in many embedded systems.system()
requires/bin/sh
normally to work. To runls
, you need in adition to have it (the ls command) installed.
You don't say what operating system you have in your Raspberry pi pico, but I'm afraid it is not linux (or any unix flavour) so probably all of this is forbidden to you.
Normally, the requirements to have a unix like environment in a small system impede to use a high technology operating system in such systems. Linux requires large amoutns of memory (as there are in the normal raspberry pi, but not in the small versions), a large capacity storage system (bein a usb disk, flash memory card, etc. but normally several Gb for a minimum installation)
In your case, 264kb of ram are very small to have a non-mmu handled microprocessor, capable of addressing virtual memory spaces. Also 2Mb of flash gives you to write large programs, but not to install an operating system like linux.
Had you an emulator of system()
you should be able to run other programs, but how? A raspberry pi pico has space to run just one program (the one you write to the flash and nothing else) Even if you write a kernel of a multitasking operating system, you would lack space to run filesystem stored programs, as you normally have limited access to the flash where programs are installed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pico-ducky
Download CircuitPython for the Raspberry Pi Pico. *Updated to 7.0.0
Plug the device into a USB port. It will show up as a removable media device named RPI-RP2.
Copy the downloaded .uf2 file to the root of the Pico (RPI-RP2). The device will reboot and after a second or so, it will reconnect as CIRCUITPY.
Download adafruit-circuitpython-bundle-7.x-mpy-YYYYMMDD.zip here and extract it outside the device.
Navigate to lib in the recently extracted folder and copy adafruit_hid to the lib folder in your Raspberry Pi Pico.
Click here, press CTRL + S and save the file as code.py in the root of the Raspberry Pi Pico, overwriting the previous file.
Find a script here or create your own one using Ducky Script and save it as payload.dd in the Pico.
Be careful, if your device isn't in setup mode, the device will reboot and after half a second, the script will run.
To edit the payload, enter setup mode by connecting the pin 1 (GP0) to pin 3 (GND), this will stop the pico-ducky from injecting the payload in your own machine. The easiest way to so is by using a jumper wire between those pins as seen bellow.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page