Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d21d555

Browse files
authored
Merge pull request #2 from Rafiot/master
Fix the submodules
2 parents c292ed3 + f42323b commit d21d555

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

.gitmodules

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[submodule "Mach-O"]
2-
path = pymacho_helper
3-
url = https://github.com/viper-framework/Mach-O.git
4-
branch = master
51
[submodule "pdftools"]
62
path = pdftools
73
url = https://github.com/viper-framework/pdftools.git
84
branch = master
5+
[submodule "pymacho_helper"]
6+
path = pymacho_helper
7+
url = https://github.com/viper-framework/Mach-O.git
8+
branch = master

misp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import textwrap
77
import os
88
import logging
9+
from os.path import expanduser
910

1011
try:
1112
from pymisp import ExpandedPyMISP, PyMISPError, MISPEvent
@@ -26,7 +27,6 @@
2627
from viper.core.project import __project__
2728
from viper.core.storage import get_sample_path
2829
from viper.common.objects import MispEvent
29-
from viper.common.constants import VIPER_ROOT
3030
from viper.core.config import __config__
3131

3232
log = logging.getLogger('viper')
@@ -430,7 +430,7 @@ def yara(self):
430430
if not ok:
431431
self.log('error', data)
432432
return
433-
rule_path = os.path.join(VIPER_ROOT, 'data/yara', self.args.event + '.yara')
433+
rule_path = os.path.join(expanduser("~"), ".viper", 'data/yara', self.args.event + '.yara')
434434
if os.path.exists(rule_path):
435435
self.log('error', 'File {} already exists.'.format(rule_path))
436436
return

pdftools

Submodule pdftools added at ad76d51

pymacho_helper

Submodule pymacho_helper added at 5717c9a

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ PyMISPGalaxies @ git+https://github.com/MISP/PyMISPGalaxies.git#egg=PyMISPGalaxi
9090
ocrd-pyexiftool==0.2.0
9191

9292
# LIEF module
93-
lief==0.10.0.dev0 ; python_version >= '3.5'
93+
lief==0.10.1 ; python_version >= '3.6'
9494

9595
# Snoopdroid module
9696
snoopdroid==2.1

0 commit comments

Comments
 (0)