How to send only one UDP packet with netcat?

If you are using bash, you might as well write echo -n “hello” >/dev/udp/localhost/8000 and avoid all the idiosyncrasies and incompatibilities of netcat. This also works sending to other hosts, ex: echo -n “hello” >/dev/udp/remotehost/8000 These are not “real” devices on the file system, but bash “special” aliases. There is additional information in the Bash … Read more

Minimal web server using netcat

Try this: while true ; do nc -l -p 1500 -c ‘echo -e “HTTP/1.1 200 OK\n\n $(date)”‘; done The -cmakes netcat execute the given command in a shell, so you can use echo. If you don’t need echo, use -e. For further information on this, try man nc. Note, that when using echo there is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)