Kerala Cyber Warriors
KCW Uploader V1.1

Path : /etc/cpguard/include/
File Upload :
Current File : //etc/cpguard/include/CPGDBRules.h

#ifndef CPGSCANFUNCTIONS_H
#define CPGSCANFUNCTIONS_H

#define OVECCOUNT 30
class scanDBandRules{
	struct rules {
		char* name;
		char* quick_str;
		pcre* regex;
		struct rules* next;
	} *ruletab = NULL;
	unsigned long int size;
	unsigned int sigs;
	long double mb;
	const char* virname;
	char* wlist[1500];
	int wlen;

public:
	struct cl_engine* engine;
	struct cl_scan_options options;
	int ret,qid;
	scanDBandRules();
	~scanDBandRules();
	void loadDb();
	
	void buildEngine();
	int scanDB();
	int scanfile();
	int add_rule(char*, char*, char*);
	int endswith(char* str, char*);
	void compile_rules();
	void loadWhitelist();
	int checkIfWhitelisted();
	int checkIfBlacklisted();
	
};

#endif

-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ