script:

1
2
3
4
5
6
function wsconn(){
  screen -L -Logfile wsc.out -S wsc wscat -c $1
}
function wsc(){
  screen -S wsc -X stuff "$(echo $1 | perl -pe s/<QID>/$1/)\n" && tail -f wsc.out | sed "/q$qid/ q" | ansi2txt | grep -oP "\[.*q$qid.*\]"
}
Edit

Pub: 17 Oct 2023 22:46 UTC

Edit: 17 Oct 2023 23:03 UTC

Views: 229