public DbExtractor() { //Properties _encodeCharacter = false; _encodeWhiteSpace = false; _minColumns = 1; _maxColumns = 20; _extractingInfos = new ExtractorInfos(); // Private _injectionPatterns = new InjectPatterns(); _internalData = new InternalData(); _queryConstructor = new QueryConstructor.QueryConstructor(); _injectInfos = new InjectionInfos(); _requestList = new List<Request>(); _lastQueryOutput = string.Empty; _reqManager = new RequestManager(); _reqManager.RequestFinished += ReqManagerRequestFinished; _requestsComplete = new ManualResetEvent(false); _injector = new InjectingClass(); _userStop = false; }
public void Prepare(InjectionInfos injectInfos) { _userStop = false; _requestList = new List<Request>(); _extractingInfos = new ExtractorInfos(); _lastQueryOutput = string.Empty; _injector = new InjectingClass(); _injectInfos = injectInfos; _requestConstructor = new RequestConstructor(injectInfos) { EncodeCharacters = _encodeCharacter, EncodeWhiteSpace = _encodeWhiteSpace }; _internalData.Prepared = true; _internalData.UseConditions = true; }