{"action":"created","comment":{"url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/comments/81699199","pull_request_review_id":2659638,"id":81699199,"diff_hunk":"@@ -102,25 +125,33 @@ install_qemu() {\n }\n \n init() {\n+    # Add 32-bit arch to dpkg\n+    sudo dpkg --add-architecture i386\n+\n     # Updates\n     sudo apt-get -y update\n     sudo apt-get -y upgrade\n \n-    package emacs\n-    package git\n-    package python3-pip\n-    package tmux\n-    package gdb gdb-multiarch\n-    package unzip\n-    package foremost\n-    package ipython\n+    # Install packages\n+    package \\\n+        build-essential \\\n+        emacs vim \\\n+        git \\\n+        python-pip python3-pip \\\n+        python2.7 python2.7-dev libssl-dev libffi-dev \\\n+        tmux \\\n+        gdb gdb-multiarch \\\n+        unzip \\\n+        foremost \\\n+        ipython ipython3\n \n     # Install 32 bit libs\n-    sudo dpkg --add-architecture i386\n-    sudo apt-get update\n-    package libc6:i386 libncurses5:i386 libstdc++6:i386\n-    package libc6-dbg libc6-dbg:i386\n-    package libc6-dev-i386\n+    package libc6:i386 libncurses5:i386 libstdc++6:i386 \\","path":"provision.sh","position":null,"original_position":136,"commit_id":"f0740410a99b95f226eebb1e4097408d81458878","original_commit_id":"66ef8c34eac3602484351a0a40c208d591909c0b","user":{"login":"tmfink","id":5265592,"avatar_url":"https://avatars.githubusercontent.com/u/5265592?v=3","gravatar_id":"","url":"https://api.github.com/users/tmfink","html_url":"https://github.com/tmfink","followers_url":"https://api.github.com/users/tmfink/followers","following_url":"https://api.github.com/users/tmfink/following{/other_user}","gists_url":"https://api.github.com/users/tmfink/gists{/gist_id}","starred_url":"https://api.github.com/users/tmfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmfink/subscriptions","organizations_url":"https://api.github.com/users/tmfink/orgs","repos_url":"https://api.github.com/users/tmfink/repos","events_url":"https://api.github.com/users/tmfink/events{/privacy}","received_events_url":"https://api.github.com/users/tmfink/received_events","type":"User","site_admin":false},"body":"Fixed in f0740410a99b95f226eebb1e4097408d81458878","created_at":"2016-10-04T07:31:06Z","updated_at":"2016-10-04T07:31:06Z","html_url":"https://github.com/gsingh93/ctf-vm/pull/2#discussion_r81699199","pull_request_url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/comments/81699199"},"html":{"href":"https://github.com/gsingh93/ctf-vm/pull/2#discussion_r81699199"},"pull_request":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2","id":87665989,"html_url":"https://github.com/gsingh93/ctf-vm/pull/2","diff_url":"https://github.com/gsingh93/ctf-vm/pull/2.diff","patch_url":"https://github.com/gsingh93/ctf-vm/pull/2.patch","issue_url":"https://api.github.com/repos/gsingh93/ctf-vm/issues/2","number":2,"state":"open","locked":false,"title":"Optimize provision script; use pwntools","user":{"login":"tmfink","id":5265592,"avatar_url":"https://avatars.githubusercontent.com/u/5265592?v=3","gravatar_id":"","url":"https://api.github.com/users/tmfink","html_url":"https://github.com/tmfink","followers_url":"https://api.github.com/users/tmfink/followers","following_url":"https://api.github.com/users/tmfink/following{/other_user}","gists_url":"https://api.github.com/users/tmfink/gists{/gist_id}","starred_url":"https://api.github.com/users/tmfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmfink/subscriptions","organizations_url":"https://api.github.com/users/tmfink/orgs","repos_url":"https://api.github.com/users/tmfink/repos","events_url":"https://api.github.com/users/tmfink/events{/privacy}","received_events_url":"https://api.github.com/users/tmfink/received_events","type":"User","site_admin":false},"body":"Binjitsu has been merged back to pwntools, so the provision script\r\ninstalls pwntools instead. There are also some optimizations:\r\n\r\n* Reduce the number of times `apt-get update` is called\r\n* Run make in parallel (`-j` switch)\r\n\r\nThis change also makes the provision script idempotent so that it can be\r\nrun multiple times.","created_at":"2016-10-03T05:46:37Z","updated_at":"2016-10-04T07:31:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8970ced016d5fc2bd9abfa0c7f21bff9a9388d4b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gsingh93/ctf-vm/issues/2/comments","statuses_url":"https://api.github.com/repos/gsingh93/ctf-vm/statuses/f0740410a99b95f226eebb1e4097408d81458878","head":{"label":"tmfink:pwntools_fix","ref":"pwntools_fix","sha":"f0740410a99b95f226eebb1e4097408d81458878","user":{"login":"tmfink","id":5265592,"avatar_url":"https://avatars.githubusercontent.com/u/5265592?v=3","gravatar_id":"","url":"https://api.github.com/users/tmfink","html_url":"https://github.com/tmfink","followers_url":"https://api.github.com/users/tmfink/followers","following_url":"https://api.github.com/users/tmfink/following{/other_user}","gists_url":"https://api.github.com/users/tmfink/gists{/gist_id}","starred_url":"https://api.github.com/users/tmfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmfink/subscriptions","organizations_url":"https://api.github.com/users/tmfink/orgs","repos_url":"https://api.github.com/users/tmfink/repos","events_url":"https://api.github.com/users/tmfink/events{/privacy}","received_events_url":"https://api.github.com/users/tmfink/received_events","type":"User","site_admin":false},"repo":{"id":69844152,"name":"ctf-vm","full_name":"tmfink/ctf-vm","owner":{"login":"tmfink","id":5265592,"avatar_url":"https://avatars.githubusercontent.com/u/5265592?v=3","gravatar_id":"","url":"https://api.github.com/users/tmfink","html_url":"https://github.com/tmfink","followers_url":"https://api.github.com/users/tmfink/followers","following_url":"https://api.github.com/users/tmfink/following{/other_user}","gists_url":"https://api.github.com/users/tmfink/gists{/gist_id}","starred_url":"https://api.github.com/users/tmfink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmfink/subscriptions","organizations_url":"https://api.github.com/users/tmfink/orgs","repos_url":"https://api.github.com/users/tmfink/repos","events_url":"https://api.github.com/users/tmfink/events{/privacy}","received_events_url":"https://api.github.com/users/tmfink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmfink/ctf-vm","description":"A VM for CTF binary exploitation challenges","fork":true,"url":"https://api.github.com/repos/tmfink/ctf-vm","forks_url":"https://api.github.com/repos/tmfink/ctf-vm/forks","keys_url":"https://api.github.com/repos/tmfink/ctf-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmfink/ctf-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmfink/ctf-vm/teams","hooks_url":"https://api.github.com/repos/tmfink/ctf-vm/hooks","issue_events_url":"https://api.github.com/repos/tmfink/ctf-vm/issues/events{/number}","events_url":"https://api.github.com/repos/tmfink/ctf-vm/events","assignees_url":"https://api.github.com/repos/tmfink/ctf-vm/assignees{/user}","branches_url":"https://api.github.com/repos/tmfink/ctf-vm/branches{/branch}","tags_url":"https://api.github.com/repos/tmfink/ctf-vm/tags","blobs_url":"https://api.github.com/repos/tmfink/ctf-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmfink/ctf-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmfink/ctf-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmfink/ctf-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmfink/ctf-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/tmfink/ctf-vm/languages","stargazers_url":"https://api.github.com/repos/tmfink/ctf-vm/stargazers","contributors_url":"https://api.github.com/repos/tmfink/ctf-vm/contributors","subscribers_url":"https://api.github.com/repos/tmfink/ctf-vm/subscribers","subscription_url":"https://api.github.com/repos/tmfink/ctf-vm/subscription","commits_url":"https://api.github.com/repos/tmfink/ctf-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmfink/ctf-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmfink/ctf-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmfink/ctf-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmfink/ctf-vm/contents/{+path}","compare_url":"https://api.github.com/repos/tmfink/ctf-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmfink/ctf-vm/merges","archive_url":"https://api.github.com/repos/tmfink/ctf-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmfink/ctf-vm/downloads","issues_url":"https://api.github.com/repos/tmfink/ctf-vm/issues{/number}","pulls_url":"https://api.github.com/repos/tmfink/ctf-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/tmfink/ctf-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/tmfink/ctf-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmfink/ctf-vm/labels{/name}","releases_url":"https://api.github.com/repos/tmfink/ctf-vm/releases{/id}","deployments_url":"https://api.github.com/repos/tmfink/ctf-vm/deployments","created_at":"2016-10-03T05:43:15Z","updated_at":"2016-10-03T05:43:16Z","pushed_at":"2016-10-03T08:39:57Z","git_url":"git://github.com/tmfink/ctf-vm.git","ssh_url":"git@github.com:tmfink/ctf-vm.git","clone_url":"https://github.com/tmfink/ctf-vm.git","svn_url":"https://github.com/tmfink/ctf-vm","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":0,"default_branch":"master"}},"base":{"label":"gsingh93:master","ref":"master","sha":"c0a402a7fdc696cdb3f9ad3cd470b5813b6e1833","user":{"login":"gsingh93","id":1012677,"avatar_url":"https://avatars.githubusercontent.com/u/1012677?v=3","gravatar_id":"","url":"https://api.github.com/users/gsingh93","html_url":"https://github.com/gsingh93","followers_url":"https://api.github.com/users/gsingh93/followers","following_url":"https://api.github.com/users/gsingh93/following{/other_user}","gists_url":"https://api.github.com/users/gsingh93/gists{/gist_id}","starred_url":"https://api.github.com/users/gsingh93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsingh93/subscriptions","organizations_url":"https://api.github.com/users/gsingh93/orgs","repos_url":"https://api.github.com/users/gsingh93/repos","events_url":"https://api.github.com/users/gsingh93/events{/privacy}","received_events_url":"https://api.github.com/users/gsingh93/received_events","type":"User","site_admin":false},"repo":{"id":59637204,"name":"ctf-vm","full_name":"gsingh93/ctf-vm","owner":{"login":"gsingh93","id":1012677,"avatar_url":"https://avatars.githubusercontent.com/u/1012677?v=3","gravatar_id":"","url":"https://api.github.com/users/gsingh93","html_url":"https://github.com/gsingh93","followers_url":"https://api.github.com/users/gsingh93/followers","following_url":"https://api.github.com/users/gsingh93/following{/other_user}","gists_url":"https://api.github.com/users/gsingh93/gists{/gist_id}","starred_url":"https://api.github.com/users/gsingh93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsingh93/subscriptions","organizations_url":"https://api.github.com/users/gsingh93/orgs","repos_url":"https://api.github.com/users/gsingh93/repos","events_url":"https://api.github.com/users/gsingh93/events{/privacy}","received_events_url":"https://api.github.com/users/gsingh93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gsingh93/ctf-vm","description":"A VM for CTF binary exploitation challenges","fork":false,"url":"https://api.github.com/repos/gsingh93/ctf-vm","forks_url":"https://api.github.com/repos/gsingh93/ctf-vm/forks","keys_url":"https://api.github.com/repos/gsingh93/ctf-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gsingh93/ctf-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gsingh93/ctf-vm/teams","hooks_url":"https://api.github.com/repos/gsingh93/ctf-vm/hooks","issue_events_url":"https://api.github.com/repos/gsingh93/ctf-vm/issues/events{/number}","events_url":"https://api.github.com/repos/gsingh93/ctf-vm/events","assignees_url":"https://api.github.com/repos/gsingh93/ctf-vm/assignees{/user}","branches_url":"https://api.github.com/repos/gsingh93/ctf-vm/branches{/branch}","tags_url":"https://api.github.com/repos/gsingh93/ctf-vm/tags","blobs_url":"https://api.github.com/repos/gsingh93/ctf-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gsingh93/ctf-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gsingh93/ctf-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/gsingh93/ctf-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gsingh93/ctf-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/gsingh93/ctf-vm/languages","stargazers_url":"https://api.github.com/repos/gsingh93/ctf-vm/stargazers","contributors_url":"https://api.github.com/repos/gsingh93/ctf-vm/contributors","subscribers_url":"https://api.github.com/repos/gsingh93/ctf-vm/subscribers","subscription_url":"https://api.github.com/repos/gsingh93/ctf-vm/subscription","commits_url":"https://api.github.com/repos/gsingh93/ctf-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/gsingh93/ctf-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/gsingh93/ctf-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/gsingh93/ctf-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/gsingh93/ctf-vm/contents/{+path}","compare_url":"https://api.github.com/repos/gsingh93/ctf-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gsingh93/ctf-vm/merges","archive_url":"https://api.github.com/repos/gsingh93/ctf-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gsingh93/ctf-vm/downloads","issues_url":"https://api.github.com/repos/gsingh93/ctf-vm/issues{/number}","pulls_url":"https://api.github.com/repos/gsingh93/ctf-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/gsingh93/ctf-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/gsingh93/ctf-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gsingh93/ctf-vm/labels{/name}","releases_url":"https://api.github.com/repos/gsingh93/ctf-vm/releases{/id}","deployments_url":"https://api.github.com/repos/gsingh93/ctf-vm/deployments","created_at":"2016-05-25T06:34:06Z","updated_at":"2016-09-20T19:16:34Z","pushed_at":"2016-10-03T08:39:57Z","git_url":"git://github.com/gsingh93/ctf-vm.git","ssh_url":"git@github.com:gsingh93/ctf-vm.git","clone_url":"https://github.com/gsingh93/ctf-vm.git","svn_url":"https://github.com/gsingh93/ctf-vm","homepage":null,"size":3,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2"},"html":{"href":"https://github.com/gsingh93/ctf-vm/pull/2"},"issue":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/issues/2"},"comments":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gsingh93/ctf-vm/statuses/f0740410a99b95f226eebb1e4097408d81458878"}}}}
{"actor":{"display_login":"tmfink"}}