File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
modules/auxiliary/admin/upnp Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ def run
70
70
content << "</m:AddPortMapping>"
71
71
content << "</SOAP-ENV:Body>"
72
72
content << "</SOAP-ENV:Envelope>"
73
+
73
74
res = send_request_cgi (
74
75
'uri' => normalize_uri ( target_uri . path ) ,
75
76
'method' => 'POST' ,
@@ -81,7 +82,9 @@ def run
81
82
)
82
83
83
84
if res
84
- map = "#{ rhost } :#{ external_port } /#{ protocol } -> #{ internal_client } :#{ internal_port } /#{ protocol } "
85
+ external_map = "#{ external_client ? external_client : 'any' } :#{ external_port } /#{ protocol } "
86
+ internal_map = "#{ internal_client ? internal_client : 'any' } :#{ internal_port } /#{ protocol } "
87
+ map = "#{ external_map } -> #{ internal_map } "
85
88
if res . code == 200
86
89
print_good ( "#{ peer } successfully mapped #{ map } " )
87
90
else
You can’t perform that action at this time.
0 commit comments