Skip to content

Commit

Permalink
Merge pull request #390 from owasp-noir/update-docs
Browse files Browse the repository at this point in the history
Update-docs
  • Loading branch information
hahwul authored Sep 13, 2024
2 parents 83455f0 + 3163266 commit 22df8d4
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/_advanced/tips/pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ nav_order: 3
layout: page
---

Pipeline
Coming Soon!
8 changes: 8 additions & 0 deletions docs/_get_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,28 @@ layout: page

You can install the tool using various package managers. Each package manager has its own dedicated page with detailed instructions. Please refer to the specific pages for comprehensive installation steps.

> You can use Homebrew on macOS, Snapcraft or Homebrew on Linux, and on all operating systems including Windows, you can use Docker or a directly built version.
## Homebrew

```shell
brew install noir
```

[Learn more](/noir/get_started/installation/homebrew/)

## Snapcraft

```shell
sudo snap install noir
```

[Learn more](/noir/get_started/installation/snapcraft/)

## Docker (GHCR)

```bash
docker pull ghcr.io/owasp-noir/noir:latest
```

[Learn more](/noir/get_started/installation/docker/)
10 changes: 9 additions & 1 deletion docs/_get_started/installation/snapcraft.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ Snapcraft is a powerful package manager for Linux that enables you to easily ins

Ensure you have Snap installed on your system. You can install Snap using your distribution's package manager. For example, on Ubuntu, you can run:

## Install snapcraft
### Ubuntu
```bash
sudo apt update
sudo apt install snapd
```

Install noir with Snapcraft:
### Other linux

Snapcraft provides installation for various operating systems. Please refer to the document below.

[https://snapcraft.io/docs/installing-snapd](https://snapcraft.io/docs/installing-snapd)

## Install noir with Snapcraft

```shell
sudo snap install noir
Expand Down
17 changes: 16 additions & 1 deletion docs/_get_started/output/curl.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
title: CURL
title: Curl and HTTPie
parent: Output Formatting
has_children: false
nav_order: 3
layout: page
---

## Curl

```bash
noir -b . -f curl -u https://www.hahwul.com

Expand All @@ -15,4 +17,17 @@ noir -b . -f curl -u https://www.hahwul.com
# curl -i -X GET https://www.hahwul.com/socket
# curl -i -X GET https://www.hahwul.com/1.html
# curl -i -X GET https://www.hahwul.com/2.html
```

## HTTPie

```bash
noir -b . -f httpie -u https://www.hahwul.com

# http GET https://www.hahwul.com/ "x-api-key: "
# http POST https://www.hahwul.com/query "query=" "Cookie: my_auth="
# http GET https://www.hahwul.com/token "client_id=&redirect_url=&grant_type="
# http GET https://www.hahwul.com/socket
# http GET https://www.hahwul.com/1.html
# http GET https://www.hahwul.com/2.html
```
18 changes: 17 additions & 1 deletion docs/_get_started/output/json.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: JSON
title: JSON & JSONL
parent: Output Formatting
has_children: false
nav_order: 1
layout: page
---

## JSON
```bash
noir -b . -f json --no-log
```
Expand Down Expand Up @@ -45,4 +46,19 @@ noir -b . -f json --no-log
"protocol": "http",
"tags": []
}
```

## JSONL

```bash
noir -b . -f jsonl --no-log
```

```json
{"url":"/","method":"GET","params":[{"name":"x-api-key","value":"","param_type":"header","tags":[]}],"details":{"code_paths":[{"path":"./spec/functional_test/fixtures/crystal_kemal/src/testapp.cr","line":3}]},"protocol":"http","tags":[]}
{"url":"/query","method":"POST","params":[{"name":"my_auth","value":"","param_type":"cookie","tags":[]},{"name":"query","value":"","param_type":"form","tags":[]}],"details":{"code_paths":[{"path":"./spec/functional_test/fixtures/crystal_kemal/src/testapp.cr","line":8}]},"protocol":"http","tags":[]}
{"url":"/token","method":"GET","params":[{"name":"client_id","value":"","param_type":"form","tags":[]},{"name":"redirect_url","value":"","param_type":"form","tags":[]},{"name":"grant_type","value":"","param_type":"form","tags":[]}],"details":{"code_paths":[{"path":"./spec/functional_test/fixtures/crystal_kemal/src/testapp.cr","line":13}]},"protocol":"http","tags":[]}
{"url":"/socket","method":"GET","params":[],"details":{"code_paths":[{"path":"./spec/functional_test/fixtures/crystal_kemal/src/testapp.cr","line":19}]},"protocol":"ws","tags":[]}
{"url":"/1.html","method":"GET","params":[],"details":{"code_paths":[]},"protocol":"http","tags":[]}
{"url":"/2.html","method":"GET","params":[],"details":{"code_paths":[]},"protocol":"http","tags":[]}
```
14 changes: 6 additions & 8 deletions docs/_get_started/output/more.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ nav_order: 4
layout: page
---

## httpie
## Open API Spec

```bash
noir -b . -f httpie -u https://www.hahwul.com
# noir -b . -f oas3
# noir -b . -f oas2
```

# http GET https://www.hahwul.com/ "x-api-key: "
# http POST https://www.hahwul.com/query "query=" "Cookie: my_auth="
# http GET https://www.hahwul.com/token "client_id=&redirect_url=&grant_type="
# http GET https://www.hahwul.com/socket
# http GET https://www.hahwul.com/1.html
# http GET https://www.hahwul.com/2.html
```json
{"openapi":"3.0.0","info":{"title":"Generated by Noir","version":""},"paths":{"/":{"get":{"responses":{"200":{"description":"Successful response"}},"parameters":[{"name":"x-api-key","in":"header"}]}},"/query":{"post":{"responses":{"200":{"description":"Successful response"}},"parameters":[{"name":"my_auth","in":"query"},{"name":"query","in":"formData"}]}},"/token":{"get":{"responses":{"200":{"description":"Successful response"}},"parameters":[{"name":"client_id","in":"formData"},{"name":"redirect_url","in":"formData"},{"name":"grant_type","in":"formData"}]}},"/socket":{"get":{"responses":{"200":{"description":"Successful response"}},"parameters":[]}},"/1.html":{"get":{"responses":{"200":{"description":"Successful response"}},"parameters":[]}},"/2.html":{"get":{"responses":{"200":{"description":"Successful response"}},"parameters":[]}}}}
```

## Only-x
Expand Down
Binary file added docs/images/illust.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ nav_order: 1
OWASP Noir is an open-source project, specializing in identifying attack surfaces for enhanced whitebox security testing and security pipeline.

[Get started now](./get_started/installation/){: .btn .btn-blue }
[View it on Github](https://github.com/owasp-noir/noir){: .btn }
[View it on OWASP Project](https://owasp.org/www-project-noir){: .btn }
[Github](https://github.com/owasp-noir/noir){: .btn }
[OWASP](https://owasp.org/www-project-noir){: .btn }

![](./images/illust.jpg)

0 comments on commit 22df8d4

Please sign in to comment.