-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from tw4l/master
SIP Creator v1.1.0
- Loading branch information
Showing
11 changed files
with
341 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
name: "Test" | ||
on: | ||
pull_request: | ||
push: | ||
|
||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: True | ||
|
||
jobs: | ||
tox: | ||
name: "Test ${{ matrix.toxenv }}" | ||
runs-on: "ubuntu-18.04" | ||
strategy: | ||
matrix: | ||
include: | ||
- python-version: "3.7" | ||
toxenv: "py37" | ||
- python-version: "3.8" | ||
toxenv: "py38" | ||
- python-version: "3.9" | ||
toxenv: "py39" | ||
- python-version: "3.10" | ||
toxenv: "py310" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: "true" | ||
- name: "Set up Python ${{ matrix.python-version }}" | ||
uses: "actions/setup-python@v2" | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
- name: Install homebrew | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) | ||
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | ||
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile | ||
echo "::add-path::/home/linuxbrew/.linuxbrew/bin" | ||
brew --version | ||
- name: Install Siegfried | ||
run: | | ||
brew install richardlehane/digipres/siegfried | ||
- name: Install md5deep | ||
run: | | ||
brew install md5deep | ||
- name: Install bulk_extractor | ||
run: | | ||
brew install bulk_extractor | ||
- name: Run install script | ||
run: | | ||
./test-install.sh | ||
shell: bash | ||
- name: "Get pip cache dir" | ||
id: "pip-cache" | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: "Cache pip packages" | ||
uses: "actions/cache@v2" | ||
with: | ||
path: "${{ steps.pip-cache.outputs.dir }}" | ||
key: "${{ runner.os }}-pip-${{ hashFiles('**/base.txt','**/test.txt') }}" | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: "Install tox" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: "Run tox" | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
run: | | ||
tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
|
||
### Install script for CCA SIP Creator in Bitcurator | ||
|
||
# Update submodules | ||
git submodule update --init --recursive | ||
|
||
# Make /usr/share/ccatools if doesn't already exist | ||
if [ ! -d /usr/share/ccatools ]; then | ||
sudo mkdir /usr/share/ccatools | ||
fi | ||
|
||
# Delete /usr/share directory for SIP Creator if it already exists | ||
if [ -d /usr/share/ccatools/sipcreator ]; then | ||
sudo rm -rf /usr/share/ccatools/sipcreator | ||
fi | ||
|
||
# Make /usr/share directory for SIP Creator | ||
sudo mkdir /usr/share/ccatools/sipcreator | ||
|
||
# Move files into /usr/share/ccatools/sipcreator | ||
sudo cp main.py /usr/share/ccatools/sipcreator | ||
sudo cp launch /usr/share/ccatools/sipcreator | ||
sudo cp design.py /usr/share/ccatools/sipcreator | ||
sudo cp design.ui /usr/share/ccatools/sipcreator | ||
sudo cp icon.png /usr/share/ccatools/sipcreator | ||
sudo cp LICENSE /usr/share/ccatools/sipcreator | ||
sudo cp README.md /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/dfxml.py /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/Objects.py /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/walk_to_dfxml.py /usr/share/ccatools/sipcreator | ||
|
||
# Make "CCA Tools" folder on Desktop if doesn't already exist | ||
if [ ! -d "/home/bcadmin/Desktop/CCA Tools" ]; then | ||
sudo mkdir "/home/bcadmin/Desktop/CCA Tools" | ||
fi | ||
|
||
# Create launch.desktop file | ||
sudo touch '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo '[Desktop Entry]' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Type=Application' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Name=SIP Creator' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Exec=/usr/share/ccatools/sipcreator/launch' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Icon=/usr/share/ccatools/sipcreator/icon.png' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
|
||
# Change permissions, ownership for CCA Tools | ||
sudo chown -R bcadmin:bcadmin '/home/bcadmin/Desktop/CCA Tools' | ||
sudo chown -R bcadmin:bcadmin '/usr/share/ccatools/sipcreator' | ||
sudo find '/home/bcadmin/Desktop/CCA Tools' -type d -exec chmod 755 {} \; | ||
sudo find '/home/bcadmin/Desktop/CCA Tools' -type f -exec chmod 644 {} \; | ||
|
||
# Make files executable | ||
sudo chmod u+x '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
sudo chmod u+x /usr/share/ccatools/sipcreator/launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,46 @@ | ||
#!/bin/bash | ||
|
||
### Install script for CCA SIP Creator in Bitcurator | ||
### Install script for CCA Disk Image Processor in Bitcurator 4/Ubuntu 22 | ||
|
||
# Update submodules | ||
git submodule update --init --recursive | ||
|
||
# Make /usr/share/ccatools if doesn't already exist | ||
if [ ! -d /usr/share/ccatools ]; then | ||
sudo mkdir /usr/share/ccatools | ||
fi | ||
|
||
# Delete /usr/share directory for SIP Creator if it already exists | ||
if [ -d /usr/share/ccatools/sipcreator ]; then | ||
sudo rm -rf /usr/share/ccatools/sipcreator | ||
fi | ||
sipcreator_dir="/usr/share/ccatools/sipcreator/" | ||
|
||
# Make /usr/share directory for SIP Creator | ||
sudo mkdir /usr/share/ccatools/sipcreator | ||
|
||
# Move files into /usr/share/ccatools/sipcreator | ||
sudo cp main.py /usr/share/ccatools/sipcreator | ||
sudo cp launch /usr/share/ccatools/sipcreator | ||
sudo cp design.py /usr/share/ccatools/sipcreator | ||
sudo cp design.ui /usr/share/ccatools/sipcreator | ||
sudo cp icon.png /usr/share/ccatools/sipcreator | ||
sudo cp LICENSE /usr/share/ccatools/sipcreator | ||
sudo cp README.md /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/dfxml.py /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/Objects.py /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/walk_to_dfxml.py /usr/share/ccatools/sipcreator | ||
|
||
# Make "CCA Tools" folder on Desktop if doesn't already exist | ||
if [ ! -d "/home/bcadmin/Desktop/CCA Tools" ]; then | ||
sudo mkdir "/home/bcadmin/Desktop/CCA Tools" | ||
if [ -d $sipcreator_dir ]; then | ||
sudo rm -rf $sipcreator_dir | ||
fi | ||
|
||
sudo mkdir $sipcreator_dir | ||
|
||
sudo cp main.py $sipcreator_dir | ||
sudo cp launch $sipcreator_dir | ||
sudo cp design.py $sipcreator_dir | ||
sudo cp design.ui $sipcreator_dir | ||
sudo cp icon.png $sipcreator_dir | ||
sudo cp LICENSE $sipcreator_dir | ||
sudo cp README.md $sipcreator_dir | ||
sudo cp deps/dfxml/python/dfxml.py $sipcreator_dir | ||
sudo cp deps/dfxml/python/Objects.py $sipcreator_dir | ||
sudo cp deps/dfxml/python/walk_to_dfxml.py $sipcreator_dir | ||
|
||
# Create launch.desktop file | ||
sudo touch '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo '[Desktop Entry]' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Type=Application' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Name=SIP Creator' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Exec=/usr/share/ccatools/sipcreator/launch' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
echo 'Icon=/usr/share/ccatools/sipcreator/icon.png' | sudo tee --append '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
|
||
# Change permissions, ownership for CCA Tools | ||
sudo chown -R bcadmin:bcadmin '/home/bcadmin/Desktop/CCA Tools' | ||
sudo chown -R bcadmin:bcadmin '/usr/share/ccatools/sipcreator' | ||
sudo find '/home/bcadmin/Desktop/CCA Tools' -type d -exec chmod 755 {} \; | ||
sudo find '/home/bcadmin/Desktop/CCA Tools' -type f -exec chmod 644 {} \; | ||
|
||
# Make files executable | ||
sudo chmod u+x '/home/bcadmin/Desktop/CCA Tools/SIP Creator.desktop' | ||
launch_file="/usr/share/applications/SIPCreator.desktop" | ||
|
||
if [ -f $launch_file ]; then | ||
sudo rm -rf $launch_file | ||
fi | ||
|
||
sudo touch $launch_file | ||
echo '[Desktop Entry]' | sudo tee --append $launch_file | ||
echo 'Type=Application' | sudo tee --append $launch_file | ||
echo 'Name=SIP Creator' | sudo tee --append $launch_file | ||
echo 'Exec=/usr/share/ccatools/sipcreator/launch' | sudo tee --append $launch_file | ||
echo 'Icon=/usr/share/ccatools/sipcreator/icon.png' | sudo tee --append $launch_file | ||
echo 'Categories=Forensics and Reporting' | sudo tee --append $launch_file | ||
|
||
sudo chown -R bcadmin:bcadmin $sipcreator_dir | ||
sudo chmod u+x /usr/share/ccatools/sipcreator/launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-r requirements/base.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bagit | ||
brunnhilde | ||
pyqt5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-r base.txt | ||
|
||
pytest==6.2.4 | ||
pytest-mock==3.6.1 | ||
tox==3.23.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
### Install SIP Creator for testing | ||
|
||
# Update submodules | ||
git submodule update --init --recursive | ||
|
||
# Make /usr/share/ccatools if doesn't already exist | ||
if [ ! -d /usr/share/ccatools ]; then | ||
sudo mkdir /usr/share/ccatools | ||
fi | ||
|
||
# Delete /usr/share directory for SIP Creator if it already exists | ||
if [ -d /usr/share/ccatools/sipcreator ]; then | ||
sudo rm -rf /usr/share/ccatools/sipcreator | ||
fi | ||
|
||
# Make /usr/share directory for SIP Creator | ||
sudo mkdir /usr/share/ccatools/sipcreator | ||
|
||
# Move files into /usr/share/ccatools/sipcreator | ||
sudo cp main.py /usr/share/ccatools/sipcreator | ||
sudo cp launch /usr/share/ccatools/sipcreator | ||
sudo cp design.py /usr/share/ccatools/sipcreator | ||
sudo cp design.ui /usr/share/ccatools/sipcreator | ||
sudo cp icon.png /usr/share/ccatools/sipcreator | ||
sudo cp LICENSE /usr/share/ccatools/sipcreator | ||
sudo cp README.md /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/dfxml.py /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/Objects.py /usr/share/ccatools/sipcreator | ||
sudo cp deps/dfxml/python/walk_to_dfxml.py /usr/share/ccatools/sipcreator | ||
|
||
sudo cp deps/dfxml/python/dfxml.py . | ||
sudo cp deps/dfxml/python/Objects.py . | ||
sudo cp deps/dfxml/python/walk_to_dfxml.py . |
Oops, something went wrong.