Migration

This commit is contained in:
Alexandre MOTTIER 2024-10-14 14:19:12 +02:00
parent 151f7e1c5e
commit 88741e550d
3 changed files with 13 additions and 1 deletions

BIN
GetMXServer.exe Normal file

Binary file not shown.

12
GetMXServer.ps1 Normal file
View File

@ -0,0 +1,12 @@
Write-Host -ForegroundColor Yellow "...::: Récupération des enregistrements MX pour un domaine DNS :::..."
while(0 -ne 1)
{
$domain = Read-Host "Entrez le nom du domaine à vérifier"
Resolve-DnsName -Name $domain -Type MX | sort Preference -desc | ft Name,NameExchange,Preference
# $publicip = (Resolve-DnsName -Name $domain).Address
# $ShodanLink = "https://api.shodan.io/shodan/host/" + $publicip + "?key=9r6vVczYqYGR9F3WADASttMPt6fqK2Mm"
# $Shodan = Invoke-RestMethod -uri $ShodanLink
# $operateur = $Shodan.isp
# Write-Host -ForegroundColor Yellow "L'opérateur télécom de l'IP $publicip ($domain) est $operateur ."
}

View File

@ -1,2 +1,2 @@
# GetMXServer
PowerShell tool to get MX Servers for a domain