{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/38245824","id":38245824,"diff_hunk":"@@ -0,0 +1,69 @@\n+##\n+# encoding: utf-8\n+# This module requires Metasploit: http://metasploit.com/download\n+# Current source: https://github.com/rapid7/metasploit-framework\n+##\n+\n+require 'msf/core'\n+class Metasploit3 < Msf::Auxiliary\n+      include Msf::Exploit::Remote::Tcp       \n+\n+      def initialize                 \n+          super(                         \n+                   'Name'           => 'UPnP AddPortMapping',\n+                   'Version'        => '$Revision: 1 $',\n+                   'Description'    => 'UPnP AddPortMapping SOAP request',\n+                   'Author'         => 'St0rn <fabien@anbu-pentest.com>',\n+                   'License'        => MSF_LICENSE\n+                )\n+      register_options(\n+      [\n+        OptString.new('CTRL_URL', [ true, 'UPnP Control URL']),","path":"modules/auxiliary/upnp/soap_addportmapping.rb","position":21,"original_position":21,"commit_id":"3fd18e484415e71d55f33b15c75a36202fa75a21","original_commit_id":"3fd18e484415e71d55f33b15c75a36202fa75a21","user":{"login":"jhart-r7","id":3869433,"avatar_url":"https://avatars.githubusercontent.com/u/3869433?v=3","gravatar_id":"","url":"https://api.github.com/users/jhart-r7","html_url":"https://github.com/jhart-r7","followers_url":"https://api.github.com/users/jhart-r7/followers","following_url":"https://api.github.com/users/jhart-r7/following{/other_user}","gists_url":"https://api.github.com/users/jhart-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jhart-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhart-r7/subscriptions","organizations_url":"https://api.github.com/users/jhart-r7/orgs","repos_url":"https://api.github.com/users/jhart-r7/repos","events_url":"https://api.github.com/users/jhart-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jhart-r7/received_events","type":"User","site_admin":false},"body":"You should use `Msf::Exploit::Remote::HttpClient` for this\r\n  \r\n","created_at":"2015-08-28T21:23:46Z","updated_at":"2015-08-28T21:23:46Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/5776#discussion_r38245824","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/38245824"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5776#discussion_r38245824"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776","id":40858464,"html_url":"https://github.com/rapid7/metasploit-framework/pull/5776","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5776.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5776.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5776","number":5776,"state":"open","locked":false,"title":"Add SOAP AddPortMapping UPnP auxiliary module","user":{"login":"St0rn","id":9295802,"avatar_url":"https://avatars.githubusercontent.com/u/9295802?v=3","gravatar_id":"","url":"https://api.github.com/users/St0rn","html_url":"https://github.com/St0rn","followers_url":"https://api.github.com/users/St0rn/followers","following_url":"https://api.github.com/users/St0rn/following{/other_user}","gists_url":"https://api.github.com/users/St0rn/gists{/gist_id}","starred_url":"https://api.github.com/users/St0rn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/St0rn/subscriptions","organizations_url":"https://api.github.com/users/St0rn/orgs","repos_url":"https://api.github.com/users/St0rn/repos","events_url":"https://api.github.com/users/St0rn/events{/privacy}","received_events_url":"https://api.github.com/users/St0rn/received_events","type":"User","site_admin":false},"body":"Auxiliary module to add Port Mapping into routers which allow UPnP SOAP request.\r\nThe success status is verified by router response to a request (HTTP code 200).\r\n\r\n<h3>Example Output</h3>\r\n\r\n<pre><code>\r\nmsf> use auxiliary/upnp/soap_addportmapping\r\nmsf auxiliary(soap_addportmapping) > set CTRL_URL WANIPConn1\r\nCTRL_URL => WANIPConn1\r\nmsf auxiliary(soap_addportmapping) > set external_port 69\r\nexternal_port => 69\r\nmsf auxiliary(soap_addportmapping) > set internal_port 69\r\ninternal_port => 6\r\nmsf auxiliary(soap_addportmapping) > set internal_client 192.168.1.38\r\ninternal_client => 192.168.1.38\r\nmsf auxiliary(soap_addportmapping) > set rhost 192.168.1.1\r\nrhost => 192.168.1.1\r\nmsf auxiliary(soap_addportmapping) > set rport 49000\r\nrport => 49000\r\nmsf auxiliary(soap_addportmapping) > run\r\n\r\n[*] Sending SOAP Envelope\r\n[+] PAT added successfully\r\n[*] Auxiliary module execution completed\r\n</code></pre>\r\n\r\n\r\n","created_at":"2015-07-26T19:40:25Z","updated_at":"2015-08-28T21:23:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07a3a8a1d702366cb437c877ebe281e6662c10c8","assignee":{"login":"jhart-r7","id":3869433,"avatar_url":"https://avatars.githubusercontent.com/u/3869433?v=3","gravatar_id":"","url":"https://api.github.com/users/jhart-r7","html_url":"https://github.com/jhart-r7","followers_url":"https://api.github.com/users/jhart-r7/followers","following_url":"https://api.github.com/users/jhart-r7/following{/other_user}","gists_url":"https://api.github.com/users/jhart-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jhart-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhart-r7/subscriptions","organizations_url":"https://api.github.com/users/jhart-r7/orgs","repos_url":"https://api.github.com/users/jhart-r7/repos","events_url":"https://api.github.com/users/jhart-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jhart-r7/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776/comments","review_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5776/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/3fd18e484415e71d55f33b15c75a36202fa75a21","head":{"label":"St0rn:master","ref":"master","sha":"3fd18e484415e71d55f33b15c75a36202fa75a21","user":{"login":"St0rn","id":9295802,"avatar_url":"https://avatars.githubusercontent.com/u/9295802?v=3","gravatar_id":"","url":"https://api.github.com/users/St0rn","html_url":"https://github.com/St0rn","followers_url":"https://api.github.com/users/St0rn/followers","following_url":"https://api.github.com/users/St0rn/following{/other_user}","gists_url":"https://api.github.com/users/St0rn/gists{/gist_id}","starred_url":"https://api.github.com/users/St0rn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/St0rn/subscriptions","organizations_url":"https://api.github.com/users/St0rn/orgs","repos_url":"https://api.github.com/users/St0rn/repos","events_url":"https://api.github.com/users/St0rn/events{/privacy}","received_events_url":"https://api.github.com/users/St0rn/received_events","type":"User","site_admin":false},"repo":{"id":39737388,"name":"metasploit-framework","full_name":"St0rn/metasploit-framework","owner":{"login":"St0rn","id":9295802,"avatar_url":"https://avatars.githubusercontent.com/u/9295802?v=3","gravatar_id":"","url":"https://api.github.com/users/St0rn","html_url":"https://github.com/St0rn","followers_url":"https://api.github.com/users/St0rn/followers","following_url":"https://api.github.com/users/St0rn/following{/other_user}","gists_url":"https://api.github.com/users/St0rn/gists{/gist_id}","starred_url":"https://api.github.com/users/St0rn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/St0rn/subscriptions","organizations_url":"https://api.github.com/users/St0rn/orgs","repos_url":"https://api.github.com/users/St0rn/repos","events_url":"https://api.github.com/users/St0rn/events{/privacy}","received_events_url":"https://api.github.com/users/St0rn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/St0rn/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/St0rn/metasploit-framework","forks_url":"https://api.github.com/repos/St0rn/metasploit-framework/forks","keys_url":"https://api.github.com/repos/St0rn/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/St0rn/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/St0rn/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/St0rn/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/St0rn/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/St0rn/metasploit-framework/events","assignees_url":"https://api.github.com/repos/St0rn/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/St0rn/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/St0rn/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/St0rn/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/St0rn/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/St0rn/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/St0rn/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/St0rn/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/St0rn/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/St0rn/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/St0rn/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/St0rn/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/St0rn/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/St0rn/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/St0rn/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/St0rn/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/St0rn/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/St0rn/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/St0rn/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/St0rn/metasploit-framework/merges","archive_url":"https://api.github.com/repos/St0rn/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/St0rn/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/St0rn/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/St0rn/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/St0rn/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/St0rn/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/St0rn/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/St0rn/metasploit-framework/releases{/id}","created_at":"2015-07-26T18:48:53Z","updated_at":"2015-07-26T18:49:15Z","pushed_at":"2015-07-26T19:57:50Z","git_url":"git://github.com/St0rn/metasploit-framework.git","ssh_url":"git@github.com:St0rn/metasploit-framework.git","clone_url":"https://github.com/St0rn/metasploit-framework.git","svn_url":"https://github.com/St0rn/metasploit-framework","homepage":"http://www.metasploit.com/","size":283317,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"2d0a26ea8b847830e2084dd12ae63d7e51fa4632","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"repo":{"id":2293158,"name":"metasploit-framework","full_name":"rapid7/metasploit-framework","owner":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=3","gravatar_id":"","url":"https://api.github.com/users/rapid7","html_url":"https://github.com/rapid7","followers_url":"https://api.github.com/users/rapid7/followers","following_url":"https://api.github.com/users/rapid7/following{/other_user}","gists_url":"https://api.github.com/users/rapid7/gists{/gist_id}","starred_url":"https://api.github.com/users/rapid7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapid7/subscriptions","organizations_url":"https://api.github.com/users/rapid7/orgs","repos_url":"https://api.github.com/users/rapid7/repos","events_url":"https://api.github.com/users/rapid7/events{/privacy}","received_events_url":"https://api.github.com/users/rapid7/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapid7/metasploit-framework","description":"Metasploit Framework","fork":false,"url":"https://api.github.com/repos/rapid7/metasploit-framework","forks_url":"https://api.github.com/repos/rapid7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/rapid7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapid7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapid7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/rapid7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/rapid7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rapid7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rapid7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/rapid7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/rapid7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/rapid7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapid7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rapid7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapid7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/rapid7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapid7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rapid7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rapid7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/rapid7/metasploit-framework/releases{/id}","created_at":"2011-08-30T06:13:20Z","updated_at":"2015-08-28T17:24:08Z","pushed_at":"2015-08-28T21:05:08Z","git_url":"git://github.com/rapid7/metasploit-framework.git","ssh_url":"git@github.com:rapid7/metasploit-framework.git","clone_url":"https://github.com/rapid7/metasploit-framework.git","svn_url":"https://github.com/rapid7/metasploit-framework","homepage":"http://www.metasploit.com/","size":1080628,"stargazers_count":4370,"watchers_count":4370,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3366,"mirror_url":null,"open_issues_count":230,"forks":3366,"open_issues":230,"watchers":4370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5776"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5776"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5776/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776/comments"},"review_comment":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5776/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/3fd18e484415e71d55f33b15c75a36202fa75a21"}}}}