Follow us on Twitter!
One mans freedom fighter, another's terrorist.
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 26
Guests Online: 25
Members Online: 1

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

More Winsock Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-07-10 05:36
I have been continuing work on my winsock.
My latest project is to make a program that will fetch the login prompt text from my router's(192.168.1.1) telnet prompt.The code mentioned below executes but shows a string I cannot make any sense of(its the same string always).

Code
#include<winsock2.h>
#include<windows.h>
main()
{
     
     
WSADATA wsaData;
int starterr = WSAStartup(MAKEWORD(2,2), &wsaData);
SOCKET mysock = socket(AF_INET,SOCK_STREAM,0);
sockaddr_in anews;
anews.sin_port = htons(23);
anews.sin_addr.s_addr = inet_addr("192.168.1.1");
anews.sin_family = AF_INET;
connect(mysock,(sockaddr*)&anews, sizeof(anews));
char buf[200];
recv(mysock, buf, sizeof(buf), 0);
MessageBox(0,buf,"sd",0);
}





Thanks in advance for any suggestions.:)


Author

RE: More Winsock Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-07-10 00:37
well as i see it you are using telnet protocol so you should familiarize your self with it

http://www.faqs.o. . .fc854.html
Author

RE: More Winsock Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-07-10 04:17
popen
Author

RE: More Winsock Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-07-10 04:17
popen