(Unofficial) PowerShell API for htttps://www.dnsdumpster.com
This module enables you to query dnsdumpster from the PowerShell commandline.
PowerShell Gallery (PS 5.0, Preferred method)
install-module PSDNSDumpsterAPI
Manual Installation
iex (New-Object Net.WebClient).DownloadString("https://github.com/justin-p/PSDNSDumpsterAPI/raw/master/Install.ps1")
Or clone this repository to your local machine, extract, go to the .\releases\PSDNSDumpsterAPI directory and import the module to your session to test, but not install this module.
Return the results from dnsdumpster as a PSObject.
Use the magic of powershell objects to comb through the data.
The image and the Excel file of the domain is added to the PSObject as a base64 encoded byte array. Use [System.Convert]::FromBase64String()
and Set-Content
to save the data to disk.
[System.Convert]::FromBase64String($domaininfo[0].DNSDumpsterObject.Image.ContentInBytesBase64Encoded) | Set-Content -Encoding Byte -Path "out.png"
Saving this in bulk is really easy !
$DomainInfo | ForEach-Object {[System.Convert]::FromBase64String($_.DNSDumpsterObject.Excel.ContentInBytesBase64Encoded) | Set-Content -Encoding Byte -Path $($_.DomainName + ".xlsx")}
0.0.1 - Initial Release.
0.0.2 - Alpha build.
0.0.3 - Replaced parsing with html agility pack.
0.0.4 - Added back missing functionalities. Data (excel, img) is now stored as byte array in encoded Base64 instead of a 'plain' byte array.
Please feel free to contribute by opening new issues or providing pull requests. For the best development experience, open this project as a folder in Visual Studio Code and ensure that the PowerShell extension is installed.
Author: Justin Perdok
Website: PSDNSDumpsterAPI