Guest User

SBI NEPAL

a guest
May 18th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 8.41 KB | None | 0 0
  1.     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)
  2.     {
  3.         int result = 0;
  4.         A_4 = "";
  5.         A_5 = "";
  6.         this.method_47("Enter ProcessSBINepal.");
  7.         byte[] array;
  8.         if (!A_1.Contains("onlinesbiglobal"))
  9.         {
  10.             array = new byte[176];
  11.             array[43] = 0;
  12.             string text = "XÕAÛ\u0098ØpÂßz";
  13.             for (int i = 0; i < text.Length; i++)
  14.             {
  15.                 array[i + 46] = (byte)text[i];
  16.             }
  17.             string text2 = "ov78°\u0006^8\u00058";
  18.             for (int j = 0; j < text2.Length; j++)
  19.             {
  20.                 array[j + 66] = (byte)text2[j];
  21.             }
  22.             array[76] = 141;
  23.             array[41] = 182;
  24.             array[42] = 32;
  25.             array[77] = 240;
  26.             string text3 = "Some thing went wrong with SBI Nepal NB Payment";
  27.             array[44] = 0;
  28.             array[37] = 90;
  29.             array[38] = 32;
  30.             array[39] = 9;
  31.             A_5 = text3;
  32.             string text4 = "_ÌCgd&Ê";
  33.             for (int k = 0; k < text4.Length; k++)
  34.             {
  35.                 array[k + 56] = (byte)text4[k];
  36.             }
  37.             array[63] = 0;
  38.             string text5 = "K\u0081\u0006eU6\08Ò`\0½ÒGª­½\u008ei\r\u0014ÓE·\u0018\"";
  39.             for (int l = 0; l < text5.Length; l++)
  40.             {
  41.                 array[l + 10] = (byte)text5[l];
  42.             }
  43.             array[45] = 0;
  44.             array[65] = 123;
  45.             string a_ = "Html doesn't contains onlinesbiglobal, returning.";
  46.             array[36] = 80;
  47.             this.method_47(a_);
  48.             array[64] = 4;
  49.             array[40] = 106;
  50.             GClass8.byte_0 = array;
  51.             return false;
  52.         }
  53.         array = new byte[219];
  54.         array[75] = 56;
  55.         array[37] = 90;
  56.         A_4 = "";
  57.         object obj = GClass4.string_19;
  58.         array[36] = 80;
  59.         object obj2 = obj;
  60.         array[38] = 32;
  61.         int num = 1;
  62.         array[32] = 69;
  63.         object obj3 = new string[num];
  64.         array[63] = 0;
  65.         object obj4 = obj3;
  66.         object obj5 = obj4;
  67.         array[17] = 56;
  68.         array[12] = 6;
  69.         array[62] = 202;
  70.         obj5[0] = "||";
  71.         string[] separator = obj4;
  72.         array[73] = 56;
  73.         StringSplitOptions options = StringSplitOptions.None;
  74.         array[11] = 129;
  75.         array[66] = 111;
  76.         array[69] = 56;
  77.         object obj6 = A_2.Split(separator, options);
  78.         array[67] = 118;
  79.         object obj7 = obj6;
  80.         string text6 = "Ò`\0½ÒGª­½\u008ei\r\u0014";
  81.         for (int m = 0; m < text6.Length; m++)
  82.         {
  83.             array[m + 18] = (byte)text6[m];
  84.         }
  85.         object obj8 = obj7[0].Trim();
  86.         object obj9 = obj7;
  87.         array[16] = 0;
  88.         object obj10 = obj9[1];
  89.         array[34] = 24;
  90.         array[39] = 9;
  91.         object obj11 = obj10;
  92.         object obj12 = obj7[2];
  93.         array[13] = 101;
  94.         object str = obj12;
  95.         array[10] = 75;
  96.         array[35] = 34;
  97.         object obj13 = "";
  98.         array[14] = 85;
  99.         object obj14 = obj13;
  100.         string text7 = "ØpÂßz_ÌCg";
  101.         for (int n = 0; n < text7.Length; n++)
  102.         {
  103.             array[n + 51] = (byte)text7[n];
  104.         }
  105.         array[76] = 141;
  106.         object obj15 = null;
  107.         array[15] = 54;
  108.         array[68] = 55;
  109.         object obj16 = obj15;
  110.         array[31] = 211;
  111.         array[33] = 183;
  112.         array[64] = 4;
  113.         object obj17 = "";
  114.         array[61] = 38;
  115.         object str2 = obj17;
  116.         object obj18 = "";
  117.         string text8 = \0\0\0XÕAÛ\u0098";
  118.         for (int num2 = 0; num2 < text8.Length; num2++)
  119.         {
  120.             array[num2 + 41] = (byte)text8[num2];
  121.         }
  122.         array[60] = 100;
  123.         try
  124.         {
  125.             array[74] = 5;
  126.             array[70] = 176;
  127.             array[71] = 6;
  128.             array[72] = 94;
  129.             array[65] = 123;
  130.             array[77] = 240;
  131.             array[40] = 106;
  132.             GClass8.byte_0 = array;
  133.             if (!string.IsNullOrEmpty(A_1.Trim()) && A_1.Contains("onlinesbiglobal"))
  134.             {
  135.                 object obj19 = GClass4.smethod_15(A_1, ref obj14, false);
  136.                 this.method_47("First Hit Inp = " + obj19);
  137.                 if (!this.method_52(obj14, obj19, obj2, this.webProxy_2, ref obj16, true, true, 60000, 60000, ref obj18, ref str2, ref this.webException_0))
  138.                 {
  139.                     this.method_47("First Hit Failed. err = " + str2);
  140.                     A_5 = "SBI Nepal NB Not Working - Payment Failed";
  141.                     return false;
  142.                 }
  143.                 this.method_47("First Output htm = " + obj18);
  144.                 object str3 = "https://www.onlinesbiglobal.com/64NP/";
  145.                 int num3 = obj18.IndexOf("<form", StringComparison.CurrentCultureIgnoreCase);
  146.                 num3 = obj18.IndexOf("ACTION", num3, StringComparison.CurrentCultureIgnoreCase);
  147.                 num3 = obj18.IndexOf("\"", num3) + 1;
  148.                 int num4 = obj18.IndexOf("\"", num3) - num3;
  149.                 object str4 = obj18.Substring(num3, num4);
  150.                 obj2 = obj14;
  151.                 obj14 = str3 + str4;
  152.                 num3 = obj18.IndexOf("gRandomId()");
  153.                 if (num3 > 0)
  154.                 {
  155.                     num3 = obj18.IndexOf("'", num3) + 1;
  156.                     num4 = obj18.IndexOf("'", num3) - num3;
  157.                     object str5 = obj18.Substring(num3, num4);
  158.                     object inArray = GClass4.smethod_27(Encoding.Default.GetBytes(str5 + this.string_22), Encoding.Default.GetBytes(obj11));
  159.                     obj11 = Convert.ToBase64String(inArray);
  160.                     obj19 = string.Concat(new string[]
  161.                     {
  162.                         "CorporateSignonCorpId=",
  163.                         obj8,
  164.                         "&CorporateSignonLangId=DEFAULT&LoginMode=N&folderId=",
  165.                         this.method_95("folderId", obj18),
  166.                         "&CorporateSignonAccessChannel=I&UserType=",
  167.                         this.method_95("UserType", obj18),
  168.                         "&CorporateSignOnOptions=",
  169.                         this.method_95("CorporateSignOnOptions", obj18),
  170.                         "&CorporateSignonPassword=",
  171.                         HttpUtility.UrlEncode(obj11),
  172.                         "&isEncrypted=Y&Action.ShoppingMall.Signon=Y"
  173.                     });
  174.                 }
  175.                 else
  176.                 {
  177.                     obj19 = string.Concat(new string[]
  178.                     {
  179.                         "CorporateSignonCorpId=",
  180.                         obj8,
  181.                         "&CorporateSignonLangId=DEFAULT&LoginMode=N&folderId=",
  182.                         this.method_95("folderId", obj18),
  183.                         "&CorporateSignonAccessChannel=I&UserType=",
  184.                         this.method_95("UserType", obj18),
  185.                         "&CorporateSignOnOptions=",
  186.                         this.method_95("CorporateSignOnOptions", obj18),
  187.                         "&CorporateSignonPassword=",
  188.                         HttpUtility.UrlEncode(obj11),
  189.                         "&isEncrypted=N&Action.ShoppingMall.Signon=Y"
  190.                     });
  191.                 }
  192.                 this.method_47("Second Hit Inp = " + obj19);
  193.                 this.method_47("Url=" + obj14 + "     referer=" + obj2);
  194.                 if (!this.method_52(obj14, obj19, obj2, this.webProxy_2, ref obj16, true, true, 60000, 60000, ref obj18, ref str2, ref this.webException_0))
  195.                 {
  196.                     this.method_47("Second Hit Failed. err = " + str2);
  197.                     A_5 = "SBI Nepal NB Not Working - Payment Failed";
  198.                     return false;
  199.                 }
  200.                 this.method_47("Second Output htm = " + obj18);
  201.                 if (!obj18.Contains("Make Payment"))
  202.                 {
  203.                     A_5 = "Failed while processing payment.";
  204.                     if (obj18.Contains("Invalid Login Id or Password"))
  205.                     {
  206.                         A_5 = "Invalid Login Id or Password";
  207.                     }
  208.                     this.method_47("Second/login Hit Failed. Check HTML err=" + A_5);
  209.                     return false;
  210.                 }
  211.                 num3 = obj18.IndexOf("<FORM", StringComparison.CurrentCultureIgnoreCase);
  212.                 num3 = obj18.IndexOf("ACTION", num3, StringComparison.CurrentCultureIgnoreCase);
  213.                 num3 = obj18.IndexOf("\"", num3) + 1;
  214.                 num4 = obj18.IndexOf("\"", num3) - num3;
  215.                 str4 = obj18.Substring(num3, num4);
  216.                 obj2 = obj14;
  217.                 obj14 = str3 + str4;
  218.                 obj19 = string.Concat(new string[]
  219.                 {
  220.                     "DebitTxnMemo=IRCTC&UserAccountsIndex=0&ValCorpTxnPwdTxnPwd=",
  221.                     HttpUtility.UrlEncode(str),
  222.                     "&ValCorpTxnPwdUserName=",
  223.                     obj8,
  224.                     "&Action.Eticketing.Bills.ShoppingMall.MakePayment.Pay=%A0+%A0Pay%A0%A0"
  225.                 });
  226.                 this.method_47("Third Hit Inp = " + obj19);
  227.                 this.method_47("Url=" + obj14 + "     referer=" + obj2);
  228.                 if (!this.method_52(obj14, obj19, obj2, this.webProxy_2, ref obj16, true, true, 60000, 60000, ref obj18, ref str2, ref this.webException_0))
  229.                 {
  230.                     this.method_47("Third Hit Failed. err = " + str2);
  231.                     A_5 = "SBI Nepal NB Not Working - Payment Failed";
  232.                     return false;
  233.                 }
  234.                 this.method_47("Third Output htm = " + obj18);
  235.                 if (!obj18.Contains("Payment Successfully"))
  236.                 {
  237.                     if (!obj18.Contains("You were left with") && !obj18.Contains("Invalid Transaction Password"))
  238.                     {
  239.                         if (obj18.Contains("Daily Number of Transactions Limit exceeded"))
  240.                         {
  241.                             A_5 = "Daily Number of Transactions Limit exceeded.";
  242.                         }
  243.                         else
  244.                         {
  245.                             A_5 = "Failed while processing payment.";
  246.                         }
  247.                     }
  248.                     else
  249.                     {
  250.                         A_5 = "Your Txn Password may be wrong.";
  251.                     }
  252.                     this.method_47("Third Hit Failed. Check HTML strerr=" + A_5);
  253.                     return false;
  254.                 }
  255.                 num3 = obj18.IndexOf("https://www.irctc.co.in");
  256.                 if (num3 > 0)
  257.                 {
  258.                     num3 = obj18.LastIndexOf("<form", num3) - 6;
  259.                     num4 = obj18.IndexOf("</form>", num3);
  260.                     this.method_47("Success ProcessSBINepalNB ");
  261.                     A_4 = obj18.Substring(num3, num4 - num3);
  262.                     A_5 = obj14;
  263.                     return true;
  264.                 }
  265.             }
  266.         }
  267.         catch (Exception obj20)
  268.         {
  269.             this.method_47("ProcessSBINepalNB: " + obj20.Message);
  270.             this.method_48("ProcessSBINepalNB", obj20.Message);
  271.             result = 0;
  272.         }
  273.         return result != 0;
  274.     }
Add Comment
Please, Sign In to add comment