├── LICENSE ├── README.md ├── images ├── Terminal Chat.gif ├── bitcoin.png ├── chat.png ├── esewa.png ├── getmessage.png ├── signaturegreen.png ├── termchat.png ├── termchatwindow.png ├── terminalchat.png └── thankyou.png ├── install ├── getmessage ├── install.sh └── termchat └── thanks.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Baibhav Anand 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Terminal Chat
3 | -Chat anonymously in comfort of your terminal- 4 |

5 |

6 | Made with ❤️ by Baibhav Anand. (@spongebhav) 7 |

8 | 9 | 10 | **TERMINAL CHAT IS CURRENTLY OUT OF SERVICE** 11 | 12 | ![](https://github.com/baibhavanand/TerminalChat/blob/main/images/Terminal%20Chat.gif) 13 | 14 |

15 | About Terminal Chat 16 |

17 | 18 |

19 | 20 |

21 | 22 | **Terminal Chat** allows user to chat anonymously with one another without the need of creating an account and all of this in the comfort of your terminal. 23 | 24 |

25 | Installation 26 |

27 | 28 | * Download OR Clone the repository in your machine: 29 |
git clone https://github.com/baibhavanand/terminalchat
30 | 31 | * Switch to **terminalchat** directory: 32 |
cd terminalchat
33 | 34 | * Switch to **install** directory: 35 |
cd install
36 | 37 | * Give permissions to install.sh file: 38 |
sudo chmod 555 install.sh
39 | 40 | * Run install.sh: 41 |
sudo ./install.sh --install
42 | 43 | 44 | 45 |

46 | Usage 47 |

48 | 49 | *Works best with terminator - https://terminator-gtk3.readthedocs.io/en/latest/* 50 | 51 | * On normal bash shell open two different windows. Or If using terminator make a horizontal split. 52 | * In the first window type `termchat` 53 | * In the second window type `getmessage` 54 | 55 | In the **termchat** menu: 56 |

57 | 58 |

59 | 60 | * Enter your name: *Your Name here* . 61 | * Enter 6 digit roomnumber (if doesn't exist, it will be created) : *Random 6 digit number* . 62 | * Enter length 6 (alpha-numberic) password (if doesn't exist, it will be created) : *Length 6 alpha numberic ROOM password* . 63 | 64 | 65 | In the **getmessage** menu: 66 | 67 |

68 | 69 |

70 | 71 | * Now use the same room number and password here
72 | 73 | Now your partner to whom you want to chat with can use the same room number and password to join in the same room and you guys will be able to chat with each other without caring about about data being leaked or accessed and all this in comfort of your terminal. 74 | 75 | 76 |

77 | Video demonstration of the chat 78 |

79 | 80 | 81 | Click on the image below to be redirected to the YouTube video.

82 | [![](http://img.youtube.com/vi/Fp3dRpFOXvA/0.jpg)](http://www.youtube.com/watch?v=Fp3dRpFOXvA "Terminal Chat") 83 | 84 | 85 | 86 | 87 |

88 | Contribution 89 |

90 | 91 |

92 | You can contribute to this project by making this project better and sending in pull request or creating an issue. 93 |

94 | 95 |

96 | Thanks 97 |

98 |

99 |
100 | I would like to thank the following people for contributing to this project.

101 | 102 |
103 |
104 | This project is maintained by Baibhav Anand Jha | Twitter: @spongebhav 105 | 106 | 107 | -------------------------------------------------------------------------------- /images/Terminal Chat.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/Terminal Chat.gif -------------------------------------------------------------------------------- /images/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/bitcoin.png -------------------------------------------------------------------------------- /images/chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/chat.png -------------------------------------------------------------------------------- /images/esewa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/esewa.png -------------------------------------------------------------------------------- /images/getmessage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/getmessage.png -------------------------------------------------------------------------------- /images/signaturegreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/signaturegreen.png -------------------------------------------------------------------------------- /images/termchat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/termchat.png -------------------------------------------------------------------------------- /images/termchatwindow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/termchatwindow.png -------------------------------------------------------------------------------- /images/terminalchat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/terminalchat.png -------------------------------------------------------------------------------- /images/thankyou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baibhavanand/TerminalChat/4a9c0442b290520a759475e03464548c23a4a3d7/images/thankyou.png -------------------------------------------------------------------------------- /install/getmessage: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #Coded by: Baibhav Anand Jha | Twitter: @spongebhav 3 | 4 | echo " 5 | /////////////////// 6 | *.......................* 7 | *......................... 8 | *.....#####............... 9 | ,........#####............ 10 | ,..........###............ 11 | ,......####............... 12 | .......................... 13 | .......................... 14 | #### ......................... 15 | ## # ................... 16 | # ### 17 | ## ###### Terminal Chat 18 | #### ######## 19 | ## 20 | 21 | -Chat anonymously in comfort of your Terminal- 22 | 23 | ---Made With Love By - Baibhav | Twitter : @spongebhav--- 24 | 25 | Like Terminal Chat? 26 | Help me to keep it up and running. 27 | BTC : 3KrxUGV6shDoqgyzrWF9h2EwBfaeamKVcD 28 | " 29 | echo -n "Enter 6 digit roomnumber : " 30 | read roomnumber 31 | echo -n "Enter length 6 (alpha-numberic) password: " 32 | read roomcode 33 | echo 34 | 35 | function receive() { 36 | lastmessage=`curl -s https://baibhavjha.com/termchat/getmessage.php?roomcode=$roomcode&roomnumber=$roomnumber` 37 | } 38 | 39 | while :; do 40 | receive 41 | time=`date +"%T"` 42 | message="$time : $lastmessage" 43 | if [ "$lastmessage" != "$confirmlastmessage" ]; then 44 | echo "$message" 45 | fi 46 | confirmlastmessage=$lastmessage 47 | sleep 2 48 | done 49 | -------------------------------------------------------------------------------- /install/install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #Coded by: Baibhav Anand Jha | Twitter: @spongebhav 3 | 4 | echo " 5 | /////////////////// 6 | *.......................* 7 | *......................... 8 | *.....#####............... 9 | ,........#####............ 10 | ,..........###............ 11 | ,......####............... 12 | .......................... 13 | .......................... 14 | #### ......................... 15 | ## # ................... 16 | # ### 17 | ## ###### Terminal Chat 18 | #### ######## 19 | ## 20 | 21 | -Chat anonymously in comfort of your Terminal- 22 | 23 | ---Made With Love By - Baibhav | Twitter : @spongebhav--- 24 | " 25 | 26 | if [ "$(id -u)" != "0" ]; then 27 | echo "Run it as root" 28 | 29 | else 30 | if [ "$1" = "--install" ] ; then 31 | sudo chmod 777 termchat 32 | sudo chmod 777 getmessage 33 | sudo cp termchat /usr/local/bin 34 | sudo cp getmessage /usr/local/bin 35 | echo "Installation Successful" 36 | 37 | elif [ "$1" = "--uninstall" ] ; then 38 | rm -f /usr/local/bin/termchat 39 | rm -f /usr/local/bin/getmessage 40 | echo "Uninstallation Successful" 41 | else 42 | echo "usage: bash install.sh --install | --uninstall" 43 | fi 44 | fi -------------------------------------------------------------------------------- /install/termchat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #Coded by: Baibhav Anand Jha | Twitter: @spongebhav 3 | 4 | echo " 5 | /////////////////// 6 | *.......................* 7 | *......................... 8 | *.....#####............... 9 | ,........#####............ 10 | ,..........###............ 11 | ,......####............... 12 | .......................... 13 | .......................... 14 | #### ......................... 15 | ## # ................... 16 | # ### 17 | ## ###### Terminal Chat 18 | #### ######## 19 | ## 20 | 21 | -Chat anonymously in comfort of your Terminal- 22 | 23 | ---Made With Love By - Baibhav | Twitter : @spongebhav--- 24 | 25 | Like Terminal Chat? 26 | Help me to keep it up and running. 27 | BTC : 3KrxUGV6shDoqgyzrWF9h2EwBfaeamKVcD 28 | " 29 | echo -n "Enter your name: " 30 | read name 31 | echo 32 | echo -n "Enter 6 digit roomnumber (if doesn't exist, it will be created): " 33 | read roomnumber 34 | echo -n "Enter length 6 (alpha-numberic) password (if doesn't exist, it will be created) : " 35 | read roomcode 36 | echo 37 | check=`curl -s -G "https://baibhavjha.com/termchat/chat.php" --data-urlencode "roomnumber=$roomnumber" --data-urlencode "roomcode=$roomcode" --data-urlencode "name=$name"` 38 | 39 | if [ "$check" != "" ]; then 40 | echo "$check" 41 | exit; 42 | fi 43 | 44 | function send() { 45 | echo -n "Enter your message: " 46 | read message 47 | curl -G "https://baibhavjha.com/termchat/chat.php" --data-urlencode "roomnumber=$roomnumber" --data-urlencode "roomcode=$roomcode" --data-urlencode "name=$name" --data-urlencode "message=$message" 48 | } 49 | 50 | while :; do 51 | send 52 | done 53 | -------------------------------------------------------------------------------- /thanks.md: -------------------------------------------------------------------------------- 1 |

2 |

3 | 4 |

I thank the following people for their contributions to this project.

5 | 6 | 1. [Gunaraj Khatri](https://github.com/GunarajKhatri) 7 | 2. 8 | --------------------------------------------------------------------------------