Skip to content

Commit

Permalink
Bug fix in downloader, tweaked docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-kevin committed Jun 8, 2021
1 parent 5c7f953 commit 01ad8cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ This repository contains three Python scripts used for bulk triaging file using

# Installation
## Linux
- following packages: `libffi-dev`, `libssl-dev`
- Install the following packages: `libffi-dev`, `libssl-dev`
- (APT) `sudo apt-get install libffi-dev libssl-dev python3`
- (YUM) `sudo yum install libffi-dev libssl-dev python3`
- `pip install assemblyline-incident-manager`
- Upgrade PIP: `python3 -m pip install --upgrade pip`
- `python3 -m pip install assemblyline-incident-manager`

## Windows
- Download and install the most recent Python .msi installer from https://www.python.org/downloads/release.
Expand Down Expand Up @@ -86,7 +87,7 @@ Options:

## Analyzer
```
python al-incident-analyzer --help
al-incident-analyzer --help
Usage: al-incident-analyzer [OPTIONS] COMMAND [ARGS]...
Example: al-incident-analyzer --url="https://<domain-of-
Expand Down Expand Up @@ -114,7 +115,7 @@ Now check the `report.csv` file that was created. This file will contain what fi

## Downloader
```
python al-incident-downloader --help
al-incident-downloader --help
Usage: al-incident-downloader [OPTIONS] COMMAND [ARGS]...
Example: al-incident-downloader --url="https://<domain-of-
Expand Down Expand Up @@ -178,9 +179,10 @@ Ce répertoire contient trois scripts Python pour assisté le triage de grande q

# Installation
## Linux
- packages suivants: `libffi-dev`, `libssl-dev`
- Installez les packages suivants: `libffi-dev`, `libssl-dev`
- (APT) `sudo apt-get install libffi-dev libssl-dev python3`
- (YUM) `sudo yum install libffi-dev libssl-dev python3`
- Mise à jour de PIP: `python -m pip install --upgrade pip`
- `pip install assemblyline-incident-manager`

## Windows
Expand Down Expand Up @@ -251,7 +253,7 @@ Options:

## Analyzer
```
python al-incident-analyzer --help
al-incident-analyzer --help
Usage: al-incident-analyzer [OPTIONS] COMMAND [ARGS]...
Example: al-incident-analyzer --url="https://<domain-of-
Expand Down Expand Up @@ -279,7 +281,7 @@ Regardez le rapport dans `report.csv`. Ce fichier contient un rapport des détec

## Downloader
```
python al-incident-downloader --help
al-incident-downloader --help
Usage: al-incident-downloader [OPTIONS] COMMAND [ARGS]...
Example: al-incident-downloader --url="https://<domain-of-
Expand Down
2 changes: 1 addition & 1 deletion assemblyline_incident_manager/al_incident_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def main(url: str, username: str, apikey: str, min_score: int, incident_num: str
# Here is the query that we will be using to retrieve all submission details
incident_num = prepare_query_value(incident_num)
prepared_upload_path = prepare_query_value(upload_path)
query = f"metadata.incident_number:\"{incident_num}\" AND max_score:>={min_score} AND metadata.filename:*{prepared_upload_path}*"
query = f"metadata.incident_number:\"{incident_num}\" AND max_score:<={min_score} AND metadata.filename:\"*{prepared_upload_path}*\""

if is_test:
print_and_log(log, f"INFO,The query that you will make is: {query}.", logging.DEBUG)
Expand Down

0 comments on commit 01ad8cd

Please sign in to comment.