{"action":"created","comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/26890697","id":26890697,"diff_hunk":"@@ -56,6 +56,36 @@ def self.parse_pem_file(ssl_cert_file)\n     parse_pem(data)\n   end\n \n+  #\n+  # Parse a certificate in unified PEM format and retrieve\n+  #   the SHA1 hash.","path":"lib/rex/parser/x509_certificate.rb","position":6,"original_position":6,"commit_id":"9d20d057dd6845ced9abf00ae60983c47a10577d","original_commit_id":"9d20d057dd6845ced9abf00ae60983c47a10577d","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":"*shakes fist*\r\nRoger :)","created_at":"2015-03-21T09:48:39Z","updated_at":"2015-03-21T09:48:39Z","html_url":"https://github.com/rapid7/metasploit-framework/pull/4962#discussion_r26890697","pull_request_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962","_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/comments/26890697"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/4962#discussion_r26890697"},"pull_request":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962"}}},"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962","id":31586659,"html_url":"https://github.com/rapid7/metasploit-framework/pull/4962","diff_url":"https://github.com/rapid7/metasploit-framework/pull/4962.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/4962.patch","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4962","number":4962,"state":"open","locked":false,"title":"Refactor of HTTP code to support changes to Meterpreter","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 started as MSF work to support WinHTTP, but ended up a small refactor to make use of what @hmoore-r7 had done already elsewhere.\r\n\r\nPR contains code that does the following:\r\n\r\n* Provides support for patching strings that are both `wchar_t` and `char` when doing the patching of `metsrv`.\r\n* Refactors a bit of code to make it usable from various locations.\r\n* Addition of the cert hash patching so that Meterpreter knows which SSL certificate to search for.\r\n\r\nFull details of what needs to be done/tested are in the Meterpreter PR, located here: https://github.com/rapid7/meterpreter/pull/140","created_at":"2015-03-20T03:54:41Z","updated_at":"2015-03-21T09:48:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87666b6b67318d69b2ff5a352eb2f33b6b230ae4","assignee":{"login":"bcook-r7","id":10031469,"avatar_url":"https://avatars.githubusercontent.com/u/10031469?v=3","gravatar_id":"","url":"https://api.github.com/users/bcook-r7","html_url":"https://github.com/bcook-r7","followers_url":"https://api.github.com/users/bcook-r7/followers","following_url":"https://api.github.com/users/bcook-r7/following{/other_user}","gists_url":"https://api.github.com/users/bcook-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/bcook-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcook-r7/subscriptions","organizations_url":"https://api.github.com/users/bcook-r7/orgs","repos_url":"https://api.github.com/users/bcook-r7/repos","events_url":"https://api.github.com/users/bcook-r7/events{/privacy}","received_events_url":"https://api.github.com/users/bcook-r7/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962/commits","review_comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962/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/4962/comments","statuses_url":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/9d20d057dd6845ced9abf00ae60983c47a10577d","head":{"label":"OJ:winhttp-support","ref":"winhttp-support","sha":"9d20d057dd6845ced9abf00ae60983c47a10577d","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},"repo":{"id":12772618,"name":"metasploit-framework","full_name":"OJ/metasploit-framework","owner":{"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},"private":false,"html_url":"https://github.com/OJ/metasploit-framework","description":"Metasploit Framework","fork":true,"url":"https://api.github.com/repos/OJ/metasploit-framework","forks_url":"https://api.github.com/repos/OJ/metasploit-framework/forks","keys_url":"https://api.github.com/repos/OJ/metasploit-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OJ/metasploit-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OJ/metasploit-framework/teams","hooks_url":"https://api.github.com/repos/OJ/metasploit-framework/hooks","issue_events_url":"https://api.github.com/repos/OJ/metasploit-framework/issues/events{/number}","events_url":"https://api.github.com/repos/OJ/metasploit-framework/events","assignees_url":"https://api.github.com/repos/OJ/metasploit-framework/assignees{/user}","branches_url":"https://api.github.com/repos/OJ/metasploit-framework/branches{/branch}","tags_url":"https://api.github.com/repos/OJ/metasploit-framework/tags","blobs_url":"https://api.github.com/repos/OJ/metasploit-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OJ/metasploit-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OJ/metasploit-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/OJ/metasploit-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OJ/metasploit-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/OJ/metasploit-framework/languages","stargazers_url":"https://api.github.com/repos/OJ/metasploit-framework/stargazers","contributors_url":"https://api.github.com/repos/OJ/metasploit-framework/contributors","subscribers_url":"https://api.github.com/repos/OJ/metasploit-framework/subscribers","subscription_url":"https://api.github.com/repos/OJ/metasploit-framework/subscription","commits_url":"https://api.github.com/repos/OJ/metasploit-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/OJ/metasploit-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/OJ/metasploit-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/OJ/metasploit-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/OJ/metasploit-framework/contents/{+path}","compare_url":"https://api.github.com/repos/OJ/metasploit-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OJ/metasploit-framework/merges","archive_url":"https://api.github.com/repos/OJ/metasploit-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OJ/metasploit-framework/downloads","issues_url":"https://api.github.com/repos/OJ/metasploit-framework/issues{/number}","pulls_url":"https://api.github.com/repos/OJ/metasploit-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/OJ/metasploit-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/OJ/metasploit-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OJ/metasploit-framework/labels{/name}","releases_url":"https://api.github.com/repos/OJ/metasploit-framework/releases{/id}","created_at":"2013-09-12T01:57:53Z","updated_at":"2015-03-20T02:38:17Z","pushed_at":"2015-03-20T03:20:56Z","git_url":"git://github.com/OJ/metasploit-framework.git","ssh_url":"git@github.com:OJ/metasploit-framework.git","clone_url":"https://github.com/OJ/metasploit-framework.git","svn_url":"https://github.com/OJ/metasploit-framework","homepage":"http://www.metasploit.com/","size":267721,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"rapid7:master","ref":"master","sha":"cf645772b66add704ee88b10eb2d7ef19e5dd95a","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-03-21T05:49:03Z","pushed_at":"2015-03-21T04:48:44Z","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":1042256,"stargazers_count":3498,"watchers_count":3498,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2901,"mirror_url":null,"open_issues_count":185,"forks":2901,"open_issues":185,"watchers":3498,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962"},"html":{"href":"https://github.com/rapid7/metasploit-framework/pull/4962"},"issue":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4962"},"comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/issues/4962/comments"},"review_comments":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/4962/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/4962/commits"},"statuses":{"href":"https://api.github.com/repos/rapid7/metasploit-framework/statuses/9d20d057dd6845ced9abf00ae60983c47a10577d"}}}}