Skip to content

Commit

Permalink
Merge pull request #18 from ZetaTwo/fixes
Browse files Browse the repository at this point in the history
Assorted fixes
  • Loading branch information
meeehow authored Nov 11, 2022
2 parents a8da934 + 48d81a5 commit 5f93caf
Show file tree
Hide file tree
Showing 89 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hashr

File renamed without changes.
Empty file modified LICENSE
100755 → 100644
Empty file.
11 changes: 9 additions & 2 deletions readme.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ We also need two additional tools installed on the machine running HashR:
You can install both with the following command:

``` shell
sudo apt install p7zip-full, sleuthkit
sudo apt install p7zip-full sleuthkit
```

You need to allow the user, under which HashR will run, to run certain commands via sudo. Assuming that your user is `hashr` create a file `/etc/sudoers.d/hashr` and put in:
Expand All @@ -106,6 +106,13 @@ You need to allow the user, under which HashR will run, to run certain commands
hashr ALL = (root) NOPASSWD: /bin/mount,/bin/umount,/sbin/losetup,/bin/rm
```

The user under which HashR will run will also need to be able to run docker. Assuming that your user is `hashr`, add them to the docker group like this:

``` shell
sudo usermod -aG docker hashr
```


### Setting up storage for processing tasks

HashR needs to store information about processed sources. It also stores additional telemetry about processing tasks: processing times, number of extracted files, etc. You can choose between using:
Expand Down Expand Up @@ -135,7 +142,7 @@ Step 3: Create a table that will be used to store processing jobs.
cat scripts/CreateJobsTable.sql | docker exec -i hashr_postgresql psql -U hashr -d hashr
```

In order to use PostgreSQL to store information about processing tasks you need to specify the following flags: `-jobsStorage postgres -postgresHost <host> -postgresPort <port> -postgresUser <user> -postgresPassword <pass> -postgresDBName <db_name>`
In order to use PostgreSQL to store information about processing tasks you need to specify the following flags: `-storage postgres -postgres_host <host> -postgres_port <port> -postgres_user <user> -postgres_password <pass> -postgres_db <db_name>`

#### Setting up Cloud Spanner

Expand Down
Empty file modified cache/cache.go
100755 → 100644
Empty file.
Empty file modified cache/cache_test.go
100755 → 100644
Empty file.
Empty file modified cache/proto/cache.pb.go
100755 → 100644
Empty file.
Empty file modified cache/proto/cache.proto
100755 → 100644
Empty file.
Empty file modified cache/testdata/hashes.json
100755 → 100644
Empty file.
Empty file modified common/common.go
100755 → 100644
Empty file.
Empty file modified core/hashr/hashr.go
100755 → 100644
Empty file.
Empty file modified core/hashr/hashr_test.go
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified exporters/gcp/testdata/extraction/file.01
100755 → 100644
Empty file.
Empty file modified exporters/gcp/testdata/extraction/file.02
100755 → 100644
Empty file.
Empty file modified exporters/gcp/testdata/extraction/file.03
100755 → 100644
Empty file.
Empty file modified exporters/gcp/testdata/extraction/file.04
100755 → 100644
Empty file.
Empty file modified exporters/postgres/postgres.go
100755 → 100644
Empty file.
Empty file modified exporters/postgres/postgres_test.go
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/._file.01
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/._file.02
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/._file.03
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/._file.04
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/file.01
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/file.02
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/file.03
100755 → 100644
Empty file.
Empty file modified exporters/postgres/testdata/extraction/file.04
100755 → 100644
Empty file.
Empty file modified go.mod
100755 → 100644
Empty file.
Empty file modified go.sum
100755 → 100644
Empty file.
Empty file modified hashr.go
100755 → 100644
Empty file.
Empty file modified importers/common/common.go
100755 → 100644
Empty file.
Empty file modified importers/common/common_test.go
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir1/desktop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir1/laptop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir1/server.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir2/desktop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir2/laptop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir2/server.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir3/desktop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir3/laptop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir3/server.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir4/desktop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir4/laptop.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/common/testdata/targz/dir4/server.tar.gz
100755 → 100644
Empty file.
Empty file modified importers/gcp/gcp.go
100755 → 100644
Empty file.
Empty file modified importers/gcp/gcp_test.go
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified importers/template.go
100755 → 100644
Empty file.
Empty file modified importers/windows/windows.go
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified importers/wsus/wsus.go
100755 → 100644
Empty file.
Empty file modified importers/wsus/wsus_test.go
100755 → 100644
Empty file.
Empty file modified processors/local/local.go
100755 → 100644
Empty file.
Empty file modified processors/local/local_test.go
100755 → 100644
Empty file.
Empty file modified processors/local/testdata/._disk_2_xfs_volumes.raw
100755 → 100644
Empty file.
Empty file modified processors/local/testdata/disk_2_xfs_volumes.raw
100755 → 100644
Empty file.
Empty file modified scripts/CreateJobsTable.ddl
100755 → 100644
Empty file.
Empty file modified scripts/CreateJobsTable.sql
100755 → 100644
Empty file.
Empty file modified storage/cloudspanner/cloudspanner.go
100755 → 100644
Empty file.
Empty file modified storage/postgres/postgres.go
100755 → 100644
Empty file.

0 comments on commit 5f93caf

Please sign in to comment.