Nmap Development mailing list archives

ncat: how to get output in connect mode (non-interactive)


From: Tomas Psika <tomas.psika () gmail com>
Date: Mon, 14 Sep 2009 16:52:04 +0200

Hi,

need to know if it somehow possible to get some output when invoking
ncat in connect mode (client) non-interactively (with command prepared).

$ cat test.sh
#!/usr/bin/env bash
echo -ne "GET / HTTP/1.1\n"
echo -ne "Host: www.google.com\n\n"
$ ncat -c /path/to/test.sh www.google.com 80
$ [nothing]
$ echo $?
0

Ncat connects, send the data, get a remote response, but creates no
output at all. But exits fine.

Is it possible to use ncat this way, e.g. inside scripts?

Thank for advice.

Tomas

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: