{"action":"created","comment":{"url":"https://api.github.com/repos/mushorg/snare/pulls/comments/49602580","id":49602580,"diff_hunk":"@@ -214,11 +214,15 @@ def _run_cmd(cmd):\n     parser.add_argument(\"--tanner\", help=\"ip of the tanner service\", default='tanner.mushmush.org')\n     parser.add_argument(\"--skip-check-version\", help=\"skip check for update\", action='store_true')\n     args = parser.parse_args()\n-    future = loop.create_server(\n-        lambda: HttpRequestHandler(args, debug=args.debug, keep_alive=75),\n-        args.interface, args.port)\n-    srv = loop.run_until_complete(future)\n-    print(\"\"\"\n+    if not os.path.exists('/opt/snare/pages/' + args.page_dir):\n+     print(\"--page-dir: \" + args.page_dir + \" does not exist\")","path":"snare.py","position":10,"original_position":10,"commit_id":"529e8a6c2dffc79ed979335a4ec5a27a9ebeb0d7","original_commit_id":"529e8a6c2dffc79ed979335a4ec5a27a9ebeb0d7","user":{"login":"glaslos","id":716339,"avatar_url":"https://avatars.githubusercontent.com/u/716339?v=3","gravatar_id":"","url":"https://api.github.com/users/glaslos","html_url":"https://github.com/glaslos","followers_url":"https://api.github.com/users/glaslos/followers","following_url":"https://api.github.com/users/glaslos/following{/other_user}","gists_url":"https://api.github.com/users/glaslos/gists{/gist_id}","starred_url":"https://api.github.com/users/glaslos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glaslos/subscriptions","organizations_url":"https://api.github.com/users/glaslos/orgs","repos_url":"https://api.github.com/users/glaslos/repos","events_url":"https://api.github.com/users/glaslos/events{/privacy}","received_events_url":"https://api.github.com/users/glaslos/received_events","type":"User","site_admin":false},"body":"```Python\r\nprint(\"--page-dir: {0} does not exist\".format(args.page_dir))\r\n```","created_at":"2016-01-13T15:21:12Z","updated_at":"2016-01-13T15:21:12Z","html_url":"https://github.com/mushorg/snare/pull/4#discussion_r49602580","pull_request_url":"https://api.github.com/repos/mushorg/snare/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/mushorg/snare/pulls/comments/49602580"},"html":{"href":"https://github.com/mushorg/snare/pull/4#discussion_r49602580"},"pull_request":{"href":"https://api.github.com/repos/mushorg/snare/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/mushorg/snare/pulls/4","id":55910184,"html_url":"https://github.com/mushorg/snare/pull/4","diff_url":"https://github.com/mushorg/snare/pull/4.diff","patch_url":"https://github.com/mushorg/snare/pull/4.patch","issue_url":"https://api.github.com/repos/mushorg/snare/issues/4","number":4,"state":"open","locked":false,"title":"Check that the choosen page-dir exists before SNARE is launched. The …","user":{"login":"nsmfoo","id":3098395,"avatar_url":"https://avatars.githubusercontent.com/u/3098395?v=3","gravatar_id":"","url":"https://api.github.com/users/nsmfoo","html_url":"https://github.com/nsmfoo","followers_url":"https://api.github.com/users/nsmfoo/followers","following_url":"https://api.github.com/users/nsmfoo/following{/other_user}","gists_url":"https://api.github.com/users/nsmfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nsmfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsmfoo/subscriptions","organizations_url":"https://api.github.com/users/nsmfoo/orgs","repos_url":"https://api.github.com/users/nsmfoo/repos","events_url":"https://api.github.com/users/nsmfoo/events{/privacy}","received_events_url":"https://api.github.com/users/nsmfoo/received_events","type":"User","site_admin":false},"body":"…current function is to start SNARE but the \"user\" is unable to see the page (as it does not exist).","created_at":"2016-01-13T15:17:56Z","updated_at":"2016-01-13T15:21:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0a8b5b062a6b903d70f102a8d2c33617d835db4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mushorg/snare/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mushorg/snare/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mushorg/snare/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mushorg/snare/issues/4/comments","statuses_url":"https://api.github.com/repos/mushorg/snare/statuses/529e8a6c2dffc79ed979335a4ec5a27a9ebeb0d7","head":{"label":"nsmfoo:misc_fix","ref":"misc_fix","sha":"529e8a6c2dffc79ed979335a4ec5a27a9ebeb0d7","user":{"login":"nsmfoo","id":3098395,"avatar_url":"https://avatars.githubusercontent.com/u/3098395?v=3","gravatar_id":"","url":"https://api.github.com/users/nsmfoo","html_url":"https://github.com/nsmfoo","followers_url":"https://api.github.com/users/nsmfoo/followers","following_url":"https://api.github.com/users/nsmfoo/following{/other_user}","gists_url":"https://api.github.com/users/nsmfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nsmfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsmfoo/subscriptions","organizations_url":"https://api.github.com/users/nsmfoo/orgs","repos_url":"https://api.github.com/users/nsmfoo/repos","events_url":"https://api.github.com/users/nsmfoo/events{/privacy}","received_events_url":"https://api.github.com/users/nsmfoo/received_events","type":"User","site_admin":false},"repo":{"id":49431065,"name":"snare","full_name":"nsmfoo/snare","owner":{"login":"nsmfoo","id":3098395,"avatar_url":"https://avatars.githubusercontent.com/u/3098395?v=3","gravatar_id":"","url":"https://api.github.com/users/nsmfoo","html_url":"https://github.com/nsmfoo","followers_url":"https://api.github.com/users/nsmfoo/followers","following_url":"https://api.github.com/users/nsmfoo/following{/other_user}","gists_url":"https://api.github.com/users/nsmfoo/gists{/gist_id}","starred_url":"https://api.github.com/users/nsmfoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsmfoo/subscriptions","organizations_url":"https://api.github.com/users/nsmfoo/orgs","repos_url":"https://api.github.com/users/nsmfoo/repos","events_url":"https://api.github.com/users/nsmfoo/events{/privacy}","received_events_url":"https://api.github.com/users/nsmfoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nsmfoo/snare","description":"Super Next generation Advanced Reactive honEypot","fork":true,"url":"https://api.github.com/repos/nsmfoo/snare","forks_url":"https://api.github.com/repos/nsmfoo/snare/forks","keys_url":"https://api.github.com/repos/nsmfoo/snare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nsmfoo/snare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nsmfoo/snare/teams","hooks_url":"https://api.github.com/repos/nsmfoo/snare/hooks","issue_events_url":"https://api.github.com/repos/nsmfoo/snare/issues/events{/number}","events_url":"https://api.github.com/repos/nsmfoo/snare/events","assignees_url":"https://api.github.com/repos/nsmfoo/snare/assignees{/user}","branches_url":"https://api.github.com/repos/nsmfoo/snare/branches{/branch}","tags_url":"https://api.github.com/repos/nsmfoo/snare/tags","blobs_url":"https://api.github.com/repos/nsmfoo/snare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nsmfoo/snare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nsmfoo/snare/git/refs{/sha}","trees_url":"https://api.github.com/repos/nsmfoo/snare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nsmfoo/snare/statuses/{sha}","languages_url":"https://api.github.com/repos/nsmfoo/snare/languages","stargazers_url":"https://api.github.com/repos/nsmfoo/snare/stargazers","contributors_url":"https://api.github.com/repos/nsmfoo/snare/contributors","subscribers_url":"https://api.github.com/repos/nsmfoo/snare/subscribers","subscription_url":"https://api.github.com/repos/nsmfoo/snare/subscription","commits_url":"https://api.github.com/repos/nsmfoo/snare/commits{/sha}","git_commits_url":"https://api.github.com/repos/nsmfoo/snare/git/commits{/sha}","comments_url":"https://api.github.com/repos/nsmfoo/snare/comments{/number}","issue_comment_url":"https://api.github.com/repos/nsmfoo/snare/issues/comments{/number}","contents_url":"https://api.github.com/repos/nsmfoo/snare/contents/{+path}","compare_url":"https://api.github.com/repos/nsmfoo/snare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nsmfoo/snare/merges","archive_url":"https://api.github.com/repos/nsmfoo/snare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nsmfoo/snare/downloads","issues_url":"https://api.github.com/repos/nsmfoo/snare/issues{/number}","pulls_url":"https://api.github.com/repos/nsmfoo/snare/pulls{/number}","milestones_url":"https://api.github.com/repos/nsmfoo/snare/milestones{/number}","notifications_url":"https://api.github.com/repos/nsmfoo/snare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nsmfoo/snare/labels{/name}","releases_url":"https://api.github.com/repos/nsmfoo/snare/releases{/id}","created_at":"2016-01-11T14:20:26Z","updated_at":"2016-01-11T14:20:27Z","pushed_at":"2016-01-13T15:09:07Z","git_url":"git://github.com/nsmfoo/snare.git","ssh_url":"git@github.com:nsmfoo/snare.git","clone_url":"https://github.com/nsmfoo/snare.git","svn_url":"https://github.com/nsmfoo/snare","homepage":"http://mushmush.org","size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mushorg:master","ref":"master","sha":"49773647af630c82757c78390f9d15af6ff54a3c","user":{"login":"mushorg","id":2742625,"avatar_url":"https://avatars.githubusercontent.com/u/2742625?v=3","gravatar_id":"","url":"https://api.github.com/users/mushorg","html_url":"https://github.com/mushorg","followers_url":"https://api.github.com/users/mushorg/followers","following_url":"https://api.github.com/users/mushorg/following{/other_user}","gists_url":"https://api.github.com/users/mushorg/gists{/gist_id}","starred_url":"https://api.github.com/users/mushorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushorg/subscriptions","organizations_url":"https://api.github.com/users/mushorg/orgs","repos_url":"https://api.github.com/users/mushorg/repos","events_url":"https://api.github.com/users/mushorg/events{/privacy}","received_events_url":"https://api.github.com/users/mushorg/received_events","type":"Organization","site_admin":false},"repo":{"id":38716676,"name":"snare","full_name":"mushorg/snare","owner":{"login":"mushorg","id":2742625,"avatar_url":"https://avatars.githubusercontent.com/u/2742625?v=3","gravatar_id":"","url":"https://api.github.com/users/mushorg","html_url":"https://github.com/mushorg","followers_url":"https://api.github.com/users/mushorg/followers","following_url":"https://api.github.com/users/mushorg/following{/other_user}","gists_url":"https://api.github.com/users/mushorg/gists{/gist_id}","starred_url":"https://api.github.com/users/mushorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushorg/subscriptions","organizations_url":"https://api.github.com/users/mushorg/orgs","repos_url":"https://api.github.com/users/mushorg/repos","events_url":"https://api.github.com/users/mushorg/events{/privacy}","received_events_url":"https://api.github.com/users/mushorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mushorg/snare","description":"Super Next generation Advanced Reactive honEypot","fork":false,"url":"https://api.github.com/repos/mushorg/snare","forks_url":"https://api.github.com/repos/mushorg/snare/forks","keys_url":"https://api.github.com/repos/mushorg/snare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mushorg/snare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mushorg/snare/teams","hooks_url":"https://api.github.com/repos/mushorg/snare/hooks","issue_events_url":"https://api.github.com/repos/mushorg/snare/issues/events{/number}","events_url":"https://api.github.com/repos/mushorg/snare/events","assignees_url":"https://api.github.com/repos/mushorg/snare/assignees{/user}","branches_url":"https://api.github.com/repos/mushorg/snare/branches{/branch}","tags_url":"https://api.github.com/repos/mushorg/snare/tags","blobs_url":"https://api.github.com/repos/mushorg/snare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mushorg/snare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mushorg/snare/git/refs{/sha}","trees_url":"https://api.github.com/repos/mushorg/snare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mushorg/snare/statuses/{sha}","languages_url":"https://api.github.com/repos/mushorg/snare/languages","stargazers_url":"https://api.github.com/repos/mushorg/snare/stargazers","contributors_url":"https://api.github.com/repos/mushorg/snare/contributors","subscribers_url":"https://api.github.com/repos/mushorg/snare/subscribers","subscription_url":"https://api.github.com/repos/mushorg/snare/subscription","commits_url":"https://api.github.com/repos/mushorg/snare/commits{/sha}","git_commits_url":"https://api.github.com/repos/mushorg/snare/git/commits{/sha}","comments_url":"https://api.github.com/repos/mushorg/snare/comments{/number}","issue_comment_url":"https://api.github.com/repos/mushorg/snare/issues/comments{/number}","contents_url":"https://api.github.com/repos/mushorg/snare/contents/{+path}","compare_url":"https://api.github.com/repos/mushorg/snare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mushorg/snare/merges","archive_url":"https://api.github.com/repos/mushorg/snare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mushorg/snare/downloads","issues_url":"https://api.github.com/repos/mushorg/snare/issues{/number}","pulls_url":"https://api.github.com/repos/mushorg/snare/pulls{/number}","milestones_url":"https://api.github.com/repos/mushorg/snare/milestones{/number}","notifications_url":"https://api.github.com/repos/mushorg/snare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mushorg/snare/labels{/name}","releases_url":"https://api.github.com/repos/mushorg/snare/releases{/id}","created_at":"2015-07-07T21:47:52Z","updated_at":"2016-01-12T17:27:38Z","pushed_at":"2016-01-13T15:17:56Z","git_url":"git://github.com/mushorg/snare.git","ssh_url":"git@github.com:mushorg/snare.git","clone_url":"https://github.com/mushorg/snare.git","svn_url":"https://github.com/mushorg/snare","homepage":"http://mushmush.org","size":34,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mushorg/snare/pulls/4"},"html":{"href":"https://github.com/mushorg/snare/pull/4"},"issue":{"href":"https://api.github.com/repos/mushorg/snare/issues/4"},"comments":{"href":"https://api.github.com/repos/mushorg/snare/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mushorg/snare/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mushorg/snare/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mushorg/snare/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mushorg/snare/statuses/529e8a6c2dffc79ed979335a4ec5a27a9ebeb0d7"}}}}