示例#1
0
 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")
示例#2
0
 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")
示例#3
0
 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")
示例#4
0
 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")
示例#5
0
def _make_inert_file_object_small():

    return PickleableFileSample.path_factory(INERT_FILE_PATH)
示例#6
0
def _make_eicar_picklable_file_object():

    return PickleableFileSample.path_factory(EICAR_TEST_FILE_PATH)
示例#7
0
def _make_inert_file_object_small():

	return PickleableFileSample.path_factory(INERT_FILE_PATH)
示例#8
0
def _make_eicar_picklable_file_object():

	return PickleableFileSample.path_factory(EICAR_TEST_FILE_PATH)