-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add config/51pwn/nsqd.yaml 2023-04-25
- Loading branch information
Showing
4 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
id: 51pwn_nsqd_admin | ||
info: | ||
name: 51pwn_nsqd_admin | ||
severity: high | ||
author: | ||
- 51pwn | ||
description: |- | ||
default nsqd admin | ||
pkill -9 nsqlookupd nsqd nsqadmin | ||
./nsqlookupd & | ||
./nsqd --lookupd-tcp-address=127.0.0.1:4160 & | ||
./nsqadmin --lookupd-http-address=127.0.0.1:4161 --http-address=0.0.0.0:8761 & | ||
http://192.168.1.172:8761/lookup | ||
pkill -9 nsqlookupd nsqd nsqadmin | ||
/usr/bin/curl -d 'hello world 1' -XPOST 'http://127.0.0.1:4151/pub?topic=hello%20word' | ||
/usr/bin/curl -XPOST 'http://127.0.0.1:4151/api/topic/create?topic=_51pwn&channel=_51pwn' | ||
nuclei -duc -t config/51pwn/nsqd.yaml -u http://127.0.0.1:8761 | ||
requests: | ||
# - raw: | ||
# - | | ||
# GET {{path1}} HTTP/1.1 | ||
# Host: {{Hostname}} | ||
|
||
# payloads: | ||
# path1: | ||
# - "/" | ||
# - "/lookup" | ||
# attack: clusterbomb | ||
# stop-at-first-match: true | ||
# matchers: | ||
# - type: word | ||
# part: body | ||
# words: | ||
# - '<title>nsqadmin</title>' | ||
# - "var USER_AGENT = 'nsqadmin/" | ||
# - 'var NSQLOOKUPD = ["' | ||
# condition: and | ||
- raw: | ||
- | | ||
POST /api/topics HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Length: 29 | ||
Accept: application/vnd.nsq; version=1.0 | ||
X-UserAgent: nsqadmin/v1.2.1 | ||
DNT: 1 | ||
X-Requested-With: XMLHttpRequest | ||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 | ||
Content-Type: application/json | ||
Origin: http://{{Hostname}} | ||
Referer: http://{{Hostname}}/lookup | ||
Accept-Encoding: gzip, deflate | ||
Accept-Language: en-US,en;q=0.9 | ||
Connection: close | ||
{"topic":"xx","channel":"xx"} | ||
stop-at-first-match: true | ||
matchers-condition: and | ||
matchers: | ||
- type: status | ||
status: | ||
- 200 | ||
- type: word | ||
part: body | ||
words: | ||
- '"message":""' | ||
- '{' | ||
- '}' | ||
condition: and | ||
|
||
redirects: false | ||
|
Submodule nuclei-templates
updated
715 files
Submodule The-Hacker-Recipes
updated
from 6ee6d7 to cc6fa9