{"action":"created","issue":{"url":"https://api.github.com/repos/Patrowl/PatrowlEngines/issues/5","repository_url":"https://api.github.com/repos/Patrowl/PatrowlEngines","labels_url":"https://api.github.com/repos/Patrowl/PatrowlEngines/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Patrowl/PatrowlEngines/issues/5/comments","events_url":"https://api.github.com/repos/Patrowl/PatrowlEngines/issues/5/events","html_url":"https://github.com/Patrowl/PatrowlEngines/issues/5","id":340988711,"node_id":"MDU6SXNzdWUzNDA5ODg3MTE=","number":5,"title":"Error | NMAP engines","user":{"login":"ST2Labs","id":9781565,"node_id":"MDQ6VXNlcjk3ODE1NjU=","avatar_url":"https://avatars3.githubusercontent.com/u/9781565?v=4","gravatar_id":"","url":"https://api.github.com/users/ST2Labs","html_url":"https://github.com/ST2Labs","followers_url":"https://api.github.com/users/ST2Labs/followers","following_url":"https://api.github.com/users/ST2Labs/following{/other_user}","gists_url":"https://api.github.com/users/ST2Labs/gists{/gist_id}","starred_url":"https://api.github.com/users/ST2Labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ST2Labs/subscriptions","organizations_url":"https://api.github.com/users/ST2Labs/orgs","repos_url":"https://api.github.com/users/ST2Labs/repos","events_url":"https://api.github.com/users/ST2Labs/events{/privacy}","received_events_url":"https://api.github.com/users/ST2Labs/received_events","type":"User","site_admin":false},"labels":[{"id":979587380,"node_id":"MDU6TGFiZWw5Nzk1ODczODA=","url":"https://api.github.com/repos/Patrowl/PatrowlEngines/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"MaKyOtOx","id":1262702,"node_id":"MDQ6VXNlcjEyNjI3MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1262702?v=4","gravatar_id":"","url":"https://api.github.com/users/MaKyOtOx","html_url":"https://github.com/MaKyOtOx","followers_url":"https://api.github.com/users/MaKyOtOx/followers","following_url":"https://api.github.com/users/MaKyOtOx/following{/other_user}","gists_url":"https://api.github.com/users/MaKyOtOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKyOtOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKyOtOx/subscriptions","organizations_url":"https://api.github.com/users/MaKyOtOx/orgs","repos_url":"https://api.github.com/users/MaKyOtOx/repos","events_url":"https://api.github.com/users/MaKyOtOx/events{/privacy}","received_events_url":"https://api.github.com/users/MaKyOtOx/received_events","type":"User","site_admin":false},"assignees":[{"login":"MaKyOtOx","id":1262702,"node_id":"MDQ6VXNlcjEyNjI3MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1262702?v=4","gravatar_id":"","url":"https://api.github.com/users/MaKyOtOx","html_url":"https://github.com/MaKyOtOx","followers_url":"https://api.github.com/users/MaKyOtOx/followers","following_url":"https://api.github.com/users/MaKyOtOx/following{/other_user}","gists_url":"https://api.github.com/users/MaKyOtOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKyOtOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKyOtOx/subscriptions","organizations_url":"https://api.github.com/users/MaKyOtOx/orgs","repos_url":"https://api.github.com/users/MaKyOtOx/repos","events_url":"https://api.github.com/users/MaKyOtOx/events{/privacy}","received_events_url":"https://api.github.com/users/MaKyOtOx/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-07-13T11:46:28Z","updated_at":"2018-08-02T13:41:04Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\n I'm playing with NMAP Engine, but when I try to \"update / edit\" policy Scan > I have error \"get findings\"\r\n\r\n![image](https://user-images.githubusercontent.com/9781565/42689979-e2a5affa-86a2-11e8-8c10-77415cd5a6ce.png)\r\n\r\n\r\n```\r\n{\r\n  \"no_dns\":1,\r\n  \"detect_os\":1,\r\n  \"script_scan\":1,\r\n  \"detect_service_version\":1,\r\n  \"ports\":[\r\n    \"53\",\r\n    \"80\",\r\n    \"443\",\r\n    \"8080\",\r\n    \"4444\",\r\n    \"14000\"\r\n  ],\r\n  \"no_ping\":1\r\n}\r\n```\r\n\r\nWhen I use \"default policy\" working ok, but if I made some change, then get erros!\r\n\r\nThanks in Advance."},"comment":{"url":"https://api.github.com/repos/Patrowl/PatrowlEngines/issues/comments/409929988","html_url":"https://github.com/Patrowl/PatrowlEngines/issues/5#issuecomment-409929988","issue_url":"https://api.github.com/repos/Patrowl/PatrowlEngines/issues/5","id":409929988,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTkyOTk4OA==","user":{"login":"MaKyOtOx","id":1262702,"node_id":"MDQ6VXNlcjEyNjI3MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1262702?v=4","gravatar_id":"","url":"https://api.github.com/users/MaKyOtOx","html_url":"https://github.com/MaKyOtOx","followers_url":"https://api.github.com/users/MaKyOtOx/followers","following_url":"https://api.github.com/users/MaKyOtOx/following{/other_user}","gists_url":"https://api.github.com/users/MaKyOtOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MaKyOtOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaKyOtOx/subscriptions","organizations_url":"https://api.github.com/users/MaKyOtOx/orgs","repos_url":"https://api.github.com/users/MaKyOtOx/repos","events_url":"https://api.github.com/users/MaKyOtOx/events{/privacy}","received_events_url":"https://api.github.com/users/MaKyOtOx/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T13:41:04Z","updated_at":"2018-08-02T13:41:04Z","author_association":"CONTRIBUTOR","body":"Re,\r\nFirst, please consider using the following policy (replace 1->true):\r\n```\r\n{\r\n  \"no_dns\":true,\r\n  \"detect_os\":true,\r\n  \"script_scan\":true,\r\n  \"detect_service_version\":true,\r\n  \"ports\":[\r\n    \"53\",\r\n    \"80\",\r\n    \"443\",\r\n    \"8080\",\r\n    \"4444\",\r\n    \"14000\"\r\n  ],\r\n  \"no_ping\":true\r\n}\r\n```\r\nSecondly, we found the root cause in `engine-nmap.py`:\r\n\r\n292.  elif psutil.Process(proc.pid).status() == \"zombie\":\r\n293.             res.update({\"status\" : \"FINISHED\" })\r\n294.             this.scans[scan_id][\"status\"] = \"FINISHED\"   # <---- The scan status was not updated\r\n295.             psutil.Process(proc.pid).terminate()\r\n\r\nIt will be fixed in the next commit :)\r\nThank you again !!"}}
{"actor":{"display_login":"MaKyOtOx"}}