Skip to content

Commit

Permalink
switched back from fork to official jefferson repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Jan 19, 2023
1 parent bec3492 commit 382fb7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions fact_extractor/install/unpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
'openjdk-14-jdk'
]
},
# Packages common to all plateforms
# Packages common to all platforms
'common': {
'apt': [
'libjpeg-dev',
Expand Down Expand Up @@ -145,19 +145,20 @@
'git+https://github.com/fkie-cad/fact_helper_file.git',
'patool',
'archmage',
# jefferson + deps
'git+https://github.com/sviehb/jefferson.git',
'cstruct==2.1',
'python-lzo',
# binwalk
'git+https://github.com/ReFirmLabs/[email protected]',
'pyqtgraph',
'capstone',
'cstruct==1.8',
'python-lzo',
'numpy',
'scipy',
'git+https://github.com/jrspruitt/[email protected]' # pinned as broken currently
],
'github': [
('kartone/sasquatch', ['./build.sh']),
('svidovich/jefferson-3', ['sudo python3 setup.py install']),
('rampageX/firmware-mod-kit', ['(cd src && make)', 'cp src/yaffs2utils/unyaffs2 src/untrx src/tpl-tool/src/tpl-tool ../../bin/'])
]
}
Expand All @@ -175,7 +176,7 @@ def install_dependencies(dependencies):


def main(distribution):
# removes due to compatibilty reasons
# removes due to compatibility reasons
try:
apt_remove_packages('python-lzma')
pip2_remove_packages('pyliblzma')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_unpacker_selection_generic(self):
self.check_unpacker_selection('filesystem/jffs2-big', 'JFFS2')

def test_extraction_little(self):
self.check_unpacking_of_standard_unpack_set(TEST_DATA_DIR / 'jffs2_be.img', additional_prefix_folder='jffs-root/fs_1')
self.check_unpacking_of_standard_unpack_set(TEST_DATA_DIR / 'jffs2_be.img', additional_prefix_folder='jffs-root')

def test_extraction_big(self):
self.check_unpacking_of_standard_unpack_set(TEST_DATA_DIR / 'jffs2_le.img', additional_prefix_folder='jffs-root/fs_1')
self.check_unpacking_of_standard_unpack_set(TEST_DATA_DIR / 'jffs2_le.img', additional_prefix_folder='jffs-root')

0 comments on commit 382fb7f

Please sign in to comment.