Results 1 to 3 of 3
Please help me with coding "Banner Grabbing" in C. (for telnet/ftp/any other)
what kind of request packets do I need to send?
what shud be the values of packet fields?
...
- 04-04-2006 #1Just Joined!
- Join Date
- Feb 2006
- Posts
- 11
Help: how to do Banner Grabbing in telnet/ftp?
Please help me with coding "Banner Grabbing" in C. (for telnet/ftp/any other)
what kind of request packets do I need to send?
what shud be the values of packet fields?
pls include code for packet construction, checksumming...or whatever.
i've tried various ways, but they failed in one way or the other.(some systems sent RST, sometimes cheksum errors,..etc)
- 04-09-2006 #2
Why do you need to do this in C?
Couldn't you just have a short bash script that runs telnet/ftp/whatever on the host, and parses the output for anything interesting?
- 04-11-2006 #3Just Joined!
- Join Date
- Feb 2006
- Posts
- 11
I am working on a tool similar to nmap. So i need to find out the services/version running on each port of the host being scanned.
if i do a system("telnet hostname") to capture the banner, its asking me for login credentials, stalling the program.
main()
{
...
....
for (each port)
{
connect(...); // make a connection to that port
recv(...); // recv the response/banner
}
...
....
}
The abov prgm works for ftp, ssh,smtp. but not for telnet.
so i want to send request packets to telnet just enough for me to get the banner as response. i do not want the host asking me for login.


Reply With Quote