Messeging With Netcat Script With Bash On Linux

View previous topic View next topic Go down

Messeging With Netcat Script With Bash On Linux

Post by jamied_uk on 22nd July 2016, 16:42



Updated


Send message

Code:
#!/bin/bash
# (c) J~Net 2016
# Usage: ./send.sh "test message"
#
myvar="$@"
if [ -z "$*" ]; then
echo "Enter Text To Send: "
read myvar; fi

sudo ballbags

echo $myvar > msg.txt
clear
echo "Binary Server AKA SENDER"
clear
echo -en "\e[92mPlease Wait \c"
echo $myvar | nc localhost 776
count=0
total=34
pstr="[=======================================================================]"

while [ $count -lt $total ]; do
  sleep 0.006 # this is work
  count=$(( $count + 1 ))
  pd=$(( $count * 73 / $total ))
  printf "\r%3d.%1d%% %.${pd}s" $(( $count * 100 / $total )) $(( ($count * 1000 / $total) % 10 )) $pstr
done
echo "Message Sent!, Please Wait 5 Seconds..."
sleep 5
sh send.sh


Receive


Code:
#!/bin/bash
# (c) J~NET 2016
#
echo -en "\e[92m "
clear
echo "Waiting For New Message"
sudo nc -l -p 776 > rmsg.txt
#echo "All Done!"
#echo -en"\e[94m \c"
clear
cat rmsg.txt

echo -en "\e[70m \c"

echo "Continue [ENTER]:"
read input123
sh recieve.sh


Last edited by jamied_uk on 22nd July 2016, 19:42; edited 1 time in total
avatar
jamied_uk
Admin

Posts : 2278
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Messeging With Netcat Script With Bash On Linux

Post by jamied_uk on 22nd July 2016, 18:12

Updated Files

app.box.com/s/pjcaiicqhp3jeluiedbddd4u424v6e8r
avatar
jamied_uk
Admin

Posts : 2278
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Messeging With Netcat Script With Bash On Linux

Post by jamied_uk on 22nd July 2016, 20:35

Check Out
jnet.forumn.biz/t1328-message-netcat-bash-part-3-auto-grabbing-menu#1853
avatar
jamied_uk
Admin

Posts : 2278
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Messeging With Netcat Script With Bash On Linux

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum