Skip to content

R-Retr0-0/ChatBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.----------------------------------------------------------.
|   _________ .__            __ __________                 |
|   \_   ___ \|  |__ _____ _/  |\______   \ _______  ___   |
|   /    \  \/|  |  \\__  \\   __\    |  _//  _ \  \/  /   |
|   \     \___|   Y  \/ __ \|  | |    |   (  <_> >    <    |
|    \______  /___|  (____  /__| |______  /\____/__/\_ \   |
|           \/     \/     \/            \/            \/   |
*----------------------------------------------------------*

ChatBox is a cmd based chatting software. By default it connects to port 8080 and to your local ip (127.0.0.1), to connect
to a specific host you need to change the host and port variables values, they can be found at lines 15 and 16 of the main
script. Specifically you need to change the host variable value from your local ip to the one you're trying to connect to
and the port variable value from 8080 to the port your host is using to host the server.
To host a server you need to do port forwarding on the specific port you're gonna use.
Port forwarding acts like a "switchboard" that receives calls from the Internet on a specific port and passes them directly
to your computer, allowing others to reach you even beyond the router.
Learn more about it at "https://en.wikipedia.org/wiki/Port_forwarding".
To do port forwarding on a specific port you need to:

1) open your browser and access your router panel on 192.168.1.0 or 192.168.1.1 
2) access with the username and password of your router
3) search the section called Port Forwarding, NAT or Virtual Server and add a new rule:

# External/Internal Port: Enter the port used by your script (e.g., 5000).
# Protocol: Select TCP (standard for sockets).

After all this, if you've done everything correctly, you should be able to use that port to make other ip's around the internet connect to your ChatBox server.

ChatBox can only make 2 users connect to each other, any other user will be able to connect to the server, but will not be able to write or read any messages.

ChatBox uses a weak encryption (XOR encryption). Learn more about it at "https://www.101computing.net/xor-encryption-algorithm/".

The standard encryption key is 934028. To comunicate safely with the user, its highly suggested to change it. You can find the key at the lines 226, 230, 242, 247.
After you find it, the only thing to do is just change it in all the lines (obviously it has to be the same password in every line)

Given the overall structure of the program, its not suggested to use it in real life scenarios, but in developing enviroments only.

Releases

No releases published

Packages

 
 
 

Contributors

Languages