Categories
Tags
a Accessibility Advanced Algorithms Alias Authentication Bash bash Basics Beginners Best Practices Big O bun cat cd CLI Cloudflare Comments Container Elements Container Queries cp css CSS Data Structures deno DevOps 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 Open Source Package Manager picture pm2 Privacy Productivity programming Programming pwd Remote Access Responsive Design Responsive Images rmdir Runes Scalability section Security Self-hosting Semantic HTML shell Shell Shell Script Shells srcset State Management Structure Svelte Svelte 5 Svelte Store SvelteKit svg Tables tail Text Formatting Tools touch Troubleshooting Tunnel Tutorial TypeScript Unix ux Video Processing 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/