Categories
Tags
a Accessibility Advanced Algorithms Alias Bash bash Basics Beginners Best Practices Big O bun cat cd CLI Comments Container Elements Container Queries cp css CSS Data Structures deno Doctype Download Editors Error Examples Features figure File Watching Filesystem fish Fish Shell footer frontend Guide header Hello World History Homebrew HTML HTML5 humor img javascript JavaScript Learning less Links linux Linux ls macOS Media Queries meta Mobile-First mv Netcat Networking Node.js npm Package Manager picture pm2 Productivity programming Programming pwd Responsive Design Responsive Images rmdir Scalability section Semantic HTML shell Shell Shell Script Shells srcset State Management Structure Svelte Svelte Store SvelteKit svg Tables tail Text Formatting Tools touch Troubleshooting Tutorial Unix ux Vim web development Web Development web-development webdev
95 words
1 minutes
How to use Netcat
How to use Netcat
Netcat is a versatile networking tool used for reading from and writing to network connections. This guide provides basic usage of Netcat.
Basic Usage
To start a Netcat listener on a specific port, use the following command:
nc -l 1234
To connect to a Netcat listener, use:
nc 127.0.0.1 1234
File Transfer
To transfer a file using Netcat, use the following commands:
On the receiving end:
nc -l 1234 > received_file
On the sending end:
nc 127.0.0.1 1234 < file_to_send
Conclusion
Netcat is a powerful tool for network communication and file transfer. By using the basic commands provided, you can perform various networking tasks efficiently.
How to use Netcat
https://zxce3.net/posts/how-to-use-netcat/