Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool method_95(string string_23, string string_24, string string_25, ref string string_26, ref string string_27, UpdateTStatus updateTStatus_1, string string_28)
- {
- int num = 0;
- string_26 = "";
- int num2 = 141;
- string_27 = "";
- this.method_30("Enter ProcessSBINepal.");
- int result;
- if (!string_23.Contains("onlinesbiglobal"))
- {
- string_27 = "Some thing went wrong with SBI Nepal NB Payment";
- this.method_30("Html doesn't contains onlinesbiglobal, returning.");
- result = 0;
- }
- else
- {
- string_26 = "";
- num2 -= 12;
- object obj = "https://www.irctc.co.in/eticketing/jpInput.jsf?cid=1";
- object string_29 = new string[]
- {
- "||"
- };
- object obj2 = IRComm.smethod_146(string_24, string_29, StringSplitOptions.None);
- object arg_91_0 = obj2;
- num2 -= 29;
- object obj3 = arg_91_0[0].Trim();
- object str = obj2[1];
- object obj4 = "";
- object obj5 = null;
- object str2 = "";
- object obj6 = "";
- try
- {
- num2 += 41;
- if (!string.IsNullOrEmpty(string_23.Trim()) && string_23.Contains("onlinesbiglobal"))
- {
- object obj7 = IRComm.GetBankRedirectInp(string_23, ref obj4, false);
- this.method_30("First Hit Inp = " + obj7);
- if (!this.method_33(obj4, obj7, obj, this.webProxy_2, ref obj5, true, true, 60000, 60000, ref obj6, ref str2, ref this.webException_0))
- {
- this.method_30("First Hit Failed. err = " + str2);
- string_27 = "SBI Nepal NB Not Working - Payment Failed";
- result = 0;
- return result != 0;
- }
- this.method_30("First Output htm = " + obj6);
- object obj8 = obj6.Substring(obj6.IndexOf("Click here to Change Image"));
- obj8 = obj8.Substring(obj8.IndexOf("src=") + 5);
- obj8 = obj8.Substring(0, obj8.IndexOf("\""));
- obj8 = "https://www.onlinesbiglobal.com/NPINB/" + obj8;
- object obj9 = new GForm10(this, obj5, obj8, obj4);
- obj9.object_12.Enabled = false;
- obj9.bool_0 = false;
- obj9.bool_1 = true;
- obj9.object_18.Text = "NEPAL Captcha";
- <Module>.smethod_314(obj9, this.control_0, this.rectangle_0);
- if (obj9.DialogResult != DialogResult.OK)
- {
- this.method_30("Captcha Cancel By User = " + str2);
- string_27 = "Captcha Cancel By User - Payment Failed";
- result = 0;
- return result != 0;
- }
- object obj10 = obj9.object_1.Text.Trim();
- obj7 = IRComm.GetBankRedirectInp3(obj6, ref obj4, false);
- obj4 = "https://www.onlinesbiglobal.com/NPINB/" + obj4;
- this.method_30("Second Hit Inp = " + obj7);
- obj7 = string.Concat(new string[]
- {
- "buffer=&AuthenticationFG.USER_PRINCIPAL=",
- obj3,
- "&AuthenticationFG.ACCESS_CODE=",
- HttpUtility.UrlEncode(str),
- "&MIN_LENGTH_OF_PASSWORD=6&PWD_SPECIAL_CHAR_MANDATORY=Y&PWDDIGITMAND=Y&PASSWORD_STRENGTH=Too+short%7CWeak%7CFair%7CStrong%7CVery+Strong&IMAGE_PATH=L001%2Fconsumer%2Fimages&AuthenticationFG.VERIFICATION_CODE=",
- obj10,
- "&Action.VALIDATE_CREDENTIALS_UX=Login&AuthenticationFG.MENU_ID=3&FG_BUTTONS__=VALIDATE_CREDENTIALS%2CSTU_VALIDATE_CREDENTIALS%2CVALIDATE_CREDENTIALS_DIG_CERT%2CBACK%2CCLEAR_VALUES&AuthenticationFG.IS_FIRST_AUTHENTICATION=Y&QS=ShoppingMallTranFG.TRAN_CRN%7EINR%7CShoppingMallTranFG.TXN_AMT%7E20.00%7CShoppingMallTranFG.PID%7E30%7CShoppingMallTranFG.PRN%7E100001210214631%7CShoppingMallTranFG.ITC%7Eabc&USER_ID_COOKIE=&CATEGORY_ID=VIV&AuthenticationFG.PREFERRED_LANGUAGE=001&userType=1&bankId=NSBL&languageId=001&FORMSGROUP_ID__=AuthenticationFG&AuthenticationFG.REPORTTITLE=AuthenticationScreen&RIA_TARGETS=null&JS_ENABLED_FLAG=Y&DECRYPT_FLAG=N&CHECKBOX_NAMES__=&Requestid=1&__JS_ENCRYPT_KEY__=",
- this.method_2("__JS_ENCRYPT_KEY__", obj6)
- });
- this.method_30("Url=" + obj4 + " referer=" + obj);
- if (!this.method_33(obj4, obj7, obj, this.webProxy_2, ref obj5, true, true, 60000, 60000, ref obj6, ref str2, ref this.webException_0))
- {
- this.method_30("Second Hit Failed. err = " + str2);
- string_27 = "SBI Nepal NB Not Working - Payment Failed";
- result = 0;
- return result != 0;
- }
- this.method_30("Second Output htm = " + obj6);
- if (!obj6.Contains("Initiate Payment"))
- {
- string_27 = "Failed while processing payment.";
- if (obj6.Contains("Invalid Login Id or Password"))
- {
- string_27 = "Invalid Login Id or Password";
- }
- this.method_30("Second/login Hit Failed. Check HTML err=" + string_27);
- result = 0;
- return result != 0;
- }
- obj = obj4;
- obj4 = obj6.Substring(obj6.IndexOf("baseUrl: ") + 10);
- obj4 = obj4.Substring(0, obj4.IndexOf("\""));
- obj4 = "https://www.onlinesbiglobal.com/NPINB/" + HttpUtility.UrlEncode(obj4);
- object values = new string[]
- {
- "criteria={\"WID_CONF\":\"PageConfigurationMaster_3W__1\",\"PARENT_MENU_FOR_REMOVE\":\"3\",\"GROUPLETS_IN_PAGE\":\"%2CPageConfigurationMaster_3W__1\"}&target=PageConfigurationMaster_3W__1&requestId=0"
- };
- obj7 = string.Concat(values);
- this.method_30("Third Hit Inp = " + obj7);
- this.method_30("Url=" + obj4 + " referer=" + obj);
- this.bool_11 = true;
- if (!this.method_33_nepal(obj4, obj7, obj, this.webProxy_2, ref obj5, true, true, 60000, 60000, ref obj6, ref str2, ref this.webException_0))
- {
- this.bool_11 = false;
- this.method_30("Third Hit Failed. err = " + str2);
- string_27 = "SBI Nepal NB Not Working - Payment Failed";
- result = 0;
- return result != 0;
- }
- this.bool_11 = false;
- this.method_30("Third Output htm = " + obj6);
- if (!obj6.Contains("Payment Successfully"))
- {
- if (obj6.Contains("You were left with") || obj6.Contains("Invalid Transaction Password"))
- {
- string_27 = "Your Txn Password may be wrong.";
- }
- else if (!obj6.Contains("Daily Number of Transactions Limit exceeded"))
- {
- string_27 = "Failed while processing payment.";
- }
- else
- {
- string_27 = "Daily Number of Transactions Limit exceeded.";
- }
- this.method_30("Third Hit Failed. Check HTML strerr=" + string_27);
- result = 0;
- return result != 0;
- }
- int num3 = obj6.IndexOf("https://www.irctc.co.in");
- if (num3 > 0)
- {
- num3 = obj6.LastIndexOf("<form", num3) - 6;
- int num4 = obj6.IndexOf("</form>", num3);
- this.method_30("Success ProcessSBINepalNB ");
- string_26 = obj6.Substring(num3, num4 - num3);
- string_27 = obj4;
- result = 1;
- return result != 0;
- }
- }
- result = num;
- }
- catch (Exception obj12)
- {
- this.bool_11 = false;
- object obj11 = obj12;
- this.method_30("ProcessSBINepalNB: " + obj11.Message);
- this.method_31("ProcessSBINepalNB", obj11.Message);
- result = 0;
- }
- }
- return result != 0;
- }
Add Comment
Please, Sign In to add comment