Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- # Is your DynDNS-System abused?
- # Get your account here https://www.greynoise.io/ .
- # Then get your API-key.
- # Automate just before you get your new IP.
- import requests
- import socket
- url = "https://api.greynoise.io/v3/community/"
- url += socket.gethostbyname_ex("YOURDYNDNSNAME")[2][0]
- headers = {
- 'key': '{{YOURAPIKEY}}'
- }
- response = requests.request("GET", url, headers=headers)
- print(response.text)
Advertisement