def test_scan(self): malware = 'eicar.com.txt' # malware = 'blat.ex_' my_clamav_engine = clamav_engine() TEST_FILE_DIR_PATH = os.path.join(os.path.dirname(__file__), '..', 'file') path = PickleableFileSample.path_factory(os.path.join(TEST_FILE_DIR_PATH, malware)) # path = os.path.join(TEST_FILE_DIR_PATH, 'eicar.com.txt') my_scan = my_clamav_engine.scan(path) if my_scan.infected: print print "Infected:" print my_scan.infected_string print ok_(my_scan, msg="Test A/V def update - version")
def test_scan(self): malware = 'eicar.com.txt' # malware = 'blat.ex_' my_ceset_engine = eset_engine() TEST_FILE_DIR_PATH = os.path.join(os.path.dirname(__file__), '..', 'file') path = PickleableFileSample.path_factory(os.path.join(TEST_FILE_DIR_PATH, malware)) # path = os.path.join(TEST_FILE_DIR_PATH, 'eicar.com.txt') my_scan = my_ceset_engine.scan(path) if my_scan.infected: print print "Infected:" print my_scan.infected_string print ok_(my_scan, msg="Test A/V def update - version")
def test_scan(self): malware = 'evil.pdf' # malware = 'blat.ex_' my_kaspersky_engine = kaspersky_engine() TEST_FILE_DIR_PATH = os.path.join(os.path.dirname(__file__), '..', 'file') path = PickleableFileSample.path_factory('/vagrant/app/worker/av/kaspersky/test/file/evil.pdf') # path = PickleableFileSample.path_factory(os.path.join(TEST_FILE_DIR_PATH, malware)) # path = os.path.join(TEST_FILE_DIR_PATH, 'eicar.com.txt') my_scan = my_kaspersky_engine.scan(path) if my_scan.infected: print print "Infected:" print my_scan.infected_string print ok_(my_scan, msg="Test A/V def update - version")
def test_scan(self): malware = 'evil.pdf' # malware = 'blat.ex_' my_kaspersky_engine = kaspersky_engine() TEST_FILE_DIR_PATH = os.path.join(os.path.dirname(__file__), '..', 'file') path = PickleableFileSample.path_factory( '/vagrant/app/worker/av/kaspersky/test/file/evil.pdf') # path = PickleableFileSample.path_factory(os.path.join(TEST_FILE_DIR_PATH, malware)) # path = os.path.join(TEST_FILE_DIR_PATH, 'eicar.com.txt') my_scan = my_kaspersky_engine.scan(path) if my_scan.infected: print print "Infected:" print my_scan.infected_string print ok_(my_scan, msg="Test A/V def update - version")
def _make_inert_file_object_small(): return PickleableFileSample.path_factory(INERT_FILE_PATH)
def _make_eicar_picklable_file_object(): return PickleableFileSample.path_factory(EICAR_TEST_FILE_PATH)