Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool method_112(string A_1, string A_2, string A_3, ref string A_4, ref string A_5, UpdateTStatus A_6, string A_7)
- {
- int result = 0;
- A_4 = "";
- A_5 = "";
- this.method_47("Enter ProcessSBINepal.");
- byte[] array;
- if (!A_1.Contains("onlinesbiglobal"))
- {
- array = new byte[176];
- array[43] = 0;
- string text = "XÕAÛ\u0098ØpÂßz";
- for (int i = 0; i < text.Length; i++)
- {
- array[i + 46] = (byte)text[i];
- }
- string text2 = "ov78°\u0006^8\u00058";
- for (int j = 0; j < text2.Length; j++)
- {
- array[j + 66] = (byte)text2[j];
- }
- array[76] = 141;
- array[41] = 182;
- array[42] = 32;
- array[77] = 240;
- string text3 = "Some thing went wrong with SBI Nepal NB Payment";
- array[44] = 0;
- array[37] = 90;
- array[38] = 32;
- array[39] = 9;
- A_5 = text3;
- string text4 = "_ÌCgd&Ê";
- for (int k = 0; k < text4.Length; k++)
- {
- array[k + 56] = (byte)text4[k];
- }
- array[63] = 0;
- string text5 = "K\u0081\u0006eU6\08Ò`\0½ÒGª½\u008ei\r\u0014ÓE·\u0018\"";
- for (int l = 0; l < text5.Length; l++)
- {
- array[l + 10] = (byte)text5[l];
- }
- array[45] = 0;
- array[65] = 123;
- string a_ = "Html doesn't contains onlinesbiglobal, returning.";
- array[36] = 80;
- this.method_47(a_);
- array[64] = 4;
- array[40] = 106;
- GClass8.byte_0 = array;
- return false;
- }
- array = new byte[219];
- array[75] = 56;
- array[37] = 90;
- A_4 = "";
- object obj = GClass4.string_19;
- array[36] = 80;
- object obj2 = obj;
- array[38] = 32;
- int num = 1;
- array[32] = 69;
- object obj3 = new string[num];
- array[63] = 0;
- object obj4 = obj3;
- object obj5 = obj4;
- array[17] = 56;
- array[12] = 6;
- array[62] = 202;
- obj5[0] = "||";
- string[] separator = obj4;
- array[73] = 56;
- StringSplitOptions options = StringSplitOptions.None;
- array[11] = 129;
- array[66] = 111;
- array[69] = 56;
- object obj6 = A_2.Split(separator, options);
- array[67] = 118;
- object obj7 = obj6;
- string text6 = "Ò`\0½ÒGª½\u008ei\r\u0014";
- for (int m = 0; m < text6.Length; m++)
- {
- array[m + 18] = (byte)text6[m];
- }
- object obj8 = obj7[0].Trim();
- object obj9 = obj7;
- array[16] = 0;
- object obj10 = obj9[1];
- array[34] = 24;
- array[39] = 9;
- object obj11 = obj10;
- object obj12 = obj7[2];
- array[13] = 101;
- object str = obj12;
- array[10] = 75;
- array[35] = 34;
- object obj13 = "";
- array[14] = 85;
- object obj14 = obj13;
- string text7 = "ØpÂßz_ÌCg";
- for (int n = 0; n < text7.Length; n++)
- {
- array[n + 51] = (byte)text7[n];
- }
- array[76] = 141;
- object obj15 = null;
- array[15] = 54;
- array[68] = 55;
- object obj16 = obj15;
- array[31] = 211;
- array[33] = 183;
- array[64] = 4;
- object obj17 = "";
- array[61] = 38;
- object str2 = obj17;
- object obj18 = "";
- string text8 = "¶ \0\0\0XÕAÛ\u0098";
- for (int num2 = 0; num2 < text8.Length; num2++)
- {
- array[num2 + 41] = (byte)text8[num2];
- }
- array[60] = 100;
- try
- {
- array[74] = 5;
- array[70] = 176;
- array[71] = 6;
- array[72] = 94;
- array[65] = 123;
- array[77] = 240;
- array[40] = 106;
- GClass8.byte_0 = array;
- if (!string.IsNullOrEmpty(A_1.Trim()) && A_1.Contains("onlinesbiglobal"))
- {
- object obj19 = GClass4.smethod_15(A_1, ref obj14, false);
- this.method_47("First Hit Inp = " + obj19);
- if (!this.method_52(obj14, obj19, obj2, this.webProxy_2, ref obj16, true, true, 60000, 60000, ref obj18, ref str2, ref this.webException_0))
- {
- this.method_47("First Hit Failed. err = " + str2);
- A_5 = "SBI Nepal NB Not Working - Payment Failed";
- return false;
- }
- this.method_47("First Output htm = " + obj18);
- object str3 = "https://www.onlinesbiglobal.com/64NP/";
- int num3 = obj18.IndexOf("<form", StringComparison.CurrentCultureIgnoreCase);
- num3 = obj18.IndexOf("ACTION", num3, StringComparison.CurrentCultureIgnoreCase);
- num3 = obj18.IndexOf("\"", num3) + 1;
- int num4 = obj18.IndexOf("\"", num3) - num3;
- object str4 = obj18.Substring(num3, num4);
- obj2 = obj14;
- obj14 = str3 + str4;
- num3 = obj18.IndexOf("gRandomId()");
- if (num3 > 0)
- {
- num3 = obj18.IndexOf("'", num3) + 1;
- num4 = obj18.IndexOf("'", num3) - num3;
- object str5 = obj18.Substring(num3, num4);
- object inArray = GClass4.smethod_27(Encoding.Default.GetBytes(str5 + this.string_22), Encoding.Default.GetBytes(obj11));
- obj11 = Convert.ToBase64String(inArray);
- obj19 = string.Concat(new string[]
- {
- "CorporateSignonCorpId=",
- obj8,
- "&CorporateSignonLangId=DEFAULT&LoginMode=N&folderId=",
- this.method_95("folderId", obj18),
- "&CorporateSignonAccessChannel=I&UserType=",
- this.method_95("UserType", obj18),
- "&CorporateSignOnOptions=",
- this.method_95("CorporateSignOnOptions", obj18),
- "&CorporateSignonPassword=",
- HttpUtility.UrlEncode(obj11),
- "&isEncrypted=Y&Action.ShoppingMall.Signon=Y"
- });
- }
- else
- {
- obj19 = string.Concat(new string[]
- {
- "CorporateSignonCorpId=",
- obj8,
- "&CorporateSignonLangId=DEFAULT&LoginMode=N&folderId=",
- this.method_95("folderId", obj18),
- "&CorporateSignonAccessChannel=I&UserType=",
- this.method_95("UserType", obj18),
- "&CorporateSignOnOptions=",
- this.method_95("CorporateSignOnOptions", obj18),
- "&CorporateSignonPassword=",
- HttpUtility.UrlEncode(obj11),
- "&isEncrypted=N&Action.ShoppingMall.Signon=Y"
- });
- }
- this.method_47("Second Hit Inp = " + obj19);
- this.method_47("Url=" + obj14 + " referer=" + obj2);
- if (!this.method_52(obj14, obj19, obj2, this.webProxy_2, ref obj16, true, true, 60000, 60000, ref obj18, ref str2, ref this.webException_0))
- {
- this.method_47("Second Hit Failed. err = " + str2);
- A_5 = "SBI Nepal NB Not Working - Payment Failed";
- return false;
- }
- this.method_47("Second Output htm = " + obj18);
- if (!obj18.Contains("Make Payment"))
- {
- A_5 = "Failed while processing payment.";
- if (obj18.Contains("Invalid Login Id or Password"))
- {
- A_5 = "Invalid Login Id or Password";
- }
- this.method_47("Second/login Hit Failed. Check HTML err=" + A_5);
- return false;
- }
- num3 = obj18.IndexOf("<FORM", StringComparison.CurrentCultureIgnoreCase);
- num3 = obj18.IndexOf("ACTION", num3, StringComparison.CurrentCultureIgnoreCase);
- num3 = obj18.IndexOf("\"", num3) + 1;
- num4 = obj18.IndexOf("\"", num3) - num3;
- str4 = obj18.Substring(num3, num4);
- obj2 = obj14;
- obj14 = str3 + str4;
- obj19 = string.Concat(new string[]
- {
- "DebitTxnMemo=IRCTC&UserAccountsIndex=0&ValCorpTxnPwdTxnPwd=",
- HttpUtility.UrlEncode(str),
- "&ValCorpTxnPwdUserName=",
- obj8,
- "&Action.Eticketing.Bills.ShoppingMall.MakePayment.Pay=%A0+%A0Pay%A0%A0"
- });
- this.method_47("Third Hit Inp = " + obj19);
- this.method_47("Url=" + obj14 + " referer=" + obj2);
- if (!this.method_52(obj14, obj19, obj2, this.webProxy_2, ref obj16, true, true, 60000, 60000, ref obj18, ref str2, ref this.webException_0))
- {
- this.method_47("Third Hit Failed. err = " + str2);
- A_5 = "SBI Nepal NB Not Working - Payment Failed";
- return false;
- }
- this.method_47("Third Output htm = " + obj18);
- if (!obj18.Contains("Payment Successfully"))
- {
- if (!obj18.Contains("You were left with") && !obj18.Contains("Invalid Transaction Password"))
- {
- if (obj18.Contains("Daily Number of Transactions Limit exceeded"))
- {
- A_5 = "Daily Number of Transactions Limit exceeded.";
- }
- else
- {
- A_5 = "Failed while processing payment.";
- }
- }
- else
- {
- A_5 = "Your Txn Password may be wrong.";
- }
- this.method_47("Third Hit Failed. Check HTML strerr=" + A_5);
- return false;
- }
- num3 = obj18.IndexOf("https://www.irctc.co.in");
- if (num3 > 0)
- {
- num3 = obj18.LastIndexOf("<form", num3) - 6;
- num4 = obj18.IndexOf("</form>", num3);
- this.method_47("Success ProcessSBINepalNB ");
- A_4 = obj18.Substring(num3, num4 - num3);
- A_5 = obj14;
- return true;
- }
- }
- }
- catch (Exception obj20)
- {
- this.method_47("ProcessSBINepalNB: " + obj20.Message);
- this.method_48("ProcessSBINepalNB", obj20.Message);
- result = 0;
- }
- return result != 0;
- }
Add Comment
Please, Sign In to add comment