7
使用 Digispark 开发板制作 BadUSB
source link: https://5ime.cn/digispark.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
使用 Digispark 开发板制作 BadUSB
BadUSB是一种使用被恶意软件重新编程的 USB 设备的安全攻击
最近淘宝花十块钱整了块ATtiny85开发板玩玩。
ATtiny85 开发板 (某宝关键词:Digispark kickstarter 微型 usb 开发板 ATTINY85)
Arduino (https://www.arduino.cc/en/software) 安装时不需要装驱动
写在前面,因为
附加开发板管理网址
国内无法访问,所以需要挂全局代理。
打开Arduino
在文件
->首选项
中附加开发板管理网址
处粘贴
http://digistump.com/package_digistump_index.json
然后在工具
->开发板
->开发板管理器
中搜索digis
,选择安装
安装完成后在工具
->开发板
选择Digispark (Default - 16.5mhz)
开发板。
#include "DigiKeyboard.h"
void setup() {
// put your setup code here, to run once:
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(300);
DigiKeyboard.println("calc");
DigiKeyboard.delay(600);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
}
void loop() {
// put your main code here, to run repeatedly:
}
先选择编译
,编译成功后在上传
代码
点击上传
前请不要
插入ATtiny85
,终端中提示如下提示后60秒内插入ATtiny85
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
插入后终端会显示上传进度,成功后会显示如下内容
Micronucleus done. Thank you!
最近有点忙,还在研究中…
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK