我很好奇 Arduino Leonardo 的键盘和鼠标库是否可以用作 Windows 用户密码暴力黑客。使用我有限的爱好编码和 arduino 技能,我开始为此编写一个程序。
问题一开始似乎是串行输出在本应输出通用密码时却输出了随机字母/数字。我花了一分钟才意识到这些是常用密码。嗯,他们每个人的最后一个字母。
代码:
// tests most common paswords, if one of these works your idiot alert should be ringing
char myStrings[26]={ 'password', '123456', '12345678',
'1234', 'qwerty','12345','password', 'dragon', 'pussy',
'baseball', 'football','monkey', 'letmein', '696969',
'abc123', 'mustang','michael', 'shadow', 'master',
'jennifer', 'harley','1234567', 'jordan',
'2000', '111111',
'COMMON PASSWORDS EXHAUSTED: ATTEMPTING BRUTE FORCE'};
//the letters... yep
char myLetters[26]={'a', 'b', 'c',
'd', 'e','f','g', 'h', 'i',
'j', 'k','l', 'm', 'n',
'o', 'p','q', 'r', 's',
't', 'u','v', 'w',
'x', 'y','z'};
//establishes serial connection
void setup(){
Serial.begin(9600);
}
void loop(){
for (int i = 0; i < 27; i++){
Serial.println(myStrings[i]);
}
Serial.println("Common Finish"); // the common passwords have been attempted
for (int o = 0; o < 26; o++){
Serial.println(myLetters[o]);
delay(500);
}
Serial.println("Letter Finish"); // the letters have been finished
Serial.println("rinse wash repeat."); //the loop n' stuff
}
arduino 串口监视器图片:
对于我如何滥用数组或字符串的任何见解,我将不胜感激。谢谢。
最佳答案
关于c++ - 为什么只打印这些字符串的最后一个字母?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22134681/