Skip to content

justin-p/PSDNSDumpsterAPI

Repository files navigation

PSDNSDumpsterAPI

License AppveyorBuild CodacyGrade PowerShellGalleryVersion PowerShellGalleryDownloads

Description

(Unofficial) PowerShell API for htttps://www.dnsdumpster.com

Introduction

This module enables you to query dnsdumpster from the PowerShell commandline.

Requirements

Installation

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.

Features

Return the results from dnsdumpster as a PSObject.

GetDomains

Use the magic of powershell objects to comb through the data.

ShowDomainInfo

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"

SaveDomainImg

Saving this in bulk is really easy !

$DomainInfo | ForEach-Object {[System.Convert]::FromBase64String($_.DNSDumpsterObject.Excel.ContentInBytesBase64Encoded) | Set-Content -Encoding Byte -Path $($_.DomainName + ".xlsx")}

BulkExcel

Versions

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.

Contribute

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.

Other Information

Author: Justin Perdok

Website: PSDNSDumpsterAPI

Releases

No releases published

Packages

No packages published