nesca/WebformWorker.h

51 lines
1.3 KiB
C
Raw Permalink 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
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-08-07 22:37:28 +00:00
//++WF;
2015-04-04 12:43:22 +00:00
++BrutingThrds;
//BConInc();
2015-04-02 12:33:49 +00:00
passCounter = 1;
}
2015-03-05 14:29:05 +00:00
}
~WFClass(){
2015-04-04 12:43:22 +00:00
//BConDec();
--BrutingThrds;
2015-03-05 14:29:05 +00:00
}
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