{"action":"created","comment":{"url":"https://api.github.com/repos/GoSecure/malboxes/pulls/comments/66261940","id":66261940,"diff_hunk":"@@ -298,27 +325,20 @@ def reg(parser, args):\n         print(\"Registry modification type invalid.\")\n         print(\"Valid ones are: add, delete and modify.\")\n \n-    filename = os.path.join(\"scripts\",\"windows\", \"{}.ps1\".format(args.profile))\n-    f = open(filename, \"a\")\n-    f.write(line)\n-    f.close()\n+    filename = os.path.join(\"scripts\", \"user\",\n+                            \"windows\", \"{}.ps1\".format(args.profile))\n+    append_to_script(filename, line)\n \n-    \"\"\" Add the script to the profile.\"\"\"\n-    config = load_config(args.profile)\n-    provisioners_list = config[\"provisioners\"][0][\"scripts\"]\n-    \"\"\" If the script is not already in the profile.\"\"\"\n-    if filename not in provisioners_list:\n-        provisioners_list.append(fiString)","path":"malboxes.py","position":245,"original_position":245,"commit_id":"a9174541a13eeec431f29a29334ed324a5c1d719","original_commit_id":"a9174541a13eeec431f29a29334ed324a5c1d719","user":{"login":"obilodeau","id":546325,"avatar_url":"https://avatars.githubusercontent.com/u/546325?v=3","gravatar_id":"","url":"https://api.github.com/users/obilodeau","html_url":"https://github.com/obilodeau","followers_url":"https://api.github.com/users/obilodeau/followers","following_url":"https://api.github.com/users/obilodeau/following{/other_user}","gists_url":"https://api.github.com/users/obilodeau/gists{/gist_id}","starred_url":"https://api.github.com/users/obilodeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obilodeau/subscriptions","organizations_url":"https://api.github.com/users/obilodeau/orgs","repos_url":"https://api.github.com/users/obilodeau/repos","events_url":"https://api.github.com/users/obilodeau/events{/privacy}","received_events_url":"https://api.github.com/users/obilodeau/received_events","type":"User","site_admin":false},"body":"Fixed in 840ea73cf843d073f29e5c76180691e67d018ff0 which means that merge won't automatically succeed.","created_at":"2016-06-08T14:09:27Z","updated_at":"2016-06-08T14:09:27Z","html_url":"https://github.com/GoSecure/malboxes/pull/1#discussion_r66261940","pull_request_url":"https://api.github.com/repos/GoSecure/malboxes/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GoSecure/malboxes/pulls/comments/66261940"},"html":{"href":"https://github.com/GoSecure/malboxes/pull/1#discussion_r66261940"},"pull_request":{"href":"https://api.github.com/repos/GoSecure/malboxes/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GoSecure/malboxes/pulls/1","id":72993541,"html_url":"https://github.com/GoSecure/malboxes/pull/1","diff_url":"https://github.com/GoSecure/malboxes/pull/1.diff","patch_url":"https://github.com/GoSecure/malboxes/pull/1.patch","issue_url":"https://api.github.com/repos/GoSecure/malboxes/issues/1","number":1,"state":"open","locked":false,"title":"Refactoring","user":{"login":"Svieg","id":5059898,"avatar_url":"https://avatars.githubusercontent.com/u/5059898?v=3","gravatar_id":"","url":"https://api.github.com/users/Svieg","html_url":"https://github.com/Svieg","followers_url":"https://api.github.com/users/Svieg/followers","following_url":"https://api.github.com/users/Svieg/following{/other_user}","gists_url":"https://api.github.com/users/Svieg/gists{/gist_id}","starred_url":"https://api.github.com/users/Svieg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Svieg/subscriptions","organizations_url":"https://api.github.com/users/Svieg/orgs","repos_url":"https://api.github.com/users/Svieg/repos","events_url":"https://api.github.com/users/Svieg/events{/privacy}","received_events_url":"https://api.github.com/users/Svieg/received_events","type":"User","site_admin":false},"body":"Made some refactoring changes to fix PEP8, code duplicity and git tree problems.","created_at":"2016-06-08T06:39:28Z","updated_at":"2016-06-08T14:09:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d69063103e69484a7ecf3dda4723a89eb8e81649","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoSecure/malboxes/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GoSecure/malboxes/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GoSecure/malboxes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoSecure/malboxes/issues/1/comments","statuses_url":"https://api.github.com/repos/GoSecure/malboxes/statuses/a9174541a13eeec431f29a29334ed324a5c1d719","head":{"label":"GoSecure:refactoring","ref":"refactoring","sha":"a9174541a13eeec431f29a29334ed324a5c1d719","user":{"login":"GoSecure","id":16034225,"avatar_url":"https://avatars.githubusercontent.com/u/16034225?v=3","gravatar_id":"","url":"https://api.github.com/users/GoSecure","html_url":"https://github.com/GoSecure","followers_url":"https://api.github.com/users/GoSecure/followers","following_url":"https://api.github.com/users/GoSecure/following{/other_user}","gists_url":"https://api.github.com/users/GoSecure/gists{/gist_id}","starred_url":"https://api.github.com/users/GoSecure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoSecure/subscriptions","organizations_url":"https://api.github.com/users/GoSecure/orgs","repos_url":"https://api.github.com/users/GoSecure/repos","events_url":"https://api.github.com/users/GoSecure/events{/privacy}","received_events_url":"https://api.github.com/users/GoSecure/received_events","type":"Organization","site_admin":false},"repo":{"id":55251419,"name":"malboxes","full_name":"GoSecure/malboxes","owner":{"login":"GoSecure","id":16034225,"avatar_url":"https://avatars.githubusercontent.com/u/16034225?v=3","gravatar_id":"","url":"https://api.github.com/users/GoSecure","html_url":"https://github.com/GoSecure","followers_url":"https://api.github.com/users/GoSecure/followers","following_url":"https://api.github.com/users/GoSecure/following{/other_user}","gists_url":"https://api.github.com/users/GoSecure/gists{/gist_id}","starred_url":"https://api.github.com/users/GoSecure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoSecure/subscriptions","organizations_url":"https://api.github.com/users/GoSecure/orgs","repos_url":"https://api.github.com/users/GoSecure/repos","events_url":"https://api.github.com/users/GoSecure/events{/privacy}","received_events_url":"https://api.github.com/users/GoSecure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoSecure/malboxes","description":"Build Malware VMs (boxes) or whole environments based on templates. Useful                for analysts, sandboxes or honeypots. Leverages devops workflow with Vagrant and Packer.","fork":false,"url":"https://api.github.com/repos/GoSecure/malboxes","forks_url":"https://api.github.com/repos/GoSecure/malboxes/forks","keys_url":"https://api.github.com/repos/GoSecure/malboxes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoSecure/malboxes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoSecure/malboxes/teams","hooks_url":"https://api.github.com/repos/GoSecure/malboxes/hooks","issue_events_url":"https://api.github.com/repos/GoSecure/malboxes/issues/events{/number}","events_url":"https://api.github.com/repos/GoSecure/malboxes/events","assignees_url":"https://api.github.com/repos/GoSecure/malboxes/assignees{/user}","branches_url":"https://api.github.com/repos/GoSecure/malboxes/branches{/branch}","tags_url":"https://api.github.com/repos/GoSecure/malboxes/tags","blobs_url":"https://api.github.com/repos/GoSecure/malboxes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoSecure/malboxes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoSecure/malboxes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoSecure/malboxes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoSecure/malboxes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoSecure/malboxes/languages","stargazers_url":"https://api.github.com/repos/GoSecure/malboxes/stargazers","contributors_url":"https://api.github.com/repos/GoSecure/malboxes/contributors","subscribers_url":"https://api.github.com/repos/GoSecure/malboxes/subscribers","subscription_url":"https://api.github.com/repos/GoSecure/malboxes/subscription","commits_url":"https://api.github.com/repos/GoSecure/malboxes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoSecure/malboxes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoSecure/malboxes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoSecure/malboxes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoSecure/malboxes/contents/{+path}","compare_url":"https://api.github.com/repos/GoSecure/malboxes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoSecure/malboxes/merges","archive_url":"https://api.github.com/repos/GoSecure/malboxes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoSecure/malboxes/downloads","issues_url":"https://api.github.com/repos/GoSecure/malboxes/issues{/number}","pulls_url":"https://api.github.com/repos/GoSecure/malboxes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoSecure/malboxes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoSecure/malboxes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoSecure/malboxes/labels{/name}","releases_url":"https://api.github.com/repos/GoSecure/malboxes/releases{/id}","deployments_url":"https://api.github.com/repos/GoSecure/malboxes/deployments","created_at":"2016-04-01T17:50:36Z","updated_at":"2016-06-01T19:04:41Z","pushed_at":"2016-06-08T14:08:09Z","git_url":"git://github.com/GoSecure/malboxes.git","ssh_url":"git@github.com:GoSecure/malboxes.git","clone_url":"https://github.com/GoSecure/malboxes.git","svn_url":"https://github.com/GoSecure/malboxes","homepage":"","size":86,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":10,"default_branch":"master"}},"base":{"label":"GoSecure:master","ref":"master","sha":"6dd62dc0d24e53024b486e96372e1cf81bae4606","user":{"login":"GoSecure","id":16034225,"avatar_url":"https://avatars.githubusercontent.com/u/16034225?v=3","gravatar_id":"","url":"https://api.github.com/users/GoSecure","html_url":"https://github.com/GoSecure","followers_url":"https://api.github.com/users/GoSecure/followers","following_url":"https://api.github.com/users/GoSecure/following{/other_user}","gists_url":"https://api.github.com/users/GoSecure/gists{/gist_id}","starred_url":"https://api.github.com/users/GoSecure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoSecure/subscriptions","organizations_url":"https://api.github.com/users/GoSecure/orgs","repos_url":"https://api.github.com/users/GoSecure/repos","events_url":"https://api.github.com/users/GoSecure/events{/privacy}","received_events_url":"https://api.github.com/users/GoSecure/received_events","type":"Organization","site_admin":false},"repo":{"id":55251419,"name":"malboxes","full_name":"GoSecure/malboxes","owner":{"login":"GoSecure","id":16034225,"avatar_url":"https://avatars.githubusercontent.com/u/16034225?v=3","gravatar_id":"","url":"https://api.github.com/users/GoSecure","html_url":"https://github.com/GoSecure","followers_url":"https://api.github.com/users/GoSecure/followers","following_url":"https://api.github.com/users/GoSecure/following{/other_user}","gists_url":"https://api.github.com/users/GoSecure/gists{/gist_id}","starred_url":"https://api.github.com/users/GoSecure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoSecure/subscriptions","organizations_url":"https://api.github.com/users/GoSecure/orgs","repos_url":"https://api.github.com/users/GoSecure/repos","events_url":"https://api.github.com/users/GoSecure/events{/privacy}","received_events_url":"https://api.github.com/users/GoSecure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoSecure/malboxes","description":"Build Malware VMs (boxes) or whole environments based on templates. Useful                for analysts, sandboxes or honeypots. Leverages devops workflow with Vagrant and Packer.","fork":false,"url":"https://api.github.com/repos/GoSecure/malboxes","forks_url":"https://api.github.com/repos/GoSecure/malboxes/forks","keys_url":"https://api.github.com/repos/GoSecure/malboxes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoSecure/malboxes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoSecure/malboxes/teams","hooks_url":"https://api.github.com/repos/GoSecure/malboxes/hooks","issue_events_url":"https://api.github.com/repos/GoSecure/malboxes/issues/events{/number}","events_url":"https://api.github.com/repos/GoSecure/malboxes/events","assignees_url":"https://api.github.com/repos/GoSecure/malboxes/assignees{/user}","branches_url":"https://api.github.com/repos/GoSecure/malboxes/branches{/branch}","tags_url":"https://api.github.com/repos/GoSecure/malboxes/tags","blobs_url":"https://api.github.com/repos/GoSecure/malboxes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoSecure/malboxes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoSecure/malboxes/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoSecure/malboxes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoSecure/malboxes/statuses/{sha}","languages_url":"https://api.github.com/repos/GoSecure/malboxes/languages","stargazers_url":"https://api.github.com/repos/GoSecure/malboxes/stargazers","contributors_url":"https://api.github.com/repos/GoSecure/malboxes/contributors","subscribers_url":"https://api.github.com/repos/GoSecure/malboxes/subscribers","subscription_url":"https://api.github.com/repos/GoSecure/malboxes/subscription","commits_url":"https://api.github.com/repos/GoSecure/malboxes/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoSecure/malboxes/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoSecure/malboxes/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoSecure/malboxes/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoSecure/malboxes/contents/{+path}","compare_url":"https://api.github.com/repos/GoSecure/malboxes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoSecure/malboxes/merges","archive_url":"https://api.github.com/repos/GoSecure/malboxes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoSecure/malboxes/downloads","issues_url":"https://api.github.com/repos/GoSecure/malboxes/issues{/number}","pulls_url":"https://api.github.com/repos/GoSecure/malboxes/pulls{/number}","milestones_url":"https://api.github.com/repos/GoSecure/malboxes/milestones{/number}","notifications_url":"https://api.github.com/repos/GoSecure/malboxes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoSecure/malboxes/labels{/name}","releases_url":"https://api.github.com/repos/GoSecure/malboxes/releases{/id}","deployments_url":"https://api.github.com/repos/GoSecure/malboxes/deployments","created_at":"2016-04-01T17:50:36Z","updated_at":"2016-06-01T19:04:41Z","pushed_at":"2016-06-08T14:08:09Z","git_url":"git://github.com/GoSecure/malboxes.git","ssh_url":"git@github.com:GoSecure/malboxes.git","clone_url":"https://github.com/GoSecure/malboxes.git","svn_url":"https://github.com/GoSecure/malboxes","homepage":"","size":86,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoSecure/malboxes/pulls/1"},"html":{"href":"https://github.com/GoSecure/malboxes/pull/1"},"issue":{"href":"https://api.github.com/repos/GoSecure/malboxes/issues/1"},"comments":{"href":"https://api.github.com/repos/GoSecure/malboxes/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GoSecure/malboxes/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GoSecure/malboxes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoSecure/malboxes/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GoSecure/malboxes/statuses/a9174541a13eeec431f29a29334ed324a5c1d719"}}}}
{"actor":{"display_login":"obilodeau"}}