2015-03-05 14:29:05 +00:00
|
|
|
#ifndef WEBFORMWORKER_H
|
|
|
|
#define WEBFORMWORKER_H
|
|
|
|
|
2015-03-22 00:43:15 +00:00
|
|
|
#include "Utils.h"
|
2015-03-06 14:32:36 +00:00
|
|
|
#include "Connector.h"
|
2015-03-22 00:43:15 +00:00
|
|
|
#include "mainResources.h"
|
|
|
|
#include "externFunctions.h"
|
|
|
|
#include "BruteUtils.h"
|
2015-03-13 14:27:21 +00:00
|
|
|
#include "STh.h"
|
2015-03-05 14:29:05 +00:00
|
|
|
|
2015-03-13 14:27:21 +00:00
|
|
|
class WFClass : BruteUtils {
|
2015-03-05 14:29:05 +00:00
|
|
|
|
2015-03-25 14:29:08 +00:00
|
|
|
private:
|
2015-03-05 14:29:05 +00:00
|
|
|
int passCounter = 1;
|
2015-03-22 00:43:15 +00:00
|
|
|
lopaStr doGetCheck(const char *ip, int port, char *actionVal, char *userVal, char *passVal, char *formVal);
|
|
|
|
lopaStr doPostCheck(const char *ip, int port, char *actionVal, char *userVal, char *passVal, char *formVal);
|
2015-03-05 14:29:05 +00:00
|
|
|
lopaStr parseResponse(const char *ip, const int port, const std::string *buffer, const char* formVal,
|
2015-03-25 14:29:08 +00:00
|
|
|
const char *login,
|
|
|
|
const char *pass);
|
2015-03-05 14:29:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
WFClass(){
|
2015-04-02 12:33:49 +00:00
|
|
|
if(gMaxBrutingThreads > 0) {
|
|
|
|
while(BrutingThrds >= gMaxBrutingThreads) Sleep(700);
|
2015-03-05 14:29:05 +00:00
|
|
|
|
2015-04-02 12:33:49 +00:00
|
|
|
++WF;
|
|
|
|
BConInc();
|
|
|
|
passCounter = 1;
|
|
|
|
}
|
2015-03-05 14:29:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
~WFClass(){
|
|
|
|
BConDec();
|
|
|
|
}
|
|
|
|
|
2015-03-22 00:43:15 +00:00
|
|
|
lopaStr _WFBrute(const char *ip,
|
2015-03-05 14:29:05 +00:00
|
|
|
int port,
|
|
|
|
char *methodVal,
|
|
|
|
char *actionVal,
|
|
|
|
char *userVal,
|
|
|
|
char *passVal,
|
|
|
|
char *formVal);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WEBFORMWORKER_H
|