Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


NETCAT - The Hacker's Swiss Army Knife filter_list
Author
Message
NETCAT - The Hacker's Swiss Army Knife #1
hi i am back! Biggrin

Today I will tell ya guys some great uses of the tool called netcat. it's a quick guide so no long stories and all Wink

Scan a range of ports with netcat
Netcat can be used to scan a port or a range of ports by mentioning ports with a hyphen ('-') in between them

Code:
nc -v -z -n 127.0.0.1 20-80

Here the -v parameter means to be "verbose", the more "-v -v -v -v" you have the more in-detail results you will get. The -n means that you are straight writing down the IP address instead of a web address like www.site.com. -z option tells nc to NOT make any connections to the target. this gives you somewhat stealth while scanning. but dont depend on it you CAN be detected yet! :whistle:


Connect to an IP with netcat
You can connect to a webserver or any other open port with nc like a webserver!

Code:
nc -v -w2 -n 12.0.0.1 80

The -w2 param means timeout in 2 seconds Biggrin it will not scan port 80 (as in above sample). instead it will connect to it! run this command and if the opposite port is open and ready and type and enter this:

Code:
GET HTTP/1.1

This will get a reply from the opposite web server (or an angry reply like "go away you jerk!" Biggrin if the guy on the other side has some so-called "hack-catcher" or something).

"listen" on a local port with netcat
Yes you can you use it like a "cute" little webserver too Wink run this command:

Code:
nc -l -p 80

It will listen to the port 80 on your localhost (127.0.0.1) Smile ofcourse you can use any other unused port too!

to test it open another terminal (or command prompt on windoze) and type:

Code:
nc -v -n 127.0.0.1 80

now type something on terminal.. like "hello dumb netcat!" voila! it appears in the terminal/prompt where netcat is listening! :dance:

rest you can google and find out. nc is a very handy tool to do a lot more... like maybe you can set up a backdoor on a victim hacked system! Cool but that's a tutorial for some other time Biggrin

hope you like this little post. cheers and ba bye :bye:
~ # INDIAN ROGUE MERCENARY HACKER # ~

Reply

RE: NETCAT - The Hacker's Swiss Army Knife #2
I like ur thread so +1 Rep for u,keep bro good start up!!!!:ok:

1010011001111010010010101
0110G10H10O101S010T10101
1010100010100100101001001



Reply

RE: NETCAT - The Hacker's Swiss Army Knife #3
Nice tutorial although i already knew this.
What about adding some pictures? Wink

Reply

RE: NETCAT - The Hacker's Swiss Army Knife #4
(04-18-2012, 07:35 PM)hrde Wrote: I like ur thread so +1 Rep for u,keep bro good start up!!!!:ok:

many rhanks for the +1 bro! it will inspire me to write more cool posts. thanks again! Smile btw i will remember it always as my first +1 rep on hack community! :dance: cheers!
~ # INDIAN ROGUE MERCENARY HACKER # ~

Reply

RE: NETCAT - The Hacker's Swiss Army Knife #5
Nice tutorial thank you

(i dont speak english i am french)

Reply

RE: NETCAT - The Hacker's Swiss Army Knife #6
(04-18-2012, 07:58 PM)bluedog.tar.gz Wrote: Nice tutorial although i already knew this.
What about adding some pictures? Wink

great idea Smile maybe i'll add some screenshots later. thanks :yes:

(04-18-2012, 09:08 PM)AceOps Wrote: Nice tutorial thank you

(i dont speak english i am french)

thanks bud! glad you liked it! Biggrin i'll post more such very soon! Smile take care
~ # INDIAN ROGUE MERCENARY HACKER # ~

Reply