Migration
This commit is contained in:
parent
151f7e1c5e
commit
88741e550d
BIN
GetMXServer.exe
Normal file
BIN
GetMXServer.exe
Normal file
Binary file not shown.
12
GetMXServer.ps1
Normal file
12
GetMXServer.ps1
Normal 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 ."
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user