Skip to content

Commit

Permalink
fix MSF scan result parsing (fixes issue #192 )
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Deous committed Jul 1, 2016
1 parent b2d5b4f commit b31b314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/meterpreter.sl
Expand Up @@ -378,7 +378,7 @@ sub launch_msf_scans {
local('$text $host $port $hosts $modules $module $options');

foreach $text (split("\n", $3)) {
if ($text ismatch '... (.*?):(\d+) - TCP OPEN') {
if ($text ismatch '... (.*?): +- \1:(\d+) - TCP OPEN') {
($host, $port) = matched();
push(%discover[$port], $host);
}
Expand Down

0 comments on commit b31b314

Please sign in to comment.