Skip to content

Instantly share code, notes, and snippets.

@puzzlepeaches
Last active July 27, 2024 15:13
Show Gist options
  • Save puzzlepeaches/1107b0b9e0aa3a503f9416daf27483e8 to your computer and use it in GitHub Desktop.
Save puzzlepeaches/1107b0b9e0aa3a503f9416daf27483e8 to your computer and use it in GitHub Desktop.
Onedrive User Enumeration w/ Nuclei
id: onedrive-user-enum
info:
name: Onedrive user enumeration
author: ed
severity: info
description: Enumerate users in the target tenant's onedrive using nyxgeeks technique
variables:
tenant: "acmecom"
http:
- method: GET
path:
- "https://{{tenant}}-my.sharepoint.com/personal/{{replace(user, '.', '_')}}_{{replace(Host, '.', '_')}}/_layouts/15/onedrive.aspx"
redirects: false
headers:
User-Agent: "curl/7.64.1"
Accept: "*/*"
Host: "{{tenant}}-my.sharepoint.com"
attack: batteringram
payloads:
user: test.txt
matchers-condition: or
matchers:
- type: status
status:
- 401
- 403
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment