Giter VIP home page Giter VIP logo

psdnsdumpsterapi's Introduction

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

psdnsdumpsterapi's People

Contributors

justin-p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

psdnsdumpsterapi's Issues

Store ByteArray encoded with Base64

Storing the image as a byte array limits readability of the PSObject when converting to other output types (xlsx, json, xml etc). To avoid this we could store the byte array encoded in Base64.

Add Excel to PSObject

DNSDumpster has an excel file containing info about the domain. Added the parsing logic to Convert-PSDNSDumpsterAPIDomainInfo.ps1, but this only works on justin-p.me.

Code a more stable parsing method that does not rely on current logic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.