{"action":"created","issue":{"url":"https://api.github.com/repos/nmap/nmap/issues/1229","repository_url":"https://api.github.com/repos/nmap/nmap","labels_url":"https://api.github.com/repos/nmap/nmap/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/nmap/nmap/issues/1229/comments","events_url":"https://api.github.com/repos/nmap/nmap/issues/1229/events","html_url":"https://github.com/nmap/nmap/issues/1229","id":328001733,"node_id":"MDU6SXNzdWUzMjgwMDE3MzM=","number":1229,"title":"ncat closes connection before server response","user":{"login":"atesin","id":8086106,"node_id":"MDQ6VXNlcjgwODYxMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/8086106?v=4","gravatar_id":"","url":"https://api.github.com/users/atesin","html_url":"https://github.com/atesin","followers_url":"https://api.github.com/users/atesin/followers","following_url":"https://api.github.com/users/atesin/following{/other_user}","gists_url":"https://api.github.com/users/atesin/gists{/gist_id}","starred_url":"https://api.github.com/users/atesin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atesin/subscriptions","organizations_url":"https://api.github.com/users/atesin/orgs","repos_url":"https://api.github.com/users/atesin/repos","events_url":"https://api.github.com/users/atesin/events{/privacy}","received_events_url":"https://api.github.com/users/atesin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-31T05:44:40Z","updated_at":"2018-06-14T18:23:57Z","closed_at":null,"author_association":"NONE","body":"# command issued\r\ncommand> echo -ne \"GET / HTTP/1.1\\r\\nHost: my.host\\r\\n\\r\\n\" | ncat localhost 80\r\n\r\n# actual result:\r\ncommand>     (... i mean \"nothing\")\r\n\r\n# expected result:\r\nHTTP/1.1 200 OK\r\nServer:  nginx/1.12.2\r\n...\r\n...\r\ncommand>\r\n\r\n# tested versions\r\nnmap-ncat-6.40-7.el7.x86_64    # centos base repo\r\nnmap-ncat-6.40-13.el7.x86_64    # centos base repo\r\nncat.x86_64 2:7.70-1          # rpm package downloaded from insecure.org\r\nCentOS Linux release 7.4.1708 (Core)   #cat /etc/centos-release\r\nLinux coloso 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux    # uname -a\r\n\r\n# additional notes\r\n\r\nnginx access log shows a line like = 127.0.0.1 - - [current date] \"GET / HTTP/1.1\" 499 0 \"-\" \"-\" \"-\" etc...\r\nwhat makes me suspect that the tool closes conection early (499 status code)\r\n\r\nif i run the software directly from console (i.e. from no \"echo\" redirection) , the software responds and never closes until force with ^C\r\n\r\ni used to use nc to do this often.. if the behavior had changed please write down in some faq..  sorry if ugly, i don't master markdown\r\n"},"comment":{"url":"https://api.github.com/repos/nmap/nmap/issues/comments/397392385","html_url":"https://github.com/nmap/nmap/issues/1229#issuecomment-397392385","issue_url":"https://api.github.com/repos/nmap/nmap/issues/1229","id":397392385,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzM5MjM4NQ==","user":{"login":"atesin","id":8086106,"node_id":"MDQ6VXNlcjgwODYxMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/8086106?v=4","gravatar_id":"","url":"https://api.github.com/users/atesin","html_url":"https://github.com/atesin","followers_url":"https://api.github.com/users/atesin/followers","following_url":"https://api.github.com/users/atesin/following{/other_user}","gists_url":"https://api.github.com/users/atesin/gists{/gist_id}","starred_url":"https://api.github.com/users/atesin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atesin/subscriptions","organizations_url":"https://api.github.com/users/atesin/orgs","repos_url":"https://api.github.com/users/atesin/repos","events_url":"https://api.github.com/users/atesin/events{/privacy}","received_events_url":"https://api.github.com/users/atesin/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T18:23:57Z","updated_at":"2018-06-14T18:23:57Z","author_association":"NONE","body":"i forgot to mention i have a local nginx server ...  but that doesn't matter, you could do it with any http server, or with any smtp, pop, telnet or any request-response transaction based server... \r\n\r\nthe point is when ncat get the request by stdin, as soon as it recieves it closes the connection and doesn't wait for any server action"}}
{"actor":{"display_login":"atesin"}}