nesca/WebformWorker.h

48 lines
1.2 KiB
C
Raw Normal View History

2015-03-05 14:29:05 +00:00
#ifndef WEBFORMWORKER_H
#define WEBFORMWORKER_H
#include <Utils.h>
#include "STh.h"
2015-03-06 14:32:36 +00:00
#include "Connector.h"
2015-03-07 17:31:48 +00:00
#include <mainResources.h>
#include <externData.h>
#include <externFunctions.h>
2015-03-05 14:29:05 +00:00
class WFClass {
private: static bool active;
int passCounter = 1;
lopaStr doGetCheck(char *ip, int port, char *actionVal, char *userVal, char *passVal, char *formVal);
lopaStr doPostCheck(char *ip, int port, char *actionVal, char *userVal, char *passVal, char *formVal);
lopaStr parseResponse(const char *ip, const int port, const std::string *buffer, const char* formVal,
const int *iIndex,
const int *jIndex);
public:
WFClass(){
while(BrutingThrds >= gMaxBrutingThreads) Sleep(700);
++WF;
BConInc();
2015-03-06 14:32:36 +00:00
this->active = true;
2015-03-05 14:29:05 +00:00
passCounter = 1;
}
~WFClass(){
2015-03-06 14:32:36 +00:00
this->active = false;
2015-03-05 14:29:05 +00:00
BConDec();
}
lopaStr _WFBrute(char *ip,
int port,
char *methodVal,
char *actionVal,
char *userVal,
char *passVal,
char *formVal);
};
#endif // WEBFORMWORKER_H