Guest User

Untitled

a guest
Jan 7th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. 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)
  2. {
  3. int num = 0;
  4. string_26 = "";
  5. int num2 = 141;
  6. string_27 = "";
  7. this.method_30("Enter ProcessSBINepal.");
  8. int result;
  9. if (!string_23.Contains("onlinesbiglobal"))
  10. {
  11. string_27 = "Some thing went wrong with SBI Nepal NB Payment";
  12. this.method_30("Html doesn't contains onlinesbiglobal, returning.");
  13. result = 0;
  14. }
  15. else
  16. {
  17. string_26 = "";
  18. num2 -= 12;
  19. object obj = "https://www.irctc.co.in/eticketing/jpInput.jsf?cid=1";
  20. object string_29 = new string[]
  21. {
  22. "||"
  23. };
  24. object obj2 = IRComm.smethod_146(string_24, string_29, StringSplitOptions.None);
  25. object arg_91_0 = obj2;
  26. num2 -= 29;
  27. object obj3 = arg_91_0[0].Trim();
  28. object str = obj2[1];
  29. object obj4 = "";
  30. object obj5 = null;
  31. object str2 = "";
  32. object obj6 = "";
  33. try
  34. {
  35. num2 += 41;
  36. if (!string.IsNullOrEmpty(string_23.Trim()) && string_23.Contains("onlinesbiglobal"))
  37. {
  38. object obj7 = IRComm.GetBankRedirectInp(string_23, ref obj4, false);
  39. this.method_30("First Hit Inp = " + obj7);
  40. if (!this.method_33(obj4, obj7, obj, this.webProxy_2, ref obj5, true, true, 60000, 60000, ref obj6, ref str2, ref this.webException_0))
  41. {
  42. this.method_30("First Hit Failed. err = " + str2);
  43. string_27 = "SBI Nepal NB Not Working - Payment Failed";
  44. result = 0;
  45. return result != 0;
  46. }
  47. this.method_30("First Output htm = " + obj6);
  48. object obj8 = obj6.Substring(obj6.IndexOf("Click here to Change Image"));
  49. obj8 = obj8.Substring(obj8.IndexOf("src=") + 5);
  50. obj8 = obj8.Substring(0, obj8.IndexOf("\""));
  51. obj8 = "https://www.onlinesbiglobal.com/NPINB/" + obj8;
  52. object obj9 = new GForm10(this, obj5, obj8, obj4);
  53. obj9.object_12.Enabled = false;
  54. obj9.bool_0 = false;
  55. obj9.bool_1 = true;
  56. obj9.object_18.Text = "NEPAL Captcha";
  57. <Module>.smethod_314(obj9, this.control_0, this.rectangle_0);
  58. if (obj9.DialogResult != DialogResult.OK)
  59. {
  60. this.method_30("Captcha Cancel By User = " + str2);
  61. string_27 = "Captcha Cancel By User - Payment Failed";
  62. result = 0;
  63. return result != 0;
  64. }
  65. object obj10 = obj9.object_1.Text.Trim();
  66. obj7 = IRComm.GetBankRedirectInp3(obj6, ref obj4, false);
  67. obj4 = "https://www.onlinesbiglobal.com/NPINB/" + obj4;
  68. this.method_30("Second Hit Inp = " + obj7);
  69. obj7 = string.Concat(new string[]
  70. {
  71. "buffer=&AuthenticationFG.USER_PRINCIPAL=",
  72. obj3,
  73. "&AuthenticationFG.ACCESS_CODE=",
  74. HttpUtility.UrlEncode(str),
  75. "&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=",
  76. obj10,
  77. "&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__=",
  78. this.method_2("__JS_ENCRYPT_KEY__", obj6)
  79. });
  80. this.method_30("Url=" + obj4 + " referer=" + obj);
  81. if (!this.method_33(obj4, obj7, obj, this.webProxy_2, ref obj5, true, true, 60000, 60000, ref obj6, ref str2, ref this.webException_0))
  82. {
  83. this.method_30("Second Hit Failed. err = " + str2);
  84. string_27 = "SBI Nepal NB Not Working - Payment Failed";
  85. result = 0;
  86. return result != 0;
  87. }
  88. this.method_30("Second Output htm = " + obj6);
  89. if (!obj6.Contains("Initiate Payment"))
  90. {
  91. string_27 = "Failed while processing payment.";
  92. if (obj6.Contains("Invalid Login Id or Password"))
  93. {
  94. string_27 = "Invalid Login Id or Password";
  95. }
  96. this.method_30("Second/login Hit Failed. Check HTML err=" + string_27);
  97. result = 0;
  98. return result != 0;
  99. }
  100. obj = obj4;
  101. obj4 = obj6.Substring(obj6.IndexOf("baseUrl: ") + 10);
  102. obj4 = obj4.Substring(0, obj4.IndexOf("\""));
  103. obj4 = "https://www.onlinesbiglobal.com/NPINB/" + HttpUtility.UrlEncode(obj4);
  104. object values = new string[]
  105. {
  106. "criteria={\"WID_CONF\":\"PageConfigurationMaster_3W__1\",\"PARENT_MENU_FOR_REMOVE\":\"3\",\"GROUPLETS_IN_PAGE\":\"%2CPageConfigurationMaster_3W__1\"}&target=PageConfigurationMaster_3W__1&requestId=0"
  107. };
  108. obj7 = string.Concat(values);
  109. this.method_30("Third Hit Inp = " + obj7);
  110. this.method_30("Url=" + obj4 + " referer=" + obj);
  111. this.bool_11 = true;
  112. 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))
  113. {
  114. this.bool_11 = false;
  115. this.method_30("Third Hit Failed. err = " + str2);
  116. string_27 = "SBI Nepal NB Not Working - Payment Failed";
  117. result = 0;
  118. return result != 0;
  119. }
  120. this.bool_11 = false;
  121. this.method_30("Third Output htm = " + obj6);
  122. if (!obj6.Contains("Payment Successfully"))
  123. {
  124. if (obj6.Contains("You were left with") || obj6.Contains("Invalid Transaction Password"))
  125. {
  126. string_27 = "Your Txn Password may be wrong.";
  127. }
  128. else if (!obj6.Contains("Daily Number of Transactions Limit exceeded"))
  129. {
  130. string_27 = "Failed while processing payment.";
  131. }
  132. else
  133. {
  134. string_27 = "Daily Number of Transactions Limit exceeded.";
  135. }
  136. this.method_30("Third Hit Failed. Check HTML strerr=" + string_27);
  137. result = 0;
  138. return result != 0;
  139. }
  140. int num3 = obj6.IndexOf("https://www.irctc.co.in");
  141. if (num3 > 0)
  142. {
  143. num3 = obj6.LastIndexOf("<form", num3) - 6;
  144. int num4 = obj6.IndexOf("</form>", num3);
  145. this.method_30("Success ProcessSBINepalNB ");
  146. string_26 = obj6.Substring(num3, num4 - num3);
  147. string_27 = obj4;
  148. result = 1;
  149. return result != 0;
  150. }
  151. }
  152. result = num;
  153. }
  154. catch (Exception obj12)
  155. {
  156. this.bool_11 = false;
  157. object obj11 = obj12;
  158. this.method_30("ProcessSBINepalNB: " + obj11.Message);
  159. this.method_31("ProcessSBINepalNB", obj11.Message);
  160. result = 0;
  161. }
  162. }
  163. return result != 0;
  164. }
Add Comment
Please, Sign In to add comment