Jump to content
Sign in to follow this  
  • entries
    2
  • comments
    2
  • views
    103

Entries in this blog

 

need some help for null wowonder native app v2

i found good news about crypt of this version  i need someone can change it for me 
this is form current.cs class original

i will try tomorrow  changing 
public bool IsValidKey = false; to public bool IsValidKey = true;😁😁😁😁
and app will start hihihiihih 
or maybe let it and remove string of PurchaseCode from this class and from login and register using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Http; using System.Net.Security; using System.Threading.Tasks; using WoWonder_API.Classes.Global; namespace WoWonder_API { public class Current { public bool IsValidKey = false; private static Current currentInstance; public string Access_token; private Current() { } public string ServerKey { get; set; } = ""; public string UserID { get; set; } public string SetConnectionType { get; set; } public IMethods Function { get; set; } public static Current CurrentInstance { get { if (Current.currentInstance == null) Current.currentInstance = new Current(); return Current.currentInstance; } } public static void DisposeInstance() { if (Current.currentInstance == null) return; Current.currentInstance = (Current) null; } public void SetWebsiteURL(string website, string serverkey) { try { this.Function = new IMethods(); this.Function.CounterofError = 5; Client.WebsiteUrl = website; Current.CurrentInstance.ServerKey = serverkey; } catch (Exception ex) { Console.WriteLine((object) ex); } } public static async Task<JObject> GetWoWonder_Settings(string PurchaseCode, string Website, string ServerKey, string application_Type) { try { string PersonalFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal); string filePath_Messenger = Path.Combine(PersonalFolder, Current.CurrentInstance.Function.Binarydata("d2FlbA==")); string filePath_Timeline = Path.Combine(PersonalFolder, Current.CurrentInstance.Function.Binarydata("d3Q=")); ServicePointManager.ServerCertificateValidationCallback += (RemoteCertificateValidationCallback) ((sender, certificate, chain, sslPolicyErrors) => true); Current.CurrentInstance.ServerKey = ServerKey; if (application_Type == "Android_Messenger") { if (Directory.Exists(filePath_Messenger)) throw new Exception(Current.CurrentInstance.Function.Binarydata("eW91IGhhdmUgYmVlbiBibG9ja2Vk")); } else if (application_Type == "Android_Timeline" && Directory.Exists(filePath_Timeline)) throw new Exception(Current.CurrentInstance.Function.Binarydata("eW91IGhhdmUgYmVlbiBibG9ja2Vk")); if ((uint) Current.CurrentInstance.Function.CounterofError > 0U) { if (string.IsNullOrEmpty(Client.WebsiteUrl)) throw new Exception(Current.CurrentInstance.Function.Binarydata("WW91ciB3ZWJzaXRlIFVSTCBpcyBFbXB0eQ==")); using (HttpClient client = new HttpClient()) { FormUrlEncodedContent SiteValues = new FormUrlEncodedContent((IEnumerable<KeyValuePair<string, string>>) new KeyValuePair<string, string>[2] { new KeyValuePair<string, string>("purchase_code", PurchaseCode), new KeyValuePair<string, string>("domain", Website) }); using (HttpClient clientSite = new HttpClient()) { HttpResponseMessage httpResponseMessage1 = await clientSite.PostAsync("http://application.wowonder.com/", (HttpContent) SiteValues); HttpResponseMessage responseSite = httpResponseMessage1; httpResponseMessage1 = (HttpResponseMessage) null; responseSite.EnsureSuccessStatusCode(); string str1 = await responseSite.Content.ReadAsStringAsync(); string json = str1; str1 = (string) null; SiteObject data = (SiteObject) JsonConvert.DeserializeObject<SiteObject>(json); if (!(data.Status == "200")) throw new Exception(data.Message); FormUrlEncodedContent SettingsValues = new FormUrlEncodedContent((IEnumerable<KeyValuePair<string, string>>) new KeyValuePair<string, string>[1] { new KeyValuePair<string, string>("server_key", ServerKey) }); HttpResponseMessage httpResponseMessage2 = await client.PostAsync(Current.URLS.UrlInstance.API_Get_Site_Settings, (HttpContent) SettingsValues); HttpResponseMessage responseSettings = httpResponseMessage2; httpResponseMessage2 = (HttpResponseMessage) null; responseSettings.EnsureSuccessStatusCode(); string str2 = await responseSettings.Content.ReadAsStringAsync(); string jsonSettings = str2; str2 = (string) null; Dictionary<string, object> dataSettings = (Dictionary<string, object>) JsonConvert.DeserializeObject<Dictionary<string, object>>(jsonSettings); string apiStatusSettings = dataSettings["api_status"].ToString(); if (apiStatusSettings == "200") { JObject settings = JObject.FromObject(dataSettings["config"]); if (application_Type == "Android_Messenger") { if (ServerKey == ((object) settings.get_Item("widnows_app_api_key")).ToString()) { if (((object) settings.get_Item(Current.CurrentInstance.Function.Binarydata("Zm9vdGVyX2JhY2tncm91bmQ="))).ToString() != "#aaa") { Current.CurrentInstance.IsValidKey = false; --Current.CurrentInstance.Function.CounterofError; if (Current.CurrentInstance.Function.CounterofError == 0) throw new Exception(Current.CurrentInstance.Function.Binarydata("WW91ciBhcHBsaWNhdGlvbiBpcyBiYW5uZWQgZnJvbSB1c2UgLCBZb3UgY2Fubm90IGFueW1vcmUgdXNlIGl0IG9uIHlvdXIgZG9tYWluIG5hbWUgDQpDb250YWN0IHRoZSBTdXBwb3J0IHRlYW0gb3IgYnV5IHRoZSBsaWNlbnNlIA==")); if (Current.CurrentInstance.Function.CounterofError == 1) throw new Exception(Current.CurrentInstance.Function.Binarydata("V2FybmluZyEhIExhc3QgZmFpbCBhbmQgYXR0ZW1wdCBhbmQgeW91ciBkb21haW4gbmFtZSB3aWxsIGJlIGJsb2NrZWQgZnJvbSB1c2U=")); throw new Exception(Current.CurrentInstance.Function.Binarydata("VmVyaWZ5IHlvdXIgYXBwbGljYXRpb24gZnJvbSB5b3VyIGFkbWluIHBhbmVsIHlvdSBoYXZlIHN0aWxsIA==") + (object) Current.CurrentInstance.Function.CounterofError + " " + Current.CurrentInstance.Function.Binarydata("QXR0ZW1wdHM=")); } Current.CurrentInstance.IsValidKey = true; return settings; } Current.CurrentInstance.IsValidKey = false; throw new Exception(Current.CurrentInstance.Function.Binarydata("U2VydmVyIGtleSBpcyBpbmNvcnJlY3Q=")); } if (application_Type == "Android_Timeline") { if (ServerKey == ((object) settings.get_Item("widnows_app_api_key")).ToString()) { if (((object) settings.get_Item(Current.CurrentInstance.Function.Binarydata("Zm9vdGVyX2JhY2tncm91bmRfbg=="))).ToString() != "#aaa") { Current.CurrentInstance.IsValidKey = false; --Current.CurrentInstance.Function.CounterofError; if (Current.CurrentInstance.Function.CounterofError == 0) throw new Exception(Current.CurrentInstance.Function.Binarydata("WW91ciBhcHBsaWNhdGlvbiBpcyBiYW5uZWQgZnJvbSB1c2UgLCBZb3UgY2Fubm90IGFueW1vcmUgdXNlIGl0IG9uIHlvdXIgZG9tYWluIG5hbWUgDQpDb250YWN0IHRoZSBTdXBwb3J0IHRlYW0gb3IgYnV5IHRoZSBsaWNlbnNlIA==")); if (Current.CurrentInstance.Function.CounterofError == 1) throw new Exception(Current.CurrentInstance.Function.Binarydata("V2FybmluZyEhIExhc3QgZmFpbCBhbmQgYXR0ZW1wdCBhbmQgeW91ciBkb21haW4gbmFtZSB3aWxsIGJlIGJsb2NrZWQgZnJvbSB1c2U=")); throw new Exception(Current.CurrentInstance.Function.Binarydata("VmVyaWZ5IHlvdXIgYXBwbGljYXRpb24gZnJvbSB5b3VyIGFkbWluIHBhbmVsIHlvdSBoYXZlIHN0aWxsIA==") + (object) Current.CurrentInstance.Function.CounterofError + " " + Current.CurrentInstance.Function.Binarydata("QXR0ZW1wdHM=")); } Current.CurrentInstance.IsValidKey = true; return settings; } Current.CurrentInstance.IsValidKey = false; throw new Exception(Current.CurrentInstance.Function.Binarydata("U2VydmVyIGtleSBpcyBpbmNvcnJlY3Q=")); } Current.CurrentInstance.IsValidKey = true; return settings; } Current.CurrentInstance.IsValidKey = false; JObject settings1 = JObject.FromObject(dataSettings["errors"]); string ErrorMsg = ((object) settings1.get_Item("error_text")).ToString(); if (!string.IsNullOrEmpty(ErrorMsg)) throw new Exception(ErrorMsg); return (JObject) null; } } } else { Current.CurrentInstance.IsValidKey = false; if (application_Type == "Android_Messenger") { if (!Directory.Exists(filePath_Messenger)) Directory.CreateDirectory(filePath_Messenger); } else if (application_Type == "Android_Timeline" && !Directory.Exists(filePath_Timeline)) Directory.CreateDirectory(filePath_Timeline); throw new Exception(Current.CurrentInstance.Function.Binarydata("eW91IGhhdmUgYmVlbiBibG9ja2Vk")); } } catch (Exception ex) { Current.CurrentInstance.IsValidKey = false; Console.WriteLine((object) ex); throw new Exception(ex.Message); } } public class URLS { public string API_Delete_Access_Token = Client.WebsiteUrl + "/api/delete-access-token?access_token=" + Current.CurrentInstance.Access_token; public string API_Set_browser = Client.WebsiteUrl + "/set-browser-cookie?access_token=" + Current.CurrentInstance.UserID; public string API_Get_User_data = Client.WebsiteUrl + "/api/get-user-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Many_Users_Data = Client.WebsiteUrl + "/api/get-many-users-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_User_Albums = Client.WebsiteUrl + "/api/get-user-albums?access_token=" + Current.CurrentInstance.Access_token; public string API_Create_Product = Client.WebsiteUrl + "/api/create-product?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Products = Client.WebsiteUrl + "/api/get-products?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Events = Client.WebsiteUrl + "/api/get-events?access_token=" + Current.CurrentInstance.Access_token; public string API_Go_To_Event = Client.WebsiteUrl + "/api/go-to-event?access_token=" + Current.CurrentInstance.Access_token; public string API_Interest_Event = Client.WebsiteUrl + "/api/interest-event?access_token=" + Current.CurrentInstance.Access_token; public string API_Create_Event = Client.WebsiteUrl + "/api/create-event?access_token=" + Current.CurrentInstance.Access_token; public string API_Follow_User = Client.WebsiteUrl + "/api/follow-user?access_token=" + Current.CurrentInstance.Access_token; public string API_Follow_Request_Action = Client.WebsiteUrl + "/api/follow-request-action?access_token=" + Current.CurrentInstance.Access_token; public string API_Block_User = Client.WebsiteUrl + "/api/block-user?access_token=" + Current.CurrentInstance.Access_token; public string API_Post_Actions = Client.WebsiteUrl + "/api/post-actions?access_token=" + Current.CurrentInstance.Access_token; public string API_Like_Page = Client.WebsiteUrl + "/api/like-page?access_token=" + Current.CurrentInstance.Access_token; public string API_Join_Group = Client.WebsiteUrl + "/api/join-group?access_token=" + Current.CurrentInstance.Access_token; public string API_Create_Story = Client.WebsiteUrl + "/api/create-story?access_token=" + Current.CurrentInstance.Access_token; public string API_Delete_Story = Client.WebsiteUrl + "/api/delete-story?access_token=" + Current.CurrentInstance.Access_token; public string API_Set_Chat_Typing_Status = Client.WebsiteUrl + "/api/set-chat-typing-status?access_token=" + Current.CurrentInstance.Access_token; public string API_Change_Chat_Color = Client.WebsiteUrl + "/api/change-chat-color?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Articles = Client.WebsiteUrl + "/api/get-articles?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Group_Data = Client.WebsiteUrl + "/api/get-group-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Page_Data = Client.WebsiteUrl + "/api/get-page-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Post_Data = Client.WebsiteUrl + "/api/get-post-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Update_User_Data = Client.WebsiteUrl + "/api/update-user-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Update_Group_Data = Client.WebsiteUrl + "/api/update-group-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Update_Page_Data = Client.WebsiteUrl + "/api/update-page-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Movies = Client.WebsiteUrl + "/api/get-movies?access_token=" + Current.CurrentInstance.Access_token; public string API_Create_Group = Client.WebsiteUrl + "/api/create-group?access_token=" + Current.CurrentInstance.Access_token; public string API_Create_Page = Client.WebsiteUrl + "/api/create-page?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Nearby_Users = Client.WebsiteUrl + "/api/get-nearby-users?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Blocked_Users = Client.WebsiteUrl + "/api/get-blocked-users?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Stories = Client.WebsiteUrl + "/api/get-stories?access_token=" + Current.CurrentInstance.Access_token; public string API_Delete_Conversation = Client.WebsiteUrl + "/api/delete-conversation?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Community = Client.WebsiteUrl + "/api/get-community?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_General_Data = Client.WebsiteUrl + "/api/get-general-data?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_User_Suggestions = Client.WebsiteUrl + "/api/get-user-suggestions?access_token=" + Current.CurrentInstance.Access_token; public string API_Send_Message = Client.WebsiteUrl + "/api/send-message?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Site_Settings = Client.WebsiteUrl + "/api/get-site-settings/"; public string API_Auth = Client.WebsiteUrl + "/api/auth/"; public string API_Create_Account = Client.WebsiteUrl + "/api/create-account/"; public string API_Reset_Password_Email = Client.WebsiteUrl + "/api/send-reset-password-email/"; public string API_Get_News_Feed_Cookie = Client.WebsiteUrl + "/app_api.php?application=phone&type=set_c&c="; public string API_Get_News_Feed = Client.WebsiteUrl + "/get_news_feed?user_id="; public string API_Get_News_Feed_Group = Client.WebsiteUrl + "/get_news_feed?group_id="; public string API_Get_News_Feed_Page = Client.WebsiteUrl + "/get_news_feed?page_id="; public string API_Get_News_Feed_Event = Client.WebsiteUrl + "/get_news_feed&event_id="; public string API_Get_News_Feed_SavedPost = Client.WebsiteUrl + "/get_news_feed?save_posts=true"; public string API_Get_News_Feed_Hashtag = Client.WebsiteUrl + "/get_news_feed?hashtag="; public string API_Get_News_Feed_Post = Client.WebsiteUrl + "/get_news_feed?post_id="; public string API_Get_Search_Gifs = "https://api.giphy.com/v1/gifs/search?api_key=b9427ca5441b4f599efa901f195c9f58&q="; public string API_Get_search = Client.WebsiteUrl + "/api/search?access_token=" + Current.CurrentInstance.Access_token; public string API_Get_Activities = Client.WebsiteUrl + "/api/get-activities?access_token=" + Current.CurrentInstance.Access_token; public string API_Delete_User = Client.WebsiteUrl + "/api/delete-user?access_token=" + Current.CurrentInstance.Access_token; private static Current.URLS urlInstance; private URLS() { } public static Current.URLS UrlInstance { get { if (Current.URLS.urlInstance == null) Current.URLS.urlInstance = new Current.URLS(); return Current.URLS.urlInstance; } } public static void DisposeInstance() { if (Current.URLS.urlInstance == null) return; Current.URLS.urlInstance = (Current.URLS) null; } } } } waiting for you ideas

Dicagand41

Dicagand41

Sign in to follow this  
×

Important Information

By using this site, you agree to our Terms of Use and Guidelines.