Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnu-netcat breaks on various ports #31

Open
elieux opened this issue Apr 8, 2016 · 2 comments
Open

gnu-netcat breaks on various ports #31

elieux opened this issue Apr 8, 2016 · 2 comments

Comments

@elieux
Copy link
Contributor

elieux commented Apr 8, 2016

While netcat localhost http and netcat localhost smtp work fine, for example netcat localhost imap (as well as netcat localhost 143) fails:

$ netcat localhost imap
assertion "dst->netnum == servent->s_port" failed: file "network.c", line 226, function: netcat_getport
Aborted (core dumped)

This is different from the case when the port is just closed:

$ netcat localhost 42
assertion "ret == 0" failed: file "core.c", line 372, function: core_tcp_connect
Aborted (core dumped)
@CoolOppo
Copy link

CoolOppo commented Apr 8, 2016

This isn't a solution for gnu-netcat, but you can grab a build of Ncat, which should support everything gnu-netcat does, as well as actually working, since it's been updated within the past 12 years, unlike gnu-netcat. 😉

https://nmap.org/download.html

@pmalhaire
Copy link

I am facing the same issue .. wondering if I should fix netcat or use the workaround proposed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants