Files
sshbruted/sshbruted.rb
T
2006-03-04 06:45:47 +00:00

10 lines
184 B
Ruby

regexp = /(.+).+mailsystem sshd\[\d+\]: Failed ([\A ]+) for ([\A\s]+) from ([\d\.]+) port (\d+) ssh2/
match = regexp.match(subject)
if match
result = match[1]
else
result = ""
end