Skip to content

Commit

Permalink
add a colabor shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
ihrskyfish committed Sep 1, 2024
1 parent cdadacc commit 599c90f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/colabor_product/start_nc_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


TMP_FIFO=$HOME/.tmp_fifo

rm -f $TMP_FIFO ; mkfifo $TMP_FIFO
# 这是基于termux中的nc 而不是安卓自带的nc
cat $TMP_FIFO | /bin/bash -i 2>&1 | nc -k -l 127.0.0.1 1234 > $TMP_FIFO





nc -N 127.0.0.1 1234 <<EOF
pwd
whoami
EOF

0 comments on commit 599c90f

Please sign in to comment.