在一些黑客的影视作品中,会经常出现一个工具,黑客把它插进电脑,电脑就会自动执行代码。
它就是Bad-USB
下面是Bad-USB的制作简化教程
首先,你需要一个树莓派Pico,网上买10几块,如果国产的会更便宜,只要几块钱。
一、按住树莓派Pico的白色按钮,把它插上电脑
二、把这个复制到树莓派
三、把这个复制到树莓派lib
四、把这个复制到树莓派根目录
五、完成,拔出树莓派再插上看看效果吧
六、编辑dd文件创建自己的脚本
链接:https://pan.baidu.com/s/1q6LO1NJtPaBNVA7YFZyIpw?pwd=oko0
提取码:oko0
下面是Bad-USB的制作完整教程
git clone https://github.com/dbisu/pico-ducky.git
RPI-RP2
.uf2
RPI-RP2
CIRCUITPY
adafruit-circuitpython-bundle-8.x-mpy-YYYYMMDD.zip
lib
adafruit_hid
lib
adafruit_debouncer.mpy
adafruit_ticks.mpy
lib
asyncio
lib
adafruit_wsgi
lib
boot.py
duckyinpython.py
code.py
webapp.py
wsgiserver.py
secrets.py
secrets = { 'ssid' : "BadAPName", 'password' : "badpassword" }
payload.dd
Install and have your USB Rubber Ducky working in less than 5 minutes.
-
Clone the repo to get a local copy of the files.
git clone https://github.com/dbisu/pico-ducky.git
-
Download CircuitPython for the Raspberry Pi Pico.
Download CircuitPython for the Raspberry Pi Pico W. -
Plug the device into a USB port while holding the boot button. It will show up as a removable media device named .
RPI-RP2
-
Copy the downloaded file to the root of the Pico (). The device will reboot and after a second or so, it will reconnect as .
.uf2
RPI-RP2
CIRCUITPY
-
Download here and extract it outside the device.
adafruit-circuitpython-bundle-8.x-mpy-YYYYMMDD.zip
-
Navigate to in the recently extracted folder and copy to the folder on your Raspberry Pi Pico.
lib
adafruit_hid
lib
-
Copy and to the folder on your Raspberry Pi Pico.
adafruit_debouncer.mpy
adafruit_ticks.mpy
lib
-
Copy to the folder on your Pico.
asyncio
lib
-
Copy to the folder on your Pico.
adafruit_wsgi
lib
-
Copy from your clone to the root of your Pico.
boot.py
-
Copy , , , to the root folder of the Pico.
duckyinpython.py
code.py
webapp.py
wsgiserver.py
-
For Pico W Only Create the file in the root of the Pico W. This contains the AP name and password to be created by the Pico W.
secrets.py
secrets = { 'ssid' : "BadAPName", 'password' : "badpassword" }
-
Find a script here or create your own one using Ducky Script and save it as in the Pico. Currently, pico-ducky only supports DuckyScript 1.0, not 3.0.
payload.dd
-
Be careful, if your device isn't in setup mode, the device will reboot and after half a second, the script will run.
-
Please note: by default Pico W will not show as a USB drive