Skip to content

Commit 8798567

Browse files
committed
Fix bug: TypeError can't convert Fixnum into String
wmap_target_port is retrieved from datastore['RPORT'], and that's a Fixnum. But wmap_base_url is treating that like a String, so when a module uses that function, it's doomed. See: http://dev.metasploit.com/redmine/issues/7748
1 parent 0ad548a commit 8798567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/auxiliary/wmapmodule.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def wmap_base_url
7171
else
7272
res << datastore['VHOST']
7373
end
74-
res << ":" + wmap_target_port
74+
res << ":" + wmap_target_port.to_s
7575
res
7676
end
7777

0 commit comments

Comments
 (0)