{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/89248878","pull_request_review_id":9795534,"id":89248878,"diff_hunk":"@@ -0,0 +1,179 @@\n+require 'openssl'\n+\n+module Metasploit\n+  module Framework\n+    module Aws\n+      module Client","path":"lib/metasploit/framework/aws/client.rb","position":6,"original_position":6,"commit_id":"43e1b5bdd1061eb30370561c9928ca42509de45d","original_commit_id":"43e1b5bdd1061eb30370561c9928ca42509de45d","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":"It would be excellent if there were specs for this client, or at least the critical parts.  Some seem easily testable, others not.  See what you can do and we can lend a hand.","created_at":"2016-11-23T02:29:45Z","updated_at":"2016-11-23T02:30:18Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/7604#discussion_r89248878","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/89248878"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/7604#discussion_r89248878"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604","id":94915342,"html_url":"https://github.com/rapid7/metasploit-framework/pull/7604","diff_url":"https://github.com/rapid7/metasploit-framework/pull/7604.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/7604.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7604","number":7604,"state":"open","locked":false,"title":"Creates an AWS IAM User from pwned AWS host","user":{"login":"godinezj","id":2982057,"avatar_url":"https://avatars.githubusercontent.com/u/2982057?v=3","gravatar_id":"","url":"https://api.github.com/users/godinezj","html_url":"https://github.com/godinezj","followers_url":"https://api.github.com/users/godinezj/followers","following_url":"https://api.github.com/users/godinezj/following{/other_user}","gists_url":"https://api.github.com/users/godinezj/gists{/gist_id}","starred_url":"https://api.github.com/users/godinezj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godinezj/subscriptions","organizations_url":"https://api.github.com/users/godinezj/orgs","repos_url":"https://api.github.com/users/godinezj/repos","events_url":"https://api.github.com/users/godinezj/events{/privacy}","received_events_url":"https://api.github.com/users/godinezj/received_events","type":"User","site_admin":false},"body":"* Adds generic Amazon Web Services (AWS) client\r\n* Escalates privs by creating an admin user in compromised AWS account\r\n\r\n## Verification\r\n\r\nGiven a meterpreter session to an AWS instance having weak privs, do:\r\n\r\n```\r\nmsf exploit(sshexec) > use auxiliary/admin/aws/aws_create_iam_user\r\nmsf post(aws_create_iam_user) > set SESSION 1\r\nSESSION => 1\r\nmsf post(aws_create_iam_user) > exploit\r\n```\r\n\r\nsee loot, e.g., $ cat ~/.msf4/loot/20161121175902_default_52.1.2.3_AKIA_881948.txt\r\n","created_at":"2016-11-22T22:56:59Z","updated_at":"2016-11-23T02:30:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5066e2a45d3815e54a1e95882551c41abe573537","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604/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/7604/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/43e1b5bdd1061eb30370561c9928ca42509de45d","head":{"label":"godinezj:rsa_conf_2017_iam_user","ref":"rsa_conf_2017_iam_user","sha":"43e1b5bdd1061eb30370561c9928ca42509de45d","user":{"login":"godinezj","id":2982057,"avatar_url":"https://avatars.githubusercontent.com/u/2982057?v=3","gravatar_id":"","url":"https://api.github.com/users/godinezj","html_url":"https://github.com/godinezj","followers_url":"https://api.github.com/users/godinezj/followers","following_url":"https://api.github.com/users/godinezj/following{/other_user}","gists_url":"https://api.github.com/users/godinezj/gists{/gist_id}","starred_url":"https://api.github.com/users/godinezj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godinezj/subscriptions","organizations_url":"https://api.github.com/users/godinezj/orgs","repos_url":"https://api.github.com/users/godinezj/repos","events_url":"https://api.github.com/users/godinezj/events{/privacy}","received_events_url":"https://api.github.com/users/godinezj/received_events","type":"User","site_admin":false},"repo":{"id":36992860,"name":"metasploit-framework","full_name":"godinezj/metasploit-framework","owner":{"login":"godinezj","id":2982057,"avatar_url":"https://avatars.githubusercontent.com/u/2982057?v=3","gravatar_id":"","url":"https://api.github.com/users/godinezj","html_url":"https://github.com/godinezj","followers_url":"https://api.github.com/users/godinezj/followers","following_url":"https://api.github.com/users/godinezj/following{/other_user}","gists_url":"https://api.github.com/users/godinezj/gists{/gist_id}","starred_url":"https://api.github.com/users/godinezj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godinezj/subscriptions","organizations_url":"https://api.github.com/users/godinezj/orgs","repos_url":"https://api.github.com/users/godinezj/repos","events_url":"https://api.github.com/users/godinezj/events{/privacy}","received_events_url":"https://api.github.com/users/godinezj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/godinezj/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/godinezj/metasploit-framework","forks_url":"https://api.github.com/repos/godinezj/metasploit-framework/forks","keys_url":"https://api.github.com/repos/godinezj/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/godinezj/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/godinezj/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/godinezj/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/godinezj/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/godinezj/metasploit-framework/events","assignees_url":"https://api.github.com/repos/godinezj/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/godinezj/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/godinezj/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/godinezj/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/godinezj/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/godinezj/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/godinezj/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/godinezj/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/godinezj/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/godinezj/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/godinezj/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/godinezj/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/godinezj/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/godinezj/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/godinezj/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/godinezj/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/godinezj/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/godinezj/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/godinezj/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/godinezj/metasploit-framework/merges","archive_url":"https://api.github.com/repos/godinezj/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/godinezj/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/godinezj/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/godinezj/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/godinezj/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/godinezj/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/godinezj/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/godinezj/metasploit-framework/releases{/id}","deployments_url":"https://api.github.com/repos/godinezj/metasploit-framework/deployments","created_at":"2015-06-06T19:42:31Z","updated_at":"2016-11-19T06:32:23Z","pushed_at":"2016-11-22T22:55:11Z","git_url":"git://github.com/godinezj/metasploit-framework.git","ssh_url":"git@github.com:godinezj/metasploit-framework.git","clone_url":"https://github.com/godinezj/metasploit-framework.git","svn_url":"https://github.com/godinezj/metasploit-framework","homepage":"http://www.metasploit.com/","size":289194,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"3640e87a37c33cd952f119967e5d99c66de6b1ab","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-11-23T00:15:29Z","pushed_at":"2016-11-22T22:56:59Z","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":1430327,"stargazers_count":7137,"watchers_count":7137,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4616,"mirror_url":null,"open_issues_count":326,"forks":4616,"open_issues":326,"watchers":7137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/7604"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7604"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/7604/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/7604/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/7604/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/43e1b5bdd1061eb30370561c9928ca42509de45d"}}}}
{"actor":{"display_login":"jhart-r7"}}