C++ HTTP Flood code ported to C++ bot source
Hello. I am stress testing my webservers and I need someone to code or port a C++ HTTP GET flood onto this C++ bot sourcecode. I believe I will need GetTickCount so I can specify the duration of the flood as well. I already have the C++ HTTP Flood .cpp and .h files but have no clue how to put it together onto this source. This will be easier to do over Teamviewer as I'm already using C++ 6.0 and have been with no issues. Please let me know if you can help. It would be appreciated.
Thanks
2 Attachment(s)
Re: C++ HTTP Flood code ported to C++ bot source
Attachment 31393Attachment 31395Attachment 31393Attachment 31395
I have attached the two primary files and code which I need ported over to my C++ sourcecode.
Re: C++ HTTP Flood code ported to C++ bot source
I also have the required #include header files.
Re: C++ HTTP Flood code ported to C++ bot source
Re: C++ HTTP Flood code ported to C++ bot source
If you want to compile and use the provided code then you are some header files missing. In addition to what you have provided, you also need
main.h
mainctrl.h
utility.h
ddos.h
I'm not sure this sort of code belongs on codeguru as it can be used to do an illegal remote denial of service attack.
Moderator - can you have a look at this please.
Re: C++ HTTP Flood code ported to C++ bot source
Yes I have all of those header files.
Re: C++ HTTP Flood code ported to C++ bot source
So why don't you just compile them and use the resulting .exe program? What's the problem?
Re: C++ HTTP Flood code ported to C++ bot source
I am getting tons of errors. The base of the code is different from the base of the sourcecode. I had a friend a few years ago who ported something by changing some variables or things on the code. Do you mind if I send you the sourcecode where the HTTP code is going to?
Re: C++ HTTP Flood code ported to C++ bot source
If you post links to those header files the same way as you did for the .cpp code in your post #2 then I'll take a quick look to see what the problem is with the compile. Note that I use Microsoft VS.
4 Attachment(s)
Re: C++ HTTP Flood code ported to C++ bot source
Attachment 31397Attachment 31399Attachment 31401Attachment 31403
I attached them. If you think you can help, you can remotely do this on my computer via Teamveiwer as I'm using Visual C++ 6.0. Teamviewer is a program used to connect to a partner and fully control and view their computer. From my experience, the sourcecode may not compile with Visual C++ 2010.
Re: C++ HTTP Flood code ported to C++ bot source
1 Attachment(s)
Re: C++ HTTP Flood code ported to C++ bot source
Re: C++ HTTP Flood code ported to C++ bot source
If you look at mainctrl.h and utility.h you'll see another bunch of includes that are required!
Re: C++ HTTP Flood code ported to C++ bot source
Quote:
Originally Posted by
2kaud
If you look at mainctrl.h and utility.h you'll see another bunch of includes that are required!
Well here is the sourcecode where these files came from
http://rapidshare.com/files/278902175/agobot3-priv4.zip
I was unable to upload it to the board.
Re: C++ HTTP Flood code ported to C++ bot source
Ok Got it. I'll have a look at it and get back to you in a couple of days.
1 Attachment(s)
Re: C++ HTTP Flood code ported to C++ bot source
I've now compiled the source code from the site specified. Under VS it compiled cleanly with just a linker error regarding a missing rsaglue.lib file. I downloaded that from the web and it then compiled OK with just a few linker warnings about missing debug info which is fine. I opened agobot3.dsw within VS and just rebuilt the solution.
I've attached a zip file containing the exe files and the rsaglue.lib file - so you should be able to use them now. Agobot3d.exe is the file that was built. The other .exe's are already part of the download.
Re: C++ HTTP Flood code ported to C++ bot source
Quote:
Originally Posted by
2kaud
I've now compiled the source code from the site specified. Under VS it compiled cleanly with just a linker error regarding a missing rsaglue.lib file. I downloaded that from the web and it then compiled OK with just a few linker warnings about missing debug info which is fine. I opened agobot3.dsw within VS and just rebuilt the solution.
I've attached a zip file containing the exe files and the rsaglue.lib file - so you should be able to use them now. Agobot3d.exe is the file that was built. The other .exe's are already part of the download.
Thank you but what I needed was the HTTP code from agobot ported over to my other sourcecode that I have not sent you yet. I thought you were first taking a look to then ask me for the other sourcecode.
Re: C++ HTTP Flood code ported to C++ bot source
I looked at the source provided with agobot and there are many individual .cpp and .h files in different directories that all need compiling correctly - either via a makefile or using the provided MSVS .dsw file. The result is one main .exe file - agobot3d.exe. If you want to take parts of the .cpp/.h code and use in your own project (or compile separately) then you'll need to work out the interdependencies of the code in order to know what to include and how it compiles. This is not something I'll be able to do for you - nor I suspect will any other member.
Your previous post said that you got compile errors when you tried to compile. As the code is meant to be compiled, it compiles OK (with the missing rsaglue.lib file). If you are trying to compile parts of it and it gives errors then you haven't got the headers/dependencies/project properties set as needed.
Sorry I can't provide much more help.
PS Its fairly easy to get httpflood.cpp to compile without errors (Just add the location of the extra include folders to the project properties). The problem is with linking. There are loads of symbols the linker can't find if you try to build the solution with just httpflood.cpp. To be able to link, you'll need to additionally add the relevant .cpp files to the project/solution and then compile them all so that the linker can find the required symbols.