Solved

Netcat protocol interaction

Posted on 2011-03-21
2
535 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
2 Comments
 
LVL 9

Accepted Solution

by:
AriMc earned 250 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 250 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now