?
Solved

Netcat protocol interaction

Posted on 2011-03-21
2
Medium Priority
?
556 Views
Last Modified: 2012-05-11
So I'm trying to learn some pen tester techniques because I think its a great field to get into with a great future. In my research i came across the linux tool netcat, i read what it does and got it working by connecting to FTP servers, telnet, and SSH servers, (all my own in VM's) and was able to get the banners from the services i connect to. My question is after connecting how do i interact with the protocol in use? (e.g. after connecting to a telnet or SSH server how do i get it to prompt me for user names and password (if used) ) common sense tells me that since netcat works at a very "raw" level i figure i must give it the command that are usually sent in protocol payloads, question is where do i find a reference for those commands? the only thing i can think of is RFC's but those are so painful to read. can anyone point me in the right direction or is it just a growing pain of becoming a pen tester? Thanks in advance to all who reply.
0
Comment
Question by:J-Vas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
AriMc earned 1000 total points
ID: 35184861
Netcat (or nc) is, as the man-page says, "TCP/IP swiss army knife" or "a simple unix utility which reads and writes data across network connections, using TCP or UDP protocol."

On the next level there are always the application protocols defined by RFCs. To fully understand and utilize these protocols, there isn't a quick fix, you just have to read the RFCs.

You can find basic tutorials on a lot of the protocols by Googling things like "understanding xyz", "xyz basics" or "xyz explained", where "xyz" is the protocol you like to study. Most times you can also get simple tasks up and running just by following these tutorials, but if you're creating a real application that is supposed to be really compliant, then disregarding the RFC will basically be the same as shooting yourself in the foot because most of these protocols are surprisingly complex if utiliized fully.






0
 
LVL 7

Assisted Solution

by:expert1010
expert1010 earned 1000 total points
ID: 35187843
Netcat is a one way thing. You need to get another netcat going to interact with the other side. Here is a short example that should give you some more to move forward.

http://zarb.org/~gc/html/udp-in-ssh-tunneling.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question