Skip to content

Commit

Permalink
add config/51pwn/nsqd.yaml 2023-04-25
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Apr 25, 2023
1 parent 012c375 commit fcc6750
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
1 change: 1 addition & 0 deletions brute/dicts/filedic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/login.jsp
/stats.json
/.well-known/security.txt
/admin/export?format=json
../../../../../../../../../../../../../../../../../../usr/local/cpanel/logs/login_log%00
../../../../../../../../../../../../../../../../../../usr/local/cpanel/logs/login_log
../../../../../../../../../../../../../../../../../usr/local/cpanel/logs/login_log
Expand Down
73 changes: 73 additions & 0 deletions config/51pwn/nsqd.yaml
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

2 changes: 1 addition & 1 deletion config/nuclei-templates
Submodule nuclei-templates updated 715 files
2 changes: 1 addition & 1 deletion tools/The-Hacker-Recipes

0 comments on commit fcc6750

Please sign in to comment.