Netcat is a really great tool installed on almost all UNIX based systems, even on most windows systems. Here you'll find some examples of what you can do with this great tool.
On UNIX based systems, the tool is usually called netcat, but on some systems it also may be called nc. On Windows, you'll find the nc.exe binary in C:\WINDOWS\system32.
Remember, on UNIX based systems you have to be root in order to listen on sockets with a port number less that 1024.
Spoofing a HTTP Request
Find out which headers your browser would normally send to a web site by pointing your browser to http://localhost:3333 after having set up the listener:
netcat -lp 3333
After that, establish a connection to the website you want to send the spoofed headers to and paste the modified headers:
netcat www.example.com 80
Note that a HTTP request is finished by and empty line, meaning two newlines.
Chatting
You can do some very basic chatting with netcat. To do this, User A has to set up a netcat listener:
netcat -vlp 3333
User B can then connect to this server with the following command, where IP is AA's IP;
netcat IP 3333
As soon as user B has connected A will get a notice and they can start chatting.
Transferring a File
On the destination side a listener which writes anything he receives to a file has to be set up:
netcat -lp 3333 > file
The sender issues the following command, where file is the file he wants to send and IP is the destination IP.
cat file | netcat -w 1 IP 3333
Getting System Information
netcat can also be used to obtain information about a system. The system which is to be monitored just sets up a listener which, whenever another program connects, sends the output of uptime. As soon as netcat terminates (that is, when a connection has been terminated) it'll be restarted:
while `netcat -lp 3333 -e /usr/bin/uptime`;do;done
The user who wants to obtain system information has to issue the following command:
netcat IP 3333
Setting up a (very minimal) webserver
You can set up netcat to act as a very basic webserver which can just serve one file:
while `netcat -lp 8080 -c 'echo HTTP/1.0 200 OK';echo;cat file`;do;done
Doing Local Port Forwards
This command would forward every request on port 8080 to port 80:
while `netcat -lp 8080 -c 'netcat localhost 80'`;do;done
Subscribe to:
Post Comments (Atom)
Counter
Labels
- About Domain Names (4)
- Android Hacks (2)
- Anti Yahoo booter (1)
- AOL hack (1)
- Broadband Hacking (5)
- Browser Tricks (1)
- Bsnl hack (1)
- Cell Phone Hacking (7)
- Computer hacks (24)
- Cracks/Serials (3)
- DataBase hacking (2)
- Defender (1)
- E-books for Hacking (4)
- Ethical hacking (15)
- Exciting Links.. (14)
- Facebook hack (2)
- FireFox hack (2)
- Free Downloadings (1)
- G-TALK Hacking (3)
- Gmail Hacking (2)
- Google Chrome (1)
- Google Hacking (2)
- Hack Airtel (5)
- Hack Vodafone (2)
- Hacking (62)
- Hotmail hack (3)
- Important Articles (16)
- Important Utility Softwares (35)
- Increase download speed (1)
- Innovations Articles (5)
- Intel Core i 7 (1)
- ip (2)
- ip hack (6)
- iPad (1)
- Key Logger (1)
- Lan Hacking (1)
- LInux (11)
- MegaUpload Hack (4)
- Mobile Hacks (14)
- Msn hacks (4)
- Nero (Linux) (1)
- Networking (6)
- Office (1)
- Operating Sysytems (24)
- Oracle 11g (2)
- Orkut goodies (3)
- Orkut Hacking (8)
- Password Hacking (6)
- phone unlocking (2)
- Programming softwares (3)
- Proxy (1)
- Proxy links (1)
- Rapid share hacks (10)
- Security (5)
- Skype hacking (1)
- Special Antiviruse (1)
- Theme for XP (3)
- Themes for Window 7 (1)
- Trojan (6)
- Usb Secuirty (3)
- Viruse (9)
- Website hacking (7)
- Windows 8 (2)
- Wireless Hacking (7)
- Xp Tweeks (5)
- Yahoo Hack (3)
- Yahoo messnger hack (6)
- You Tube Hack (1)
- Zapak hacking (4)
Followers
Blog Archive
-
▼
2009
(264)
-
▼
June
(61)
- New Airtel Hack for 100% free Sms
- Hack passwords with Cain and Abel
- How to find invisible users on Instant Messengers
- Rapidshare Premium link Generators (Unlimited down...
- Windows Vista Quattuor | 2.46 GBThis OS has been m...
- Windows Vista Black Eternity x86 (Genuine Version)
- 15 Tips to Improve your Linux Experience
- WEP Cracking, FBI Style( In Just 3 Minutes ) !
- Access Data of a Password Protected User in Window...
- How to safely uninstall Linux when Dual boot insta...
- How to convert Firefox into Fasterfox
- Gmail Account Hacking Tool
- Vodafone Hack for Free GPRS
- !!…Premium Accounts…!! { 16 Download Sites }
- DIY: Ripping off Windows XP using Backtrack Linux ...
- How do people boost download speed in LAN internet
- PicaSafe 2.0.207
- Nero (Linux)
- Virtual Plastic Surgery Software v.1.2
- SYMBIAN VIRUSES......
- Tools I Recommend -Must For All hackers
- The Viruse Make
- Latest Orkut hack(100% working)
- Samsung Mobile Service Center CODES
- Samsung D series hack
- Nokia All Codes
- MOTOROLLY CODES
- Mobile Secret Codes
- Mobile Cheat स्तुफ्फ NOKIA
- SAMSUNG SECRET CODES (NEW)
- BSNL hack for Internet
- Reliance Hack For free SMS
- Hack for Make FREE Calls.
- Hack Airtel Live to use Yahoo messenger for फ्री
- Mobile cheat codes fr all phones
- HowTo Use your mobile phone as a remote control fo...
- How to Make your own Linux
- Windows 7 Cheat Sheet
- Free Airtel GPRS using TeaShark Browser
- Connecting two buildings to one broadband service ...
- Build your own executable crypter
- Batch File To Disable Firewall-Windows Xp Sp2
- Tools to Automate rapid share Downloading
- Netcat Tips and Tricks
- Simple Batch Viruse explained
- How to create a backdoor using netcat
- Basics ARP Poison routing
- How does worm works
- WHAT IS CLICKJACKING
- Hack Airtel: Free Airtel Internet GPRS
- Airtel Hack for Broadband Internet- increase your ...
- Team Viewer
- Linux Mint 7 Gloria
- Why Is PCLinuxOS 2007 Better Than Ubuntu ?
- Invisible OS Boot Option - Hacking Grub
- Hacking an email
- How To Defend An Input Validation Attack
- For the Linux Novice
- Build your own network at home
- Autorun Viruse Killer!
- Make your USB drive free from virus
-
▼
June
(61)
Subscribe Via Email &Sms
Also Subscribe Via Sms Just click here to follow via
SMS
0 comments:
Post a Comment