Commit 1b6434e9 by Peter Weidenbach

License added, README and setup updated

parent cfb28dcd
......@@ -2,4 +2,6 @@ __pycache__
.settings
dist
build
common_analysis_oms.egg-info
*.egg-info
.project
.pydevproject
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>common_analysis_oms</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>/${PROJECT_DIR_NAME}</path>
</pydev_pathproperty>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 3.0</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">python3</pydev_property>
</pydev_project>
This diff is collapsed. Click to expand it.
......@@ -2,8 +2,6 @@
This module scans a file with several malware scanners installed locally.
This Plug-in is an adaption of: https://atlassian-net.cs.uni-bonn.de/stash/projects/MAL/repos/offline_malware_scanner/browse
## Supported Scanners
* Avast
* AVG
......@@ -17,6 +15,9 @@ This Plug-in is an adaption of: https://atlassian-net.cs.uni-bonn.de/stash/proje
* Sophos
## Requriements
At least one AV-Scanner must be installed.
At least one AV-scanner must be installed.
We recommand:
ClamAV including ClamAV-Daemon and Clamdscan
\ No newline at end of file
ClamAV including ClamAV-Daemon and Clamdscan
## Known Issues
If your system language is not set to english, some scanner plug-ins might not work correctly.
\ No newline at end of file
from .oms import CommonAnalysisOMS
__version__ = "0.2.3"
__all__ = [
'CommonAnalysisOMS'
]
......
# -*- coding: utf-8 -*-
from common_analysis_base import AnalysisPluginFile
from common_helper_files import get_directory_for_filename, get_version_string_from_git
import hashlib
import json
......@@ -9,16 +8,12 @@ from subprocess import Popen, PIPE
from os import listdir, path
from distutils import spawn
import logging
import pkg_resources
from time import time
from common_analysis_oms import __version__
# can be removed when common analysis base is fixed
try:
plugin_version = pkg_resources.get_distribution("common_analysis_oms").version
except:
plugin_version = get_version_string_from_git(get_directory_for_filename(__file__))
plugin_version = __version__
system_version = "OMS 0.2.2"
system_version = plugin_version
class CommonAnalysisOMS(AnalysisPluginFile):
......@@ -81,7 +76,7 @@ class CommonAnalysisOMS(AnalysisPluginFile):
result = {}
for av in self.av_list:
logging.debug("Starting scan with {} ({}/{})".format(av["name"],
self.av_list.index(av) + 1, self.result_dict["number_of_scanners"]))
self.av_list.index(av) + 1, self.result_dict["number_of_scanners"]))
scanresult = self.get_av_scan_result(av, repr(path.abspath(filepath)))
logging.debug(repr(scanresult))
result[av["name"]] = self.parse_scan_result(scanresult, av)
......
import os
import subprocess
from setuptools import setup, find_packages
from common_analysis_oms import __version__
setup(
name="common_analysis_oms",
version=subprocess.check_output(['git', 'describe', '--always'], cwd=os.path.dirname(os.path.abspath(__file__))).strip().decode('utf-8'),
version=__version__,
packages=find_packages(),
data_files=[('common_analysis_oms/plugins', ['common_analysis_oms/plugins/ClamAV.json',
'common_analysis_oms/plugins/Sophos_en.json',
......@@ -19,5 +18,14 @@ setup(
install_requires=[
'common_analysis_base',
'common_helper_files'
]
],
dependency_links=[
'git+https://github.com/mass-project/common_helper_files.git#common_helper_files'
'git+https://github.com/mass-project/common_analysis_base.git'
],
author="Fraunhofer FKIE",
author_email="peter.weidenbach@fkie.fraunhofer.de",
url="http://www.fkie.fraunhofer.de",
description="Offline Malware Scanner (OMS) scans files with multiple locally installed malware scanners",
license="GPL-3.0"
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment