csc Posted July 5, 2006 Share Posted July 5, 2006 Hey. I nead a simple program which generates http request (like GET, POST, etc.) The best would be code in C++. Thx Quote Link to comment Share on other sites More sharing options...
barrytone Posted July 5, 2006 Share Posted July 5, 2006 Not sure what language it's written in, but cURL may be what you're looking for :) http://curl.haxx.se/ Quote Link to comment Share on other sites More sharing options...
l0gic Posted July 5, 2006 Share Posted July 5, 2006 HTTP is ridiculously simple. All you have to do is follow the RFC (sections 5, 9, and 14 particularly). http://www.ietf.org/rfc/rfc2616.txt A little bedtime reading. :D Quote Link to comment Share on other sites More sharing options...
csc Posted July 5, 2006 Author Share Posted July 5, 2006 hmm... not quite, but THX any way barrytone & l0gic:) In need prog, which will send a simply http request like: GET / HTTP/1.1rn Accept: */*rn Accept-Language: plrn Accept-Encoding: gzip, deflatern Host: www.google.ukrn Connection: Keep-Alivern rn and gave me google page code back. like IE or Mozilla FF but in C++ code! Quote Link to comment Share on other sites More sharing options...
barrytone Posted July 5, 2006 Share Posted July 5, 2006 hmm...not quite, but THX any way barrytone & l0gic:) In need prog, which will send a simply http request like: GET / HTTP/1.1rn Accept: */*rn Accept-Language: plrn Accept-Encoding: gzip, deflatern Host: www.google.ukrn Connection: Keep-Alivern rn and gave me google page code back. like IE or Mozilla FF but in C++ code! How about this one? http://www.jlab.org/~chen/cmlog/cmlog-2-1-b/node27.html I'm not a c++ coder, so I'm not gonna bother trying to figure out if that would suit your needs :P Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 6, 2006 Share Posted July 6, 2006 Can I ask what you are going to use this for? I'm interested becasue this is the sort of functionality DDoS botnet zombies need. Along with a basic IRC client and interpreter (got to beable to interpret the commands it recives). You are not making a botnet zombie program are you? :P Quote Link to comment Share on other sites More sharing options...
jollyrancher82 Posted July 6, 2006 Share Posted July 6, 2006 #include <stdio.h> #include "CClient.hpp" int main(int argc, char** argv) { Â Â Â Â if (argc < 3) Â Â Â Â { Â Â Â Â Â Â Â Â printf("Usage:"); Â Â Â Â Â Â Â Â printf("t%s <hostname> <port>"); Â Â Â Â Â Â Â Â return 0; Â Â Â Â } Â Â Â Â Â Â Â Â CClient* pClient = new CClient(); Â Â Â Â char* pszRecvMessage = new char[1024]; Â Â Â Â pClient->Create(); Â Â Â Â pClient->Connect(argv[1], atoi(argv[2])); Â Â Â Â Â Â Â Â pClient->Send("GET / HTTP/1.1rn"); Â Â Â Â pClient->Send("Accept: */*rn"); Â Â Â Â pClient->Send("Accept-Language: plrn"); Â Â Â Â pClient->Send("Accept-Encoding: gzip, deflatern"); Â Â Â Â pClient->Send("Host: www.google.comrn"); Â Â Â Â pClient->Send("Connection: Keep-Alivern"); Â Â Â Â pClient->Send("rn"); Â Â Â Â while (pClient->Recv(pszRecvMessage, 1023)) Â Â Â Â { Â Â Â Â Â Â Â Â printf("%s", pszRecvMessage); Â Â Â Â } Â Â Â Â delete [] pszRecvMessage; Â Â Â Â delete pClient; Â Â Â Â Â Â Â Â return 0; } This code was thrown together in a few minutes, and may contain errors (and missing class files which I don't share :)) Feel free to pay me for the actual CClient.cpp and CClient.hpp code :) If you learn basic sockets on Windows, Linux, BSD, or whatever, what you want to do is pretty simple. Quote Link to comment Share on other sites More sharing options...
csc Posted July 6, 2006 Author Share Posted July 6, 2006 You are not making a botnet zombie program are you? :P No;) DDoS is not my type of action. TomB & barrytone - big THX 2 U!!! This is what im looking 4! Quote Link to comment Share on other sites More sharing options...
cooper Posted July 6, 2006 Share Posted July 6, 2006 TomB, you have just been assigned Microsoft Citrufied N00b status for using Hungarian Notation (BLEEEEEEEUUUUUUUURGH!!!) in public. Quote Link to comment Share on other sites More sharing options...
jollyrancher82 Posted July 6, 2006 Share Posted July 6, 2006 Who actually cares how variables are named? Sure I use hungarian notation.. so what? Quote Link to comment Share on other sites More sharing options...
tabath Posted July 7, 2006 Share Posted July 7, 2006 "TomB, you have just been assigned Microsoft Citrufied N00b status for using Hungarian Notation (BLEEEEEEEUUUUUUUURGH!!!) in public." Come on Cooper lets be accurate if your gonna take the p***. Its Systems Hungarian notation. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.