추가 출력 형식
only-url, only-param, markdown-table, Postman 컬렉션 등 특수 출력 형식입니다.
only-* 형식으로 필터링
스캔 결과에서 단일 유형의 데이터를 추출합니다.
URL만
noir scan . -f only-url
/
/query
/token
/socket
/1.html
/2.html
파라미터만
noir scan . -f only-param
query
client_id
redirect_url
grant_type
헤더만
noir scan . -f only-header
x-api-key
Cookie
쿠키만
noir scan . -f only-cookie
my_auth
태그만
noir scan . -f only-tag -T
sqli
oauth
websocket
마크다운 테이블
noir scan . -f markdown-table
| Endpoint | Protocol | Params |
|---|---|---|
| GET / | http | x-api-key (header) |
| POST /query | http | my_auth (cookie) query (form) |
| GET /token | http | client_id (form) redirect_url (form) grant_type (form) |
| GET /socket | ws | |
| GET /1.html | http | |
| GET /2.html | http |
TOML
noir scan . -f toml
[[endpoints]]
callees = []
url = "/"
method = "GET"
internal = false
details = { code_paths = [{ path = "src/testapp.cr", line = 3 }], technology = "crystal_kemal" }
protocol = "http"
kind = ""
tags = []
params = [{ name = "x-api-key", value = "", param_type = "header", tags = [] }]
[[endpoints]]
callees = []
url = "/query"
method = "POST"
internal = false
details = { code_paths = [{ path = "src/testapp.cr", line = 17 }], technology = "crystal_kemal" }
protocol = "http"
kind = ""
tags = []
params = [{ name = "my_auth", value = "", param_type = "cookie", tags = [] }, { name = "query", value = "", param_type = "form", tags = [] }]
설정 파일과 같은 형식이라 터미널에서 훑어보기 좋고, 엔드포인트를 다른 선언적 설정과 함께 프로젝트 설정에 붙여넣기에도 적합합니다. TOML 직렬화는 전체 엔드포인트 모델을 그대로 담으며 --include callee 와 --ai-context 플래그가 켜져 있을 때 그 필드도 포함합니다. --diff-path 와 함께 -f toml 을 쓰면 diff 결과도 같은 형식으로 출력됩니다.
JSON Lines (JSONL)
JSONL(-f jsonl)은 JSON 및 JSONL 페이지에서 JSON과 함께 다룹니다.
Postman 컬렉션
noir scan . -f postman -u https://api.example.com
Postman Collection v2.1 형식의 JSON 파일을 생성합니다. 출력을 저장한 뒤 Postman에 가져오면 바로 API를 테스트할 수 있습니다.
{
"info": {
"name": "Generated by Noir",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GET api.example.com/",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": ""
}
],
"url": {
"raw": "https://api.example.com/",
"host": ["api", "example", "com"],
"path": [],
"protocol": "https"
}
}
}
]
}