{"action":"created","comment":{"url":"https://api.github.com/repos/prey/prey-node-client/pulls/comments/70675458","id":70675458,"diff_hunk":"@@ -2,8 +2,35 @@ var os   = require('os'),\n     join = require('path').join,\n     exec = require('child_process').exec;\n \n+var outlook_version = join('HKEY_CLASSES_ROOT', 'Outlook.Application', 'CurVEr');\n+var profileRegistry = join('HKEY_CURRENT_USER', 'Software', 'Microsoft');\n+\n+var getOutlookVersion = function(cb) {\n+  exec('reg query ' + '\"' + outlook_version + '\"', function(err, stdout) {","path":"lib/agent/actions/wipe/windows.js","position":8,"original_position":8,"commit_id":"f2c6fb6d9e3337ddaa4c3259abb803dd7c766652","original_commit_id":"f2c6fb6d9e3337ddaa4c3259abb803dd7c766652","user":{"login":"raliste","id":388935,"avatar_url":"https://avatars.githubusercontent.com/u/388935?v=3","gravatar_id":"","url":"https://api.github.com/users/raliste","html_url":"https://github.com/raliste","followers_url":"https://api.github.com/users/raliste/followers","following_url":"https://api.github.com/users/raliste/following{/other_user}","gists_url":"https://api.github.com/users/raliste/gists{/gist_id}","starred_url":"https://api.github.com/users/raliste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raliste/subscriptions","organizations_url":"https://api.github.com/users/raliste/orgs","repos_url":"https://api.github.com/users/raliste/repos","events_url":"https://api.github.com/users/raliste/events{/privacy}","received_events_url":"https://api.github.com/users/raliste/received_events","type":"User","site_admin":false},"body":"I'd move all the reg operations to their own functions, for instance:\r\n\r\nvar registry = {\r\n  query: function() { ... },\r\n  delete: function() { ... },\r\n  add: function() { ... }\r\n}","created_at":"2016-07-13T17:55:04Z","updated_at":"2016-07-13T17:55:04Z","html_url":"https://github.com/prey/prey-node-client/pull/221#discussion_r70675458","pull_request_url":"https://api.github.com/repos/prey/prey-node-client/pulls/221","_links":{"self":{"href":"https://api.github.com/repos/prey/prey-node-client/pulls/comments/70675458"},"html":{"href":"https://github.com/prey/prey-node-client/pull/221#discussion_r70675458"},"pull_request":{"href":"https://api.github.com/repos/prey/prey-node-client/pulls/221"}}},"pull_request":{"url":"https://api.github.com/repos/prey/prey-node-client/pulls/221","id":77330279,"html_url":"https://github.com/prey/prey-node-client/pull/221","diff_url":"https://github.com/prey/prey-node-client/pull/221.diff","patch_url":"https://github.com/prey/prey-node-client/pull/221.patch","issue_url":"https://api.github.com/repos/prey/prey-node-client/issues/221","number":221,"state":"open","locked":false,"title":"Remove Mail profiles data","user":{"login":"javo","id":11738416,"avatar_url":"https://avatars.githubusercontent.com/u/11738416?v=3","gravatar_id":"","url":"https://api.github.com/users/javo","html_url":"https://github.com/javo","followers_url":"https://api.github.com/users/javo/followers","following_url":"https://api.github.com/users/javo/following{/other_user}","gists_url":"https://api.github.com/users/javo/gists{/gist_id}","starred_url":"https://api.github.com/users/javo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javo/subscriptions","organizations_url":"https://api.github.com/users/javo/orgs","repos_url":"https://api.github.com/users/javo/repos","events_url":"https://api.github.com/users/javo/events{/privacy}","received_events_url":"https://api.github.com/users/javo/received_events","type":"User","site_admin":false},"body":"Using email wipe action there was a chance that all the email information can be recovered because the Outlook and Thunderbird profiles were still available.\r\n\r\nThis PR makes sure that all the data is erased.","created_at":"2016-07-13T17:37:02Z","updated_at":"2016-07-13T17:55:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"119b2636f8d588aaf1b3bd77b88f16ede3157eaa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/prey/prey-node-client/pulls/221/commits","review_comments_url":"https://api.github.com/repos/prey/prey-node-client/pulls/221/comments","review_comment_url":"https://api.github.com/repos/prey/prey-node-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prey/prey-node-client/issues/221/comments","statuses_url":"https://api.github.com/repos/prey/prey-node-client/statuses/f2c6fb6d9e3337ddaa4c3259abb803dd7c766652","head":{"label":"prey:mail-profiles-deletion","ref":"mail-profiles-deletion","sha":"f2c6fb6d9e3337ddaa4c3259abb803dd7c766652","user":{"login":"prey","id":833975,"avatar_url":"https://avatars.githubusercontent.com/u/833975?v=3","gravatar_id":"","url":"https://api.github.com/users/prey","html_url":"https://github.com/prey","followers_url":"https://api.github.com/users/prey/followers","following_url":"https://api.github.com/users/prey/following{/other_user}","gists_url":"https://api.github.com/users/prey/gists{/gist_id}","starred_url":"https://api.github.com/users/prey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prey/subscriptions","organizations_url":"https://api.github.com/users/prey/orgs","repos_url":"https://api.github.com/users/prey/repos","events_url":"https://api.github.com/users/prey/events{/privacy}","received_events_url":"https://api.github.com/users/prey/received_events","type":"Organization","site_admin":false},"repo":{"id":3743084,"name":"prey-node-client","full_name":"prey/prey-node-client","owner":{"login":"prey","id":833975,"avatar_url":"https://avatars.githubusercontent.com/u/833975?v=3","gravatar_id":"","url":"https://api.github.com/users/prey","html_url":"https://github.com/prey","followers_url":"https://api.github.com/users/prey/followers","following_url":"https://api.github.com/users/prey/following{/other_user}","gists_url":"https://api.github.com/users/prey/gists{/gist_id}","starred_url":"https://api.github.com/users/prey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prey/subscriptions","organizations_url":"https://api.github.com/users/prey/orgs","repos_url":"https://api.github.com/users/prey/repos","events_url":"https://api.github.com/users/prey/events{/privacy}","received_events_url":"https://api.github.com/users/prey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prey/prey-node-client","description":"Node.js client for the Prey anti-theft software.","fork":false,"url":"https://api.github.com/repos/prey/prey-node-client","forks_url":"https://api.github.com/repos/prey/prey-node-client/forks","keys_url":"https://api.github.com/repos/prey/prey-node-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prey/prey-node-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prey/prey-node-client/teams","hooks_url":"https://api.github.com/repos/prey/prey-node-client/hooks","issue_events_url":"https://api.github.com/repos/prey/prey-node-client/issues/events{/number}","events_url":"https://api.github.com/repos/prey/prey-node-client/events","assignees_url":"https://api.github.com/repos/prey/prey-node-client/assignees{/user}","branches_url":"https://api.github.com/repos/prey/prey-node-client/branches{/branch}","tags_url":"https://api.github.com/repos/prey/prey-node-client/tags","blobs_url":"https://api.github.com/repos/prey/prey-node-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prey/prey-node-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prey/prey-node-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/prey/prey-node-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prey/prey-node-client/statuses/{sha}","languages_url":"https://api.github.com/repos/prey/prey-node-client/languages","stargazers_url":"https://api.github.com/repos/prey/prey-node-client/stargazers","contributors_url":"https://api.github.com/repos/prey/prey-node-client/contributors","subscribers_url":"https://api.github.com/repos/prey/prey-node-client/subscribers","subscription_url":"https://api.github.com/repos/prey/prey-node-client/subscription","commits_url":"https://api.github.com/repos/prey/prey-node-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/prey/prey-node-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/prey/prey-node-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/prey/prey-node-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/prey/prey-node-client/contents/{+path}","compare_url":"https://api.github.com/repos/prey/prey-node-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prey/prey-node-client/merges","archive_url":"https://api.github.com/repos/prey/prey-node-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prey/prey-node-client/downloads","issues_url":"https://api.github.com/repos/prey/prey-node-client/issues{/number}","pulls_url":"https://api.github.com/repos/prey/prey-node-client/pulls{/number}","milestones_url":"https://api.github.com/repos/prey/prey-node-client/milestones{/number}","notifications_url":"https://api.github.com/repos/prey/prey-node-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prey/prey-node-client/labels{/name}","releases_url":"https://api.github.com/repos/prey/prey-node-client/releases{/id}","deployments_url":"https://api.github.com/repos/prey/prey-node-client/deployments","created_at":"2012-03-16T21:09:27Z","updated_at":"2016-07-06T12:30:59Z","pushed_at":"2016-07-13T17:37:02Z","git_url":"git://github.com/prey/prey-node-client.git","ssh_url":"git@github.com:prey/prey-node-client.git","clone_url":"https://github.com/prey/prey-node-client.git","svn_url":"https://github.com/prey/prey-node-client","homepage":"http://preyproject.com","size":24055,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":72,"forks":55,"open_issues":72,"watchers":206,"default_branch":"master"}},"base":{"label":"prey:master","ref":"master","sha":"afc71d86664bf4d72e4579d1f4ffd5934cc6bfe1","user":{"login":"prey","id":833975,"avatar_url":"https://avatars.githubusercontent.com/u/833975?v=3","gravatar_id":"","url":"https://api.github.com/users/prey","html_url":"https://github.com/prey","followers_url":"https://api.github.com/users/prey/followers","following_url":"https://api.github.com/users/prey/following{/other_user}","gists_url":"https://api.github.com/users/prey/gists{/gist_id}","starred_url":"https://api.github.com/users/prey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prey/subscriptions","organizations_url":"https://api.github.com/users/prey/orgs","repos_url":"https://api.github.com/users/prey/repos","events_url":"https://api.github.com/users/prey/events{/privacy}","received_events_url":"https://api.github.com/users/prey/received_events","type":"Organization","site_admin":false},"repo":{"id":3743084,"name":"prey-node-client","full_name":"prey/prey-node-client","owner":{"login":"prey","id":833975,"avatar_url":"https://avatars.githubusercontent.com/u/833975?v=3","gravatar_id":"","url":"https://api.github.com/users/prey","html_url":"https://github.com/prey","followers_url":"https://api.github.com/users/prey/followers","following_url":"https://api.github.com/users/prey/following{/other_user}","gists_url":"https://api.github.com/users/prey/gists{/gist_id}","starred_url":"https://api.github.com/users/prey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prey/subscriptions","organizations_url":"https://api.github.com/users/prey/orgs","repos_url":"https://api.github.com/users/prey/repos","events_url":"https://api.github.com/users/prey/events{/privacy}","received_events_url":"https://api.github.com/users/prey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prey/prey-node-client","description":"Node.js client for the Prey anti-theft software.","fork":false,"url":"https://api.github.com/repos/prey/prey-node-client","forks_url":"https://api.github.com/repos/prey/prey-node-client/forks","keys_url":"https://api.github.com/repos/prey/prey-node-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prey/prey-node-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prey/prey-node-client/teams","hooks_url":"https://api.github.com/repos/prey/prey-node-client/hooks","issue_events_url":"https://api.github.com/repos/prey/prey-node-client/issues/events{/number}","events_url":"https://api.github.com/repos/prey/prey-node-client/events","assignees_url":"https://api.github.com/repos/prey/prey-node-client/assignees{/user}","branches_url":"https://api.github.com/repos/prey/prey-node-client/branches{/branch}","tags_url":"https://api.github.com/repos/prey/prey-node-client/tags","blobs_url":"https://api.github.com/repos/prey/prey-node-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prey/prey-node-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prey/prey-node-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/prey/prey-node-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prey/prey-node-client/statuses/{sha}","languages_url":"https://api.github.com/repos/prey/prey-node-client/languages","stargazers_url":"https://api.github.com/repos/prey/prey-node-client/stargazers","contributors_url":"https://api.github.com/repos/prey/prey-node-client/contributors","subscribers_url":"https://api.github.com/repos/prey/prey-node-client/subscribers","subscription_url":"https://api.github.com/repos/prey/prey-node-client/subscription","commits_url":"https://api.github.com/repos/prey/prey-node-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/prey/prey-node-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/prey/prey-node-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/prey/prey-node-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/prey/prey-node-client/contents/{+path}","compare_url":"https://api.github.com/repos/prey/prey-node-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prey/prey-node-client/merges","archive_url":"https://api.github.com/repos/prey/prey-node-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prey/prey-node-client/downloads","issues_url":"https://api.github.com/repos/prey/prey-node-client/issues{/number}","pulls_url":"https://api.github.com/repos/prey/prey-node-client/pulls{/number}","milestones_url":"https://api.github.com/repos/prey/prey-node-client/milestones{/number}","notifications_url":"https://api.github.com/repos/prey/prey-node-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prey/prey-node-client/labels{/name}","releases_url":"https://api.github.com/repos/prey/prey-node-client/releases{/id}","deployments_url":"https://api.github.com/repos/prey/prey-node-client/deployments","created_at":"2012-03-16T21:09:27Z","updated_at":"2016-07-06T12:30:59Z","pushed_at":"2016-07-13T17:37:02Z","git_url":"git://github.com/prey/prey-node-client.git","ssh_url":"git@github.com:prey/prey-node-client.git","clone_url":"https://github.com/prey/prey-node-client.git","svn_url":"https://github.com/prey/prey-node-client","homepage":"http://preyproject.com","size":24055,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":72,"forks":55,"open_issues":72,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prey/prey-node-client/pulls/221"},"html":{"href":"https://github.com/prey/prey-node-client/pull/221"},"issue":{"href":"https://api.github.com/repos/prey/prey-node-client/issues/221"},"comments":{"href":"https://api.github.com/repos/prey/prey-node-client/issues/221/comments"},"review_comments":{"href":"https://api.github.com/repos/prey/prey-node-client/pulls/221/comments"},"review_comment":{"href":"https://api.github.com/repos/prey/prey-node-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prey/prey-node-client/pulls/221/commits"},"statuses":{"href":"https://api.github.com/repos/prey/prey-node-client/statuses/f2c6fb6d9e3337ddaa4c3259abb803dd7c766652"}}}}
{"actor":{"display_login":"raliste"}}