Beispiel #1
0
 def initialize(self, alias_data):
     from detect.data.response import Response
     self.data_response = Response()
     self.data_response.open_connection()
     self.alias_data = alias_data
     self.param_extractor = ParamExtractor(self)
     self.path_extractor = PathExtractor(self)
     self.entity_factory = EntityFactory(self.alias_data)
     self.brute_detector = Detector(self.alias_data)
Beispiel #2
0
import requests
import logging
__author__ = 'robdefeo'

logger = logging.Logger(__name__)
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())
logger.info("started")
from detect.data.response import Response
data = Response()
data.open_connection()
responses = data.collection.find(
    # {
    #     non_detections: {
    #         $not: {$size: 0}
    #     },
    #     timestamp: {
    #         $gt: "2015-02-12T00:00:00"
    #     }
    # },
    # {
    #     non_detections: 1,
    #     q: 1
    # }
)
queries_dict = {

}
response_count = 0
for x in responses:
    response_count+=1