Advertisement
Guest User

VPN Checker

a guest
Sep 27th, 2017
1,780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. namespace Intoxicated.API.Xbox.IP_Detector
  2. {
  3.     using System;
  4.     using System.Collections.Generic;
  5.     using System.Linq;
  6.     using System.Net;
  7.     using System.Text;
  8.     using System.Threading.Tasks;
  9.  
  10.     class Detect
  11.     {
  12.         public static string Check(string ip)
  13.         {
  14.             try
  15.             {
  16.                 string email = $"skull{new Random().Next(0,100)}@yahoo.com";
  17.                 string link = $"http://check.getipintel.net/check.php?ip={ip}&contact={email}&flags=m";
  18.                 string resp = new WebClient { Proxy = null }.DownloadString(link);
  19.                 return resp == "0" ? "HOME" : "VPN/PROXY";
  20.             }
  21.             catch (Exception)
  22.             {
  23.                 return "N/A";
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement