Skip to content

Ubaidjaffery/OneDriveEnumeration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OneDriveEnumeration

To assess a remote domain for OneDrive enumeration.

The Code

$domain = "example.com" # replace with your target domain
$vulnUrl = "https://$domain/personal/" # OneDrive URL to check

try {
$response = Invoke-WebRequest $vulnUrl -UseBasicParsing -ErrorAction Stop
$status = $response.StatusCode
} catch {
$status = $_.Exception.Response.StatusCode.Value__
}

if ($status -eq 200) {
Write-Host "OneDrive Enumeration possible on $domain"
} else {
Write-Host "OneDrive Enumeration not possible on $domain"
}

Explaination

In this code, we are using the Invoke-WebRequest cmdlet to make a request to the OneDrive URL for the remote domain. We are checking the status code of the response to determine if the OneDrive enumeration is possible or not.

About

To assess a remote domain for OneDrive enumeration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published