Skip to content

Commit

Permalink
Fix for submitting extracted files + some suggestions (#1)
Browse files Browse the repository at this point in the history
* Fix dexray service file resubmission

* Added .gitignore

* Restrict file accept

* Delete test script

* Move dexray.pl to support folder

Co-authored-by: Ewifly <[email protected]>
  • Loading branch information
cccs-sgaron and Ewifly authored Jun 7, 2021
1 parent d04a7a2 commit d2ee38d
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 21 deletions.
85 changes: 84 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,84 @@
._*
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# IDE files
.pydevproject
.python-version
.idea

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Cython debug symbols
cython_debug/
2 changes: 1 addition & 1 deletion dexray/dexray.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def execute(self, request):
request.add_extracted(newfile_path, newfile_name, f"{vendor} un-quarantined file")
text_section.add_line(f"Resubmitted {vendor} un-quarantined file as : {newfile_name}")
result.add_section(text_section)
request.result = result
request.result = result
18 changes: 0 additions & 18 deletions dexray/test.py

This file was deleted.

2 changes: 1 addition & 1 deletion service_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ is_external: false
docker_config:
image: ewifly/assemblyline-service-dexray:$SERVICE_TAG
cpu_cores: 1.0
ram_mb: 512
ram_mb: 512
File renamed without changes.

0 comments on commit d2ee38d

Please sign in to comment.