Skip to content

Instantly share code, notes, and snippets.

View gvasconcelos's full-sized avatar

Gustavo Vasconcelos gvasconcelos

View GitHub Profile
@CMCDragonkai
CMCDragonkai / bash_sockets.sh
Last active July 6, 2022 18:11
Bash: Socket Programming (Alternative to using Netcat)
#!/usr/bin/env bash
# consider if the server is passing a file like
while true; do nc -l 10000 <<<"hi"; done
# on our client side, we can consume this using nc
nc 10.0.0.1 10000