Show HN: Made a quick filesharing bash script inspired by another Show HN post
1 comments
python3 -m http.server 9000 does all the heavy lifting.
What is interesting is the qrcode-terminal. Never seen that before but makes me wonder. In terms of data exfiltration, you could absolutely store data inside a qrcode.
Looked it up, qrcodes can store about 4000 characters. I guess in situations where node is available it could be useful
What is interesting is the qrcode-terminal. Never seen that before but makes me wonder. In terms of data exfiltration, you could absolutely store data inside a qrcode.
Looked it up, qrcodes can store about 4000 characters. I guess in situations where node is available it could be useful
Yeh true , it's just a hacky makeshift solution
Here is the script
#!/bin/bash qrcode() {
} share()
{ if [[ "$1" = "f" ]] then echo "success $1"
elif [[ "$1" = "s" ]] then path="$( find "$2" |fzf )" path="$(realpath "$path")" ln -s "$path" "/home/sanbotbtrfs/.webshare/" qrcode else error fi }
cleanup() { echo 'cleanup operation ' rm -vrf ~/.webshare/* } error() { echo 'usage share [s/f] <filename/dir> ; s is for fuzzy search and f is regular '
} trap cleanup 1 2 3 6 14 15 ; [[ $# -eq 2 ]] && share "$1" "$2" || error