Skip to content

Commit

Permalink
docs: Update usage and example to version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheusv committed Dec 23, 2020
1 parent 807b30a commit fb84015
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 66 deletions.
70 changes: 42 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,40 +36,54 @@ Have fun! :rocket:

### Usage

OBS.:
Do not put the insider in the same folder that contains the files to be analyzed.

The target folder should contain all the source code that should be analyzed, we plan to release support for compiled binaries for iOS, and Android' APKs.

```
./insider --help
Insider is the CLI project from the Insider Application Security Team for the community
insider is the CLI project from the Insider Application Security Team for the community
Usage:
-exclude value
Patterns to exclude directory or files to analyze. Can be used multiple times
-force
Overwrite the report file name. Insider does not overwrite the results directory by default - Optional
-no-banner
Skips the banner printing (Useful for CI/Docker environments) - Optional
Overwrite the report file name. Insider does not overwrite the results directory by default (default false)
-jobs int
Number of analysis to execute in parallel (default 4)
-no-dra
Disable DRA analysis
-no-html
Skips the report generation in the HTML format - Optional
Skips the report generation in the HTML format
-no-json
Skips the report generation in the JSON format - Optional
-security int
Set the Security level, values ​​between 0 and 100
Skips the report generation in the JSON format
-quiet
No output logs of execution
-security float
Set the Security level, values between 0 and 100 (default 0)
-target string
Specify where to look for files to run the specific ruleset.
-target <folder>
-target <myprojectfolder>
Specify where to look for files to run the specific ruleset
-tech string
Specify which technology ruleset to load. (Valid values are: android, ios, csharp, javascript)
-tech javascript
-tech csharp
-v Set true for verbose output
Example of use :
insider -tech javascript -target <myprojectfolder>
insider -tech=android -target=<myandroidfolder>
insider -tech android -target <myfolder> -no-html
Specify which technology ruleset to load
-v Enable verbose output
-version
Show version and quit with exit code 0
Supported technologies:
android
java
ios
javascript
csharp
Example of use:
# Run JavaScript analysis on specific directoty
insider -tech javascript -target <directory>
# Run Android analysis on specific directoty and ignore html and json report
insider -tech android -target <directory> -no-html -no-json
# Run Java analysis on specific directoty with a base security value to fail
insider -tech java -target <directory> -security 20
# Run JavaScript analysis on specific directoty and exclude node_modules and test files
insider -tech javascript -target <directory> -exclude tests/* -exclude node_modules/*
```

---
Expand All @@ -78,8 +92,8 @@ Example of use :

```bash
# Check the correct release for your environment
$ wget https://github.com/insidersec/insider/releases/download/2.0.6/insider_2.0.6_linux_x86_64.tar.gz
$ tar -xf insider_2.0.6_linux_x86_64.tar.gz
$ wget https://github.com/insidersec/insider/releases/download/2.1.0/insider_2.1.0_linux_x86_64.tar.gz
$ tar -xf insider_2.1.0_linux_x86_64.tar.gz
$ chmod +x insider
$ ./insider --tech javascript --target <projectfolder>
```
Expand Down
81 changes: 43 additions & 38 deletions README_pt-br.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,47 +36,53 @@ Pronto, divirta-se! :rocket:

### Utilização

OBS .:
Não coloque o insider na mesma pasta que contém os arquivos a serem analisados.

A pasta de destino deve conter todo o código-fonte que deve ser analisado, planejamos lançar suporte para binários compilados para iOS e APKs do Android.

```
./insider --help
Insider é o projeto CLI do time de segurança da Insider Application Security para a comunidade
insider is the CLI project from the Insider Application Security Team for the community
Comandos:
Usage:
-exclude value
Patterns to exclude directory or files to analyze. Can be used multiple times
-force
Substitua o nome do arquivo de relatório. O Insider não substitui o diretório de resultados por padrão. - Opcional
-no-banner
Ignore a impressão do banner (Útil para ambientes CI / Docker). - Opcional
Overwrite the report file name. Insider does not overwrite the results directory by default (default false)
-jobs int
Number of analysis to execute in parallel (default 4)
-no-dra
Disable DRA analysis
-no-html
Ignore a criação do relatório no formato HTML. - Opcional
Skips the report generation in the HTML format
-no-json
Ignore a criação do relatório no formato JSON. - Opcional
-security int
Configure o nível de segurança. Insira um valor entre 0 e 100.
Skips the report generation in the JSON format
-quiet
No output logs of execution
-security float
Set the Security level, values between 0 and 100 (default 0)
-target string
Especifique onde procurar os arquivos e executar um conjunto de regras específico.
-target <folder>
-target <myprojectfolder>
Specify where to look for files to run the specific ruleset
-tech string
Especifique qual conjunto de regras de tecnologia deve ser carregado. Os valores válidos são: android, ios, csharp e javascript.
-tech javascript
-tech csharp
-v Defina uma saída detalhada (verbosa).
Exemplos de uso:
insider -tech javascript -target <myprojectfolder>
insider -tech=android -target=<myandroidfolder>
insider -tech android -target <myfolder> -no-html
Specify which technology ruleset to load
-v Enable verbose output
-version
Show version and quit with exit code 0
Supported technologies:
android
java
ios
javascript
csharp
Example of use:
# Run JavaScript analysis on specific directoty
insider -tech javascript -target <directory>
# Run Android analysis on specific directoty and ignore html and json report
insider -tech android -target <directory> -no-html -no-json
# Run Java analysis on specific directoty with a base security value to fail
insider -tech java -target <directory> -security 20
# Run JavaScript analysis on specific directoty and exclude node_modules and test files
insider -tech javascript -target <directory> -exclude tests/* -exclude node_modules/*
```

---
Expand All @@ -85,9 +91,8 @@ Exemplos de uso:

```bash
# Check the correct release for your environment
$ mkdir insider && cd insider
$ wget https://github.com/insidersec/insider/releases/download/2.0.5/insider_2.0.5_linux_x86_64.tar.gz
$ tar -xf insider_2.0.5_linux_x86_64.tar.gz
$ wget https://github.com/insidersec/insider/releases/download/2.1.0/insider_2.1.0_linux_x86_64.tar.gz
$ tar -xf insider_2.1.0_linux_x86_64.tar.gz
$ chmod +x insider
$ ./insider --tech javascript --target <projectfolder>
```
Expand All @@ -109,7 +114,7 @@ $ ./insider --tech javascript --target <projectfolder>
Para compilar o Insider manualmente você vai precisar do [Go version 1.13](https://golang.org/dl/).

```bash
$ go get github.com/insidersec/insider
$ go get github.com/insidersec/insider/cmd/insider
```
---
### Licença
Expand Down

0 comments on commit fb84015

Please sign in to comment.