Created
April 2, 2024 09:16
-
-
Save teebow1e/253b9aa31a1bfa45f30666d073e1ca94 to your computer and use it in GitHub Desktop.
send not printable (multi-line) data to a server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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