My First Application #204085
Unanswered
hughescorey094-ship-it
asked this question in
Apps, API and Webhooks
My First Application
#204085
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Apps
Body
please review and leave your thoughts thanks
import psutil, webbrowser, time, json, os
CFG = "vpn_config.json"
SUSP = ("185.220.", "104.28.")
PRIV = ("10.", "192.168.", "172.")
def load_vpn():
if os.path.exists(CFG):
return json.load(open(CFG)).get("vpn")
vpn = input("Enter VPN endpoint URL: ").strip()
json.dump({"vpn": vpn}, open(CFG, "w"))
return vpn
def suspicious(ip):
return ip.startswith(SUSP)
def whois(ip):
webbrowser.open(f"https://www.whois.net/ip-address-lookup/{ip}")
def monitor(vpn):
print(f"Monitoring via VPN: {vpn}\nCtrl+C to stop.\n")
seen = set()
inet = psutil.net_connections
sleep = time.sleep
if name == "main":
monitor(load_vpn())
All reactions