DD3AH

GreyNoiseDynDns

Dec 6th, 2025 (edited)
2,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | Cybersecurity | 0 0
  1. #!/usr/bin/python3
  2.  
  3. # Is your DynDNS-System abused?
  4. # Get your account here https://www.greynoise.io/ .
  5. # Then get your API-key.
  6. # Automate just before you get your new IP.
  7.  
  8. import requests
  9. import socket
  10.  
  11. url = "https://api.greynoise.io/v3/community/"
  12. url += socket.gethostbyname_ex("YOURDYNDNSNAME")[2][0]
  13.  
  14. headers = {
  15.     'key': '{{YOURAPIKEY}}'
  16. }
  17.  
  18. response = requests.request("GET", url, headers=headers)
  19.  
  20. print(response.text)
Advertisement