{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/28111957","id":28111957,"diff_hunk":"@@ -0,0 +1,85 @@\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 Metasploit4 < Msf::Exploit::Local\n+\n+  Rank = GreatRanking\n+\n+  include Msf::Post::File\n+  include Msf::Exploit::EXE\n+  include Msf::Exploit::FileDropper\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name' => 'Mac OS X \"Rootpipe\" Privilege Escalation',\n+      'Description' => %q{\n+        This module exploits a hidden backdoor API in Apple's Admin framework on\n+        OS X to escalate privileges to root. Dubbed \"Rootpipe.\"\n+\n+        Tested on Mavericks 10.10.2 and should work on previous versions.\n+\n+        The patch for this issue was not backported to older releases.\n+      },\n+      'Author' => [\n+        'Emil Kvarnhammar', # Vulnerability discovery and PoC\n+        'joev', # Copy/paste monkey\n+        'wvu' # Meta copy/paste monkey\n+      ],\n+      'References' => [\n+        ['CVE', '2015-1130'],\n+        ['EDB', '36692'],\n+        ['URL', 'https://truesecdev.wordpress.com/2015/04/09/hidden-backdoor-api-to-root-privileges-in-apple-os-x/']\n+      ],\n+      'Platform' => 'osx',\n+      'Arch' => ARCH_X86_64,\n+      'SessionTypes' => ['shell', 'meterpreter'],\n+      'Targets' => [\n+        ['Mac OS X 10.10.2 Yosemite x64 (Native Payload)', {}]","path":"modules/exploits/osx/local/rootpipe.rb","position":41,"original_position":41,"commit_id":"be2aea5042a4ac40e3042b74c57e5d917984ee46","original_commit_id":"be2aea5042a4ac40e3042b74c57e5d917984ee46","user":{"login":"OJ","id":28896,"avatar_url":"https://avatars.githubusercontent.com/u/28896?v=3","gravatar_id":"","url":"https://api.github.com/users/OJ","html_url":"https://github.com/OJ","followers_url":"https://api.github.com/users/OJ/followers","following_url":"https://api.github.com/users/OJ/following{/other_user}","gists_url":"https://api.github.com/users/OJ/gists{/gist_id}","starred_url":"https://api.github.com/users/OJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OJ/subscriptions","organizations_url":"https://api.github.com/users/OJ/orgs","repos_url":"https://api.github.com/users/OJ/repos","events_url":"https://api.github.com/users/OJ/events{/privacy}","received_events_url":"https://api.github.com/users/OJ/received_events","type":"User","site_admin":false},"body":"This should be probably be updated to include `Mac OSX 10.9.x-10.10.2 x64 (Native Payload)`.","created_at":"2015-04-09T23:23:22Z","updated_at":"2015-04-09T23:23:22Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/5119#discussion_r28111957","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/28111957"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5119#discussion_r28111957"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119","id":33005502,"html_url":"https://github.com/rapid7/metasploit-framework/pull/5119","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5119.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5119.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5119","number":5119,"state":"open","locked":false,"title":"Add Rootpipe exploit","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":"Be aware that ```bash``` drops privs unless ```-p``` is specified.","created_at":"2015-04-09T23:13:57Z","updated_at":"2015-04-09T23:23:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae449f666118fbfa5d611176719bb0718e0407f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119/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/5119/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/be2aea5042a4ac40e3042b74c57e5d917984ee46","head":{"label":"wvu-r7:feature/rootpipe","ref":"feature/rootpipe","sha":"be2aea5042a4ac40e3042b74c57e5d917984ee46","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},"repo":{"id":10491111,"name":"metasploit-framework","full_name":"wvu-r7/metasploit-framework","owner":{"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},"private":false,"html_url":"https://github.com/wvu-r7/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/wvu-r7/metasploit-framework","forks_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/forks","keys_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/events","assignees_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/merges","archive_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/wvu-r7/metasploit-framework/releases{/id}","created_at":"2013-06-04T23:42:41Z","updated_at":"2015-04-09T15:50:10Z","pushed_at":"2015-04-09T23:12:11Z","git_url":"git://github.com/wvu-r7/metasploit-framework.git","ssh_url":"git@github.com:wvu-r7/metasploit-framework.git","clone_url":"https://github.com/wvu-r7/metasploit-framework.git","svn_url":"https://github.com/wvu-r7/metasploit-framework","homepage":"http://www.metasploit.com/","size":276551,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"298b20ba74bd6f06c5fc0e51e47aa3211e08b2d4","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-04-09T22:58:44Z","pushed_at":"2015-04-09T23:13:57Z","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":1054107,"stargazers_count":3573,"watchers_count":3573,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2958,"mirror_url":null,"open_issues_count":201,"forks":2958,"open_issues":201,"watchers":3573,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/5119"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5119"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5119/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5119/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/5119/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/be2aea5042a4ac40e3042b74c57e5d917984ee46"}}}}