Skip to content

Commit

Permalink
Updated scan commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Prateek-Thakare committed Nov 30, 2023
1 parent 4562e4c commit d37e268
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/installation/installation-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ Considering that Mantis also includes mongoDB and AppSmith, we have provided a s
Clone the Mantis repository

```shell
$ git clone https://github.com/PhonePe/mantis.git
git clone https://github.com/PhonePe/mantis.git
```

cd into the Mantis directory

```shell
$ cd mantis/setup/docker
cd mantis/setup/docker
```

Run the respective docker setup file based on your OS

```shell
$ ./docker-setup-macos.sh
./docker-setup-macos.sh

$ ./docker-setup-ubuntu.sh
./docker-setup-ubuntu.sh
```
16 changes: 9 additions & 7 deletions src/scan/scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,30 @@ Mantis provides two modes to scan:

You want to onboard an org with its TLDs/IPs/IP-CIDRs/IP Range for the first time, use the onboard mode. This runs the scan on the default workflow.

You can use mantis command or directly run the framework using python3 launch.py.

#### TLD
```shell
$ python3 launch.py onboard -o org_name -t example.in
python3 launch.py onboard -o org_name -t example.in
```
#### IP
```shell
$ python3 launch.py onboard -o org_name -t 10.123.123.12
python3 launch.py onboard -o org_name -t 10.123.123.12
```

#### IP-Range
```shell
$ python3 launch.py onboard -o org_name -t 203.0.113.0-10
python3 launch.py onboard -o org_name -t 10.0.0.10-10
```

#### IP-CIDR
```shell
$ python3 launch.py onboard -o org_name -t 203.0.113.0/24
python3 launch.py onboard -o org_name -t 10.0.0.10/24
```

### Onboard Known Assets and Scan
```shell
$ python3 launch.py onboard -o org_name -f input.txt
python3 launch.py onboard -o org_name -f input.txt
```

### Scan on all assets belonging to an organisation
Expand All @@ -41,13 +43,13 @@ $ python3 launch.py onboard -o org_name -f input.txt
Now that you have onboarded, you just need to run scheduled scans for an org, you can just use the scan mode

```shell
$ python3 launch.py scan -o org_name
python3 launch.py scan -o org_name
```

### Scan on all assets belonging to an organisation and app
---

```shell
$ python3 launch.py scan -o org_name -a app_name
python3 launch.py scan -o org_name -a app_name
```

0 comments on commit d37e268

Please sign in to comment.