Skip to content

Instantly share code, notes, and snippets.

@teebow1e
Created April 2, 2024 09:16
Show Gist options
  • Select an option

  • Save teebow1e/253b9aa31a1bfa45f30666d073e1ca94 to your computer and use it in GitHub Desktop.

Select an option

Save teebow1e/253b9aa31a1bfa45f30666d073e1ca94 to your computer and use it in GitHub Desktop.
send not printable (multi-line) data to a server
#!/bin/bash
hexString=$1
echo
echo
echo -n "$1" | xxd -r -p
echo
echo
echo -n "$hexString" | xxd -r -p | nc xx.xx.xx.xx yyyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment