Message Netcat Bash Part 3 Auto Grabbing & Menu

View previous topic View next topic Go down

Message Netcat Bash Part 3 Auto Grabbing & Menu

Post by jamied_uk on 22nd July 2016, 19:27



Menu

Code:

#!/bin/bash
# (c) J~NET 2016
# Usage: ./menu.sh
#
echo -en "\e[92m "
echo ""
echo "Welcome To J~Net Menu"
echo ""
echo "1-Show All Messages"
echo "2-Recieve Message"
echo "3-Send Message"
echo "4-calendar"
echo "Enter your choice:"
read n
case $n in
1)
clear
cat all_messages.txt
bash menu.sh
;;
2) bash recieve.sh ;;
3) bash send.sh ;;
4) cal ;;
esac


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

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

http://address-shortner.co.uk

Back to top Go down

Re: Message Netcat Bash Part 3 Auto Grabbing & Menu

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

Update Menu Vid
avatar
jamied_uk
Admin

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

http://address-shortner.co.uk

Back to top Go down

Re: Message Netcat Bash Part 3 Auto Grabbing & Menu

Post by jamied_uk on 22nd July 2016, 22:05

Examine File Menu Update




Code:
#!/bin/bash
# (c) J~NET 2016
# Usage: ./menu.sh
#
echo -en "\e[92m "
echo ""
echo "Welcome To J~Net Menu"
echo ""
echo "1. Show All Messages"
echo "2. Recieve Message"
echo "3. Send Message"
echo "4. Calendar"
echo "5. Recieve File"
echo "6. Send File"
echo "7. Examine File"
echo "Enter your choice: (Anything else to exit)"
read n
case $n in
1)
clear
cat all_messages.txt
bash menu.sh
;;
2) bash recieve.sh ;;
3) bash send.sh ;;
4) cal
bash menu.sh;;
5) bash file_rx.sh;;
# send arg here
6)
# user input
echo "Enter Filename"
read myvar
bash file_tx.sh "$myvar";;
7)
echo "Enter Filename"
read myvar
file "$myvar"
echo "Enter Hexedit (Or Ctrl C)"
read myvar2
hexedit "$myvar";;
esac
avatar
jamied_uk
Admin

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

http://address-shortner.co.uk

Back to top Go down

Re: Message Netcat Bash Part 3 Auto Grabbing & Menu

Post by jamied_uk on 22nd July 2016, 22:13



Updated Files

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

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

http://address-shortner.co.uk

Back to top Go down

Re: Message Netcat Bash Part 3 Auto Grabbing & Menu

Post by jamied_uk on 23rd July 2016, 00:15

Adding Sound Notification Alert



The edited file_rx.sh

Code:
#!/bin/bash
# (c) J~NET
#
#netcat or nc
clear
echo "Binary Client Reciever"
echo -en "\e[92mPlease Wait For File To Be Sent \c"
sudo nc -l -p 777 > output
count=0
total=34
pstr="[=======================================================================]"

while [ $count -lt $total ]; do
  sleep 0.06 # 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 "All Done!"
file output > out_sum.txt
File=out_sum.txt
 if grep -q  "GIF image data" "$File"; then
    clear
    display output
 fi
bash play.sh && bash menu.sh



Code:
play.sh
Code:
#!/bin/bash
filename=sound.wav
cvlc --play-and-exit "$filename" &>/dev/null &
avatar
jamied_uk
Admin

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

http://address-shortner.co.uk

Back to top Go down

Re: Message Netcat Bash Part 3 Auto Grabbing & Menu

Post by jamied_uk on 23rd July 2016, 03:05

Memory Checking & Cleaning

jnet.forumn.biz/t1329-linux-memory-checking-cleaning#1858
avatar
jamied_uk
Admin

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

http://address-shortner.co.uk

Back to top Go down

Re: Message Netcat Bash Part 3 Auto Grabbing & Menu

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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