This project consists on recreating the netcat in a server-client architecture that can run in a server mode on a specified port listening for incoming connections, and it can be used in client mode, trying to connect to a specified port and transmitting information to the server.
- Clone the repository from the remote location to your local environment and switch to the project's directory using the below terminal command.
git clone https://github.com/johneliud/netcat.git cd netcat
-
Run the program from the
root
using either of the below terminal commands.go run .
go run . [SPECIFY-PORT]
NOTE: The program uses port 8989
as its default port using the first run command. A success message is displayed if the program succeeds to run.
- Open a new terminal session and paste the below command to access the program using netcat's server.
nc localhost [SPECIFIED-PORT]
- Run the program's server
- Switch to new terminal sessions and access the program using netcat's server.
Contributions towards improving the project are welcome. Feel free to create a new branch and submit a pull request or create issues on how to improve the project.
-
git checkout -b feat-improvement-your_name
-
git add modified_file
-
git commit -m "description_of_your_changes"
-
git push --set-upstream origin feat-improvement-your_name
Incase of further enquiries, do not hesitate to reach out.