nesca/WebformWorker.h

48 lines
1.3 KiB
C
Raw Normal View History

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
private: static bool active;
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,
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();
}
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