Advertisement
Guest User

Untitled

a guest
Nov 28th, 2017
1,409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.80 KB | None | 0 0
  1.  
  2. public bool PerformC(Control cntrl, Rectangle rect, string strName, string userDetails, string iDetails, string tCntrlName, ref string txnID, bool isConfirmReq, bool isBConfirmReq, bool isP, int SlotID, UpdateTStatus updtStatus, string fir)
  3. {
  4. if (IRComm.byte_0 == null)
  5. {
  6. updtStatus.BeginInvoke(53, "Connect Not Working", tCntrlName, null, null);
  7. return false;
  8. }
  9. Connect connect = (Connect)Activator.CreateInstance(Assembly.Load(IRComm.byte_0).GetType("IRConnect.IR"));
  10. connect.getRandomJsonWebKey();
  11. bool result = false;
  12. string text = "";
  13. this.control_0 = cntrl;
  14. this.rectangle_0 = rect;
  15. this.bool_11 = isConfirmReq;
  16. string[] array = new string[1];
  17. string[] array2 = iDetails.Split(new string[]
  18. {
  19. "||"
  20. }, StringSplitOptions.None);
  21. string text2 = "";
  22. string text3 = "";
  23. string text4 = "";
  24. bool flag = false;
  25. string text5 = "";
  26. string string_ = "";
  27. string string_2 = "";
  28. double num = 0.0;
  29. bool flag2 = false;
  30. new List<Class6>();
  31. string[] array3 = txnID.Split(new string[]
  32. {
  33. "-.-"
  34. }, StringSplitOptions.RemoveEmptyEntries);
  35. txnID = "";
  36. if (array3 != null && array3.Length != 0)
  37. {
  38. text = array3[0];
  39. }
  40. if (string.IsNullOrEmpty(text))
  41. {
  42. text = "1";
  43. }
  44. if (!string.IsNullOrEmpty(fir) && SlotID > 2)
  45. {
  46. try
  47. {
  48. string[] array4 = fir.Split(new string[]
  49. {
  50. "||"
  51. }, StringSplitOptions.None);
  52. this.webProxy_0 = new WebProxy(array4[0].Trim(), int.Parse(array4[1].Trim()));
  53. this.webProxy_0.BypassProxyOnLocal = true;
  54. this.webProxy_0.Credentials = new NetworkCredential(array4[2].Trim(), array4[3].Trim());
  55. text5 = text5 + " Pxy:" + array4[0];
  56. this.method_36("Proxy Details: " + fir);
  57. goto IL_1F3;
  58. }
  59. catch (Exception ex)
  60. {
  61. this.method_37("Creating Proxy", ex.Message);
  62. MessageBox.Show("Error Occured while Setting IP, Please try in another slot.", "Proxy", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  63. if (updtStatus != null)
  64. {
  65. updtStatus.BeginInvoke(53, "IP Issue, Try Another slot!", tCntrlName, null, null);
  66. }
  67. bool result2 = false;
  68. return result2;
  69. }
  70. }
  71. this.webProxy_0 = null;
  72. IL_1F3:
  73. if (!string.IsNullOrEmpty(userDetails))
  74. {
  75. array = userDetails.Split(new string[]
  76. {
  77. "||"
  78. }, StringSplitOptions.None);
  79. if (array != null && array.Length > 2)
  80. {
  81. if (IRComm.string_14.Length < 1)
  82. {
  83. IRComm.string_14 = array[2];
  84. }
  85. int.TryParse(array[3], out IRComm.int_1);
  86. if (IRComm.int_1 < 2)
  87. {
  88. IRComm.int_1 = 2;
  89. }
  90. IRComm.int_1 *= 2;
  91. string string_3 = array[4];
  92. this.method_38(string_3);
  93. }
  94. }
  95. this.class7_0 = new Class7();
  96. if (!this.class7_0.kguqomrgPO(strName))
  97. {
  98. MessageBox.Show(IRComm.smethod_5(), "Error Occured while Reading Saved Ticket! ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  99. return false;
  100. }
  101. if (this.class7_0.dateTime_1 < new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
  102. {
  103. MessageBox.Show(IRComm.smethod_5(), "Date of Journey cannot be less than Today!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  104. if (updtStatus != null)
  105. {
  106. updtStatus.BeginInvoke(53, "Date of Journey cannot less than Today!", tCntrlName, null, null);
  107. }
  108. return false;
  109. }
  110. this.class7_0.string_13 = array2[0];
  111. this.class7_0.string_14 = array2[1];
  112. if (array2.Length >= 3 && array2[2] != null)
  113. {
  114. if (IRComm.bool_4 && array2[2] != this.class7_0.string_8)
  115. {
  116. this.class7_0.string_8 = array2[2];
  117. }
  118. else
  119. {
  120. if (array2[2] == "PT")
  121. {
  122. this.class7_0.string_8 = "PT";
  123. }
  124. }
  125. }
  126. if (this.class7_0.string_22 == "4")
  127. {
  128. MessageBox.Show(IRComm.smethod_5(), "You have not opt for Manual Payments! Please Select any Auto Payment Mode.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  129. if (updtStatus != null)
  130. {
  131. updtStatus.BeginInvoke(53, "Manual Payments not Allowed!", tCntrlName, null, null);
  132. }
  133. return false;
  134. }
  135. if (DateTime.Now.Hour >= 12)
  136. {
  137. this.double_0 = 15000.0;
  138. }
  139. if (array3 != null && array3.Length >= 2)
  140. {
  141. this.class7_0.string_23 = array3[1];
  142. this.class7_0.string_24 = array3[2];
  143. }
  144. this.webProxy_1 = null;
  145. if (this.class7_0.string_13.ToUpper() == this.string_13.ToUpper())
  146. {
  147. if (this.webProxy_0 == null)
  148. {
  149. MessageBox.Show("Without proxy not allowed.");
  150. return false;
  151. }
  152. this.webProxy_1 = this.webProxy_0;
  153. }
  154. try
  155. {
  156. if (this.class7_0.string_23.Contains("ICICI") && !this.class7_0.string_23.ToUpper().Contains("DEBIT") && !this.class7_0.string_23.ToUpper().Contains("_CC"))
  157. {
  158. if (this.class7_0.string_24.Split(new string[]
  159. {
  160. "||"
  161. }, StringSplitOptions.RemoveEmptyEntries).Length > 4)
  162. {
  163. text5 += " :ICIA: ";
  164. }
  165. else
  166. {
  167. string text6 = Interaction.InputBox("Enter OTP Form ICICI Bank i-Safe Andriod APP. (If no i-Safe, Enter 12345 to receive OTP on Mobile)", "ICICI OTP", "", cntrl.PointToScreen(rect.Location).X, cntrl.PointToScreen(rect.Location).Y).Trim();
  168. if (text6.Length < 5)
  169. {
  170. if (updtStatus != null)
  171. {
  172. updtStatus.BeginInvoke(53, "Valid OTP Required!", tCntrlName, null, null);
  173. }
  174. bool result2 = false;
  175. return result2;
  176. }
  177. Class7 expr_56C = this.class7_0;
  178. expr_56C.string_24 = expr_56C.string_24 + "||" + text6;
  179. }
  180. }
  181. else
  182. {
  183. if (this.class7_0.string_23.Contains("_PTM_"))
  184. {
  185. MessageBox.Show("PayTM Gateway not yet started!", "PayTM", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  186. if (updtStatus != null)
  187. {
  188. updtStatus.BeginInvoke(53, "PayTM Gateway not yet started!", tCntrlName, null, null);
  189. }
  190. bool result2 = false;
  191. return result2;
  192. }
  193. }
  194. if (array3 != null && array3.Length > 3)
  195. {
  196. double num2 = this.double_0;
  197. double.TryParse(array3[3], out this.double_0);
  198. if (this.double_0 < 5000.0)
  199. {
  200. this.double_0 = num2;
  201. }
  202. if (array3.Length > 4)
  203. {
  204. bool.TryParse(array3[4], out flag);
  205. }
  206. if (array3.Length > 5)
  207. {
  208. num = Conversion.Val(array3[5].Trim());
  209. if (num <= 0.0)
  210. {
  211. num = 0.0;
  212. }
  213. if (array3[5].Trim().Length > 1)
  214. {
  215. if (num > 0.0)
  216. {
  217. this.method_36("PTFare:" + num);
  218. }
  219. else
  220. {
  221. MessageBox.Show("Unable to set Fare limit.", "Fare Limit", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  222. }
  223. }
  224. }
  225. }
  226. }
  227. catch
  228. {
  229. }
  230. string text7 = string.Concat(new object[]
  231. {
  232. "\r\n\r\nTrainNo: ",
  233. this.class7_0.string_2,
  234. " Form: ",
  235. this.class7_0.string_0,
  236. " To: ",
  237. this.class7_0.string_1,
  238. "\r\n\r\nNo. of Passengers: ",
  239. this.class7_0.list_0.Count,
  240. " Name of First Pax: ",
  241. this.class7_0.list_0[0].string_0
  242. });
  243. text2 = string.Concat(new string[]
  244. {
  245. "TrainNo: ",
  246. this.class7_0.string_2,
  247. " Form: ",
  248. this.class7_0.string_0,
  249. " To: ",
  250. this.class7_0.string_1
  251. });
  252. text3 = "Pax: " + this.class7_0.list_0[0].string_0 + ((this.class7_0.list_0.Count <= 1) ? "" : (" and (" + (this.class7_0.list_0.Count - 1) + ") Others"));
  253. this.updateTStatus_0 = updtStatus;
  254. this.string_7 = tCntrlName;
  255. if (this.class7_0.lvpqYvqKqi())
  256. {
  257. this.bool_13 = true;
  258. }
  259. if (this.class7_0.bool_0)
  260. {
  261. this.int_3 = 7;
  262. this.int_4 = 8;
  263. }
  264. else
  265. {
  266. if (this.bool_13)
  267. {
  268. this.int_3 = 10;
  269. this.int_4 = 11;
  270. }
  271. }
  272. if (this.class7_0.string_3.ToUpper() == this.class7_0.string_1.ToUpper())
  273. {
  274. MessageBox.Show(IRComm.smethod_5(), "Boarding station can not be same as To Station!");
  275. if (updtStatus != null)
  276. {
  277. updtStatus.BeginInvoke(53, "Invalid Boarding Station", tCntrlName, null, null);
  278. }
  279. return false;
  280. }
  281. object obj = IRComm.object_4;
  282. lock (obj)
  283. {
  284. if (IRComm.list_2.Contains(this.class7_0.string_13))
  285. {
  286. if (updtStatus != null)
  287. {
  288. updtStatus.BeginInvoke(53, "Another Ticket is already active using this IRCTC ID.", tCntrlName, null, null);
  289. }
  290. this.method_36("Login Already Active ID = " + this.class7_0.string_13);
  291. bool result2 = false;
  292. return result2;
  293. }
  294. IRComm.list_2.Add(this.class7_0.string_13);
  295. }
  296. obj = IRComm.object_5;
  297. lock (obj)
  298. {
  299. if (IRComm.dictionary_1.ContainsKey(text))
  300. {
  301. IRComm.dictionary_1[text] = IRComm.dictionary_1[text] + 1;
  302. this.int_5 = IRComm.dictionary_1[text];
  303. }
  304. else
  305. {
  306. IRComm.dictionary_1.Add(text, 1);
  307. Interlocked.Increment(ref IRComm.int_2);
  308. this.int_5 = 1;
  309. }
  310. }
  311. if (this.class7_0.string_8.ToUpper() == "CK")
  312. {
  313. this.class7_0.string_8 = "TQ";
  314. }
  315. try
  316. {
  317. if (IRComm.int_2 <= IRComm.int_1)
  318. {
  319. this.ConnectionGroupID = this.ClassID;
  320. this.method_36(string.Concat(new object[]
  321. {
  322. "Ticket Started isPair=",
  323. isP,
  324. " PairID=",
  325. text,
  326. " ActivePair=",
  327. IRComm.dictionary_1[text],
  328. " isCntrlPressed:",
  329. flag
  330. }));
  331. bool flag4 = false;
  332. if ((this.class7_0.string_8 == "CK" || this.class7_0.string_8 == "PT" || this.class7_0.string_8 == "TQ") && this.class7_0.dateTime_1 > DateTime.Now)
  333. {
  334. flag4 = true;
  335. }
  336. int num3 = 0;
  337. if (DateTime.Now.Hour == this.int_3 && updtStatus != null)
  338. {
  339. updtStatus.BeginInvoke(1, "Waiting till " + this.int_3 + ":47 AM", tCntrlName, null, null);
  340. }
  341. if (this.class7_0.bool_0 | flag4)
  342. {
  343. num3 = (int)new TimeSpan(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, this.int_3, 47, 0, 0).Ticks - DateTime.Now.Ticks).TotalMilliseconds;
  344. }
  345. if ((flag4 || this.class7_0.bool_0) && num3 > 0)
  346. {
  347. Application.DoEvents();
  348. Thread.Sleep(num3);
  349. }
  350. if (DateTime.Now.Hour == this.int_3 && DateTime.Now.Minute >= 58)
  351. {
  352. flag = false;
  353. }
  354. if (DateTime.Now.Hour == 7 && DateTime.Now.Minute >= 45 && this.class7_0.bool_0)
  355. {
  356. flag = false;
  357. }
  358. if ((this.class7_0.bool_0 | flag4) && ((DateTime.Now.Hour == this.int_4 && DateTime.Now.Minute < 10) || (DateTime.Now.Hour == this.int_3 && DateTime.Now.Minute > 45)))
  359. {
  360. this.class7_0.bool_6 = true;
  361. }
  362. if (updtStatus != null)
  363. {
  364. updtStatus.BeginInvoke(1, "Start Login...", tCntrlName, null, null);
  365. }
  366. int num4 = 0;
  367. flag = false;
  368. if (num < 0.0)
  369. {
  370. num = 0.0;
  371. }
  372. bool flag5 = false;
  373. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv = new lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv();
  374. this.webProxy_2 = null;
  375. this.string_2 = null;
  376. this.string_3 = "";
  377. this.string_4 = "";
  378. this.string_5 = "";
  379. this.cookieContainer_0 = null;
  380. this.webException_0 = null;
  381. this.method_43();
  382. this.bool_6 = isP;
  383. this.bool_14 = false;
  384. this.int_6 = 0;
  385. this.bool_8 = true;
  386. this.class7_0.bool_7 = true;
  387. string text8 = "";
  388. string text9 = this.method_0(15, "0123456789");
  389. string text10 = this.method_0(20, "0123456789");
  390. string text11 = this.method_0(16, "abcdefghijklmnopqrstuvwxyz0123456789");
  391. object randomJsonWebKey = connect.getRandomJsonWebKey();
  392. object arg = null;
  393. text8 = connect.getHash(text9, text10, text11);
  394. string arg2 = "";
  395. string text12 = "";
  396. string text13 = "";
  397. string text14 = "";
  398. string text15 = "";
  399. string text16 = "";
  400. string value = "";
  401. string text17 = "";
  402. string text18 = "";
  403. while (true)
  404. {
  405. num4++;
  406. this.method_36("Hitting Loading Home Page" + num4.ToString());
  407. updtStatus.BeginInvoke(1, "Connecting IRCTC", tCntrlName, null, null);
  408. this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/appVersion/ANDROID/2.1.9";
  409. DateTime arg_20F2_0 = DateTime.Now;
  410. if (flag5)
  411. {
  412. if (IRComm.queue_0.Count > 0)
  413. {
  414. goto IL_2CE7;
  415. }
  416. }
  417. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "", text8, text13, text14, text12, ref arg2))
  418. {
  419. break;
  420. }
  421. this.method_36("Hitting home out= " + this.string_1);
  422. if (IRComm.<>o__18.<>p__1 == null)
  423. {
  424. IRComm.<>o__18.<>p__1 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  425. }
  426. Func<CallSite, object, string> arg_E8C_0 = IRComm.<>o__18.<>p__1.Target;
  427. CallSite arg_E8C_1 = IRComm.<>o__18.<>p__1;
  428. if (IRComm.<>o__18.<>p__0 == null)
  429. {
  430. IRComm.<>o__18.<>p__0 = CallSite<Func<CallSite, Connect, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "getBase64EncodePublicKey", null, typeof(IRComm), new CSharpArgumentInfo[]
  431. {
  432. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  433. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  434. }));
  435. }
  436. string str = arg_E8C_0(arg_E8C_1, IRComm.<>o__18.<>p__0.Target(IRComm.<>o__18.<>p__0, connect, randomJsonWebKey));
  437. this.string_1 = "https://www.irctc.co.in/authprovider/oauth/token";
  438. this.string_2 = "grant_type=password&username=" + this.class7_0.string_13 + "&password=" + this.class7_0.string_14;
  439. text12 = Convert.ToBase64String(Encoding.UTF8.GetBytes(this.class7_0.string_13 + ":" + this.class7_0.string_14));
  440. new Cookie("language", "en_IN").Domain = "www.irctc.co.in";
  441. updtStatus.BeginInvoke(1, "Login", tCntrlName, null, null);
  442. this.method_36("Hitting home2 in= " + this.string_2);
  443. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Login", text8, text13, text14, text12, ref arg2))
  444. {
  445. goto IL_212D;
  446. }
  447. this.method_36("Hitting home2 out= " + this.string_2);
  448. if (!this.string_4.Contains("bearer"))
  449. {
  450. goto IL_2CE7;
  451. }
  452. List<string> list = new List<string>(this.string_4.Split(new string[]
  453. {
  454. "\""
  455. }, StringSplitOptions.None));
  456. text13 = "bearer " + list[3];
  457. this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/agreeOnKey?" + str;
  458. this.string_2 = str;
  459. this.method_36("Hitting Login CNF in= " + this.string_2);
  460. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Logincnf", text8, text13, text14, text12, ref arg2))
  461. {
  462. goto IL_215E;
  463. }
  464. this.method_36("Hitting Login CNF out= " + this.string_2);
  465. arg = connect.createEllipticCurveJsonWebKey(this.string_4);
  466. if (IRComm.<>o__18.<>p__3 == null)
  467. {
  468. IRComm.<>o__18.<>p__3 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  469. }
  470. Func<CallSite, object, string> arg_1156_0 = IRComm.<>o__18.<>p__3.Target;
  471. CallSite arg_1156_1 = IRComm.<>o__18.<>p__3;
  472. if (IRComm.<>o__18.<>p__2 == null)
  473. {
  474. IRComm.<>o__18.<>p__2 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  475. {
  476. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  477. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  478. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  479. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  480. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  481. }));
  482. }
  483. text14 = arg_1156_0(arg_1156_1, IRComm.<>o__18.<>p__2.Target(IRComm.<>o__18.<>p__2, connect, randomJsonWebKey, arg, text8, arg2));
  484. this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/validateUser";
  485. this.string_2 = null;
  486. updtStatus.BeginInvoke(1, "Login Success", tCntrlName, null, null);
  487. this.method_36("Hitting Validate in= " + this.string_2);
  488. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "validateUser", text8, text13, text14, text12, ref arg2))
  489. {
  490. goto IL_218F;
  491. }
  492. this.method_36("Hitting Validate out" + num4.ToString());
  493. if (!this.string_4.Contains("email"))
  494. {
  495. goto IL_2CE7;
  496. }
  497. string text19 = this.string_4.Substring(this.string_4.IndexOf("timeStamp") + 23);
  498. text19 = text19.Substring(0, text19.IndexOf("\""));
  499. this.class7_0.method_8(text19, this.class7_0.string_8, this.class7_0.string_7);
  500. int num5 = (int)new TimeSpan(DateTime.Parse(text19.Split(new char[]
  501. {
  502. '.'
  503. })[0].Trim()).Ticks - DateTime.Now.Ticks).TotalMilliseconds;
  504. if (updtStatus != null)
  505. {
  506. updtStatus.BeginInvoke(9999, num5.ToString(), tCntrlName, null, null);
  507. }
  508. text4 = string.Concat(new string[]
  509. {
  510. text4,
  511. " Log:",
  512. DateTime.Now.ToString("HH:mm:ss"),
  513. " Diff",
  514. num5.ToString()
  515. });
  516. string text20 = this.string_4.Substring(this.string_4.IndexOf("userId") + 9);
  517. long num6 = long.Parse(text20.Substring(0, text20.IndexOf("\"")));
  518. string text21 = this.string_4.Substring(this.string_4.IndexOf("email") + 8);
  519. value = text21.Substring(0, text21.IndexOf("\""));
  520. if (this.class7_0.string_5.Length == 1)
  521. {
  522. this.class7_0.string_5 = "0" + this.class7_0.string_5;
  523. }
  524. if (this.class7_0.string_4.Length == 1)
  525. {
  526. this.class7_0.string_4 = "0" + this.class7_0.string_4;
  527. }
  528. string text22 = this.class7_0.string_6 + this.class7_0.string_5 + this.class7_0.string_4;
  529. if (IRComm.<>o__18.<>p__5 == null)
  530. {
  531. IRComm.<>o__18.<>p__5 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  532. }
  533. Func<CallSite, object, string> arg_14D2_0 = IRComm.<>o__18.<>p__5.Target;
  534. CallSite arg_14D2_1 = IRComm.<>o__18.<>p__5;
  535. if (IRComm.<>o__18.<>p__4 == null)
  536. {
  537. IRComm.<>o__18.<>p__4 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  538. {
  539. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  540. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  541. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  542. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  543. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  544. }));
  545. }
  546. text14 = arg_14D2_0(arg_14D2_1, IRComm.<>o__18.<>p__4.Target(IRComm.<>o__18.<>p__4, connect, randomJsonWebKey, arg, text8, arg2));
  547. this.string_1 = string.Concat(new string[]
  548. {
  549. "https://www.irctc.co.in/eticketing/protected/mapps1/tbstns/",
  550. this.class7_0.string_0,
  551. "/",
  552. this.class7_0.string_1.ToUpper(),
  553. "/",
  554. text22
  555. });
  556. updtStatus.BeginInvoke(1, "Getting Train List", tCntrlName, null, null);
  557. this.method_36("Hitting train list in= " + this.string_2);
  558. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "validateUser", text8, text13, text14, text12, ref arg2))
  559. {
  560. goto IL_21C0;
  561. }
  562. this.method_36("Hitting train list out= " + this.string_2);
  563. if (!this.string_4.Contains(this.class7_0.string_2))
  564. {
  565. goto IL_2CE7;
  566. }
  567. if (this.class7_0.bool_0 | this.class7_0.string_8 == "TQ" | this.class7_0.string_8 == "PT" | this.class7_0.string_8 == "CK")
  568. {
  569. while (true)
  570. {
  571. int arg_1679_0 = DateTime.Now.Hour;
  572. int minute = DateTime.Now.Minute;
  573. int second = DateTime.Now.Second;
  574. long num7 = (long)(arg_1679_0 * 10000 + minute * 100 + second);
  575. if (num7 >= this.class7_0.long_0)
  576. {
  577. break;
  578. }
  579. Application.DoEvents();
  580. updtStatus.BeginInvoke(1, "Wait For Condition true", tCntrlName, null, null);
  581. Thread.Sleep(100);
  582. }
  583. }
  584. updtStatus.BeginInvoke(1, "Getting Availablity", tCntrlName, null, null);
  585. this.string_1 = string.Concat(new string[]
  586. {
  587. "https://www.irctc.co.in/eticketing/protected/mapps1/boardingstationenquiry/",
  588. this.class7_0.string_2,
  589. "/",
  590. text22,
  591. "/",
  592. this.class7_0.string_0,
  593. "/",
  594. this.class7_0.string_1.ToUpper(),
  595. "/",
  596. this.class7_0.string_7
  597. });
  598. while (true)
  599. {
  600. if (IRComm.<>o__18.<>p__7 == null)
  601. {
  602. IRComm.<>o__18.<>p__7 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  603. }
  604. Func<CallSite, object, string> arg_17B5_0 = IRComm.<>o__18.<>p__7.Target;
  605. CallSite arg_17B5_1 = IRComm.<>o__18.<>p__7;
  606. if (IRComm.<>o__18.<>p__6 == null)
  607. {
  608. IRComm.<>o__18.<>p__6 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  609. {
  610. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  611. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  612. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  613. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  614. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  615. }));
  616. }
  617. text14 = arg_17B5_0(arg_17B5_1, IRComm.<>o__18.<>p__6.Target(IRComm.<>o__18.<>p__6, connect, randomJsonWebKey, arg, text8, arg2));
  618. this.method_36("Hitting board enq in= " + this.string_2);
  619. if (!this.method_40(this.string_1, null, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "GetTrain", text8, text13, text14, text12, ref arg2))
  620. {
  621. goto IL_21F1;
  622. }
  623. this.method_36("Hitting board enq out= " + this.string_2);
  624. if (!this.string_4.Contains("timeStamp"))
  625. {
  626. goto IL_2CE7;
  627. }
  628. text19 = this.string_4.Substring(this.string_4.IndexOf("timeStamp") + 23);
  629. text19 = text19.Substring(0, text19.IndexOf("\""));
  630. int num8 = int.Parse(text19.Replace(":", "").Replace(".", ""));
  631. if (!(this.class7_0.bool_0 | this.class7_0.string_8 == "TQ" | this.class7_0.string_8 == "PT" | this.class7_0.string_8 == "CK") || num8 > this.class7_0.int_0)
  632. {
  633. break;
  634. }
  635. if (IRComm.<>o__18.<>p__9 == null)
  636. {
  637. IRComm.<>o__18.<>p__9 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  638. }
  639. Func<CallSite, object, string> arg_19C8_0 = IRComm.<>o__18.<>p__9.Target;
  640. CallSite arg_19C8_1 = IRComm.<>o__18.<>p__9;
  641. if (IRComm.<>o__18.<>p__8 == null)
  642. {
  643. IRComm.<>o__18.<>p__8 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  644. {
  645. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  646. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  647. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  648. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  649. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  650. }));
  651. }
  652. text14 = arg_19C8_0(arg_19C8_1, IRComm.<>o__18.<>p__8.Target(IRComm.<>o__18.<>p__8, connect, randomJsonWebKey, arg, text8, arg2));
  653. Thread.Sleep(500);
  654. updtStatus.BeginInvoke(1, "Availablity Retry..", tCntrlName, null, null);
  655. }
  656. text4 = text4 + " AvlRec:" + DateTime.Now.ToString("HH:mm:ss");
  657. this.class7_0.dateTime_0 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
  658. do
  659. {
  660. if (IRComm.<>o__18.<>p__11 == null)
  661. {
  662. IRComm.<>o__18.<>p__11 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  663. }
  664. Func<CallSite, object, string> arg_1B48_0 = IRComm.<>o__18.<>p__11.Target;
  665. CallSite arg_1B48_1 = IRComm.<>o__18.<>p__11;
  666. if (IRComm.<>o__18.<>p__10 == null)
  667. {
  668. IRComm.<>o__18.<>p__10 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  669. {
  670. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  671. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  672. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  673. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  674. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  675. }));
  676. }
  677. text14 = arg_1B48_0(arg_1B48_1, IRComm.<>o__18.<>p__10.Target(IRComm.<>o__18.<>p__10, connect, randomJsonWebKey, arg, text8, arg2));
  678. this.string_2 = "{\"masterId\":null,\"wsUserLogin\":null,\"wsUserPassword\":null,\"wsUserTransactionPassword\":null,\"agentDeviceId\":null,\"atasOpted\":null,\"autoUpgradationSelected\":false,\"boardingStation\":null,\"clientTransactionId\":null,\"clusterFlag\":\"N\",\"clusterJourneyClass\":null,\"coachId\":null,\"cod\":\"false\",\"enquiryType\":\"3\",\"enrouteStation\":null,\"gnToCkOpted\":false,\"gstDetails\":null,\"ignoreChoiceIfWl\":true,\"infantList\":null,\"mainJourneyPnr\":null,\"mainJourneyTxnId\":null,\"mobileNumber\":null,\"moreThanOneDay\":true,\"onwardFlag\":\"N\",\"passengerList\":null,\"reservationChoice\":null,\"reservationMode\":\"WS_TA_B2C\",\"reservationUptoStation\":null,\"ssQuotaSplitCoach\":null,\"ticketChoiceLowerBerth\":null,\"ticketChoiceSameCoach\":false,\"ticketType\":null,\"travelInsuranceOpted\":null,\"viaPointStation\":null}";
  679. this.string_1 = string.Concat(new string[]
  680. {
  681. "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
  682. this.class7_0.string_2,
  683. "/",
  684. text22,
  685. "/",
  686. this.class7_0.string_0,
  687. "/",
  688. this.class7_0.string_1.ToUpper(),
  689. "/",
  690. this.class7_0.string_7,
  691. "/",
  692. this.class7_0.string_8,
  693. "/N"
  694. });
  695. updtStatus.BeginInvoke(1, "Train Selection", tCntrlName, null, null);
  696. this.method_36("Hitting fare enq in= " + this.string_2);
  697. this.string_4 = this.method_41(this.string_1, "", this.string_2, "GetTrain", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
  698. this.method_36("Hitting fare enq out= " + this.string_2);
  699. }
  700. while (this.string_4 == "Retry" || this.string_4 == "");
  701. string string_4 = this.string_4;
  702. if (!this.string_4.Contains("baseFare"))
  703. {
  704. goto IL_2CE7;
  705. }
  706. if (IRComm.<>o__18.<>p__13 == null)
  707. {
  708. IRComm.<>o__18.<>p__13 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  709. }
  710. Func<CallSite, object, string> arg_1DA2_0 = IRComm.<>o__18.<>p__13.Target;
  711. CallSite arg_1DA2_1 = IRComm.<>o__18.<>p__13;
  712. if (IRComm.<>o__18.<>p__12 == null)
  713. {
  714. IRComm.<>o__18.<>p__12 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  715. {
  716. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  717. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  718. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  719. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  720. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  721. }));
  722. }
  723. text14 = arg_1DA2_0(arg_1DA2_1, IRComm.<>o__18.<>p__12.Target(IRComm.<>o__18.<>p__12, connect, randomJsonWebKey, arg, text8, arg2));
  724. updtStatus.BeginInvoke(1, "Wait For Captcha Time", tCntrlName, null, null);
  725. this.string_1 = string.Concat(new string[]
  726. {
  727. "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
  728. this.class7_0.string_2,
  729. "/",
  730. text22,
  731. "/",
  732. this.class7_0.string_0,
  733. "/",
  734. this.class7_0.string_1.ToUpper(),
  735. "/",
  736. this.class7_0.string_7,
  737. "/",
  738. this.class7_0.string_8,
  739. "/Y"
  740. });
  741. while (DateTime.Now.Subtract(this.class7_0.dateTime_0).TotalMilliseconds < 19000.0)
  742. {
  743. Thread.Sleep(100);
  744. }
  745. text18 = connect.getClientTransactionId(num6, text9);
  746. this.string_2 = this.class7_0.method_7(text18, string_4);
  747. this.string_2 = this.string_2.Replace("},],", "}],");
  748. text4 = text4 + " Cap:" + DateTime.Now.ToString("HH:mm:ss");
  749. updtStatus.BeginInvoke(1, "Loading Captcha", tCntrlName, null, null);
  750. this.method_36("Hitting passenger in= " + this.string_2);
  751. this.string_4 = this.method_41(this.string_1, "", this.string_2, "Passenger", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
  752. this.method_36("Hitting passenger out= " + this.string_2);
  753. text4 = text4 + " -" + DateTime.Now.ToString("mm:ss");
  754. if (this.string_4.Contains("You are permitted only 6 transaction in a month and you have exhausted them. Please use other services"))
  755. {
  756. goto IL_2222;
  757. }
  758. if (this.string_4.Contains("captchaQuestion"))
  759. {
  760. goto IL_223D;
  761. }
  762. this.method_36("Hitting passenger Retry= " + this.string_2);
  763. updtStatus.BeginInvoke(1, "Loading Captcha Retry", tCntrlName, null, null);
  764. if (IRComm.<>o__18.<>p__15 == null)
  765. {
  766. IRComm.<>o__18.<>p__15 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  767. }
  768. Func<CallSite, object, string> arg_2095_0 = IRComm.<>o__18.<>p__15.Target;
  769. CallSite arg_2095_1 = IRComm.<>o__18.<>p__15;
  770. if (IRComm.<>o__18.<>p__14 == null)
  771. {
  772. IRComm.<>o__18.<>p__14 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  773. {
  774. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  775. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  776. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  777. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  778. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  779. }));
  780. }
  781. text14 = arg_2095_0(arg_2095_1, IRComm.<>o__18.<>p__14.Target(IRComm.<>o__18.<>p__14, connect, randomJsonWebKey, arg, text8, arg2));
  782. }
  783. this.method_36("Hitting home out Error= " + this.string_1);
  784. updtStatus.BeginInvoke(53, "Error in IRCTC Connect", tCntrlName, null, null);
  785. bool result2 = false;
  786. return result2;
  787. IL_212D:
  788. this.method_36("Hitting home2 out Error= " + this.string_2);
  789. updtStatus.BeginInvoke(53, "Invalid Login", tCntrlName, null, null);
  790. result2 = false;
  791. return result2;
  792. IL_215E:
  793. this.method_36("Hitting Login CNF out Error= " + this.string_2);
  794. updtStatus.BeginInvoke(53, "Login Error 1", tCntrlName, null, null);
  795. result2 = false;
  796. return result2;
  797. IL_218F:
  798. this.method_36("Hitting Validate out Error= " + this.string_2);
  799. updtStatus.BeginInvoke(53, "Login Error 2", tCntrlName, null, null);
  800. result2 = false;
  801. return result2;
  802. IL_21C0:
  803. this.method_36("Hitting train list out Error= " + this.string_2);
  804. updtStatus.BeginInvoke(53, "Find Train Error", tCntrlName, null, null);
  805. result2 = false;
  806. return result2;
  807. IL_21F1:
  808. this.method_36("Hitting board enq out error= " + this.string_2);
  809. updtStatus.BeginInvoke(53, "Server Error Retrying..", tCntrlName, null, null);
  810. result2 = false;
  811. return result2;
  812. IL_2222:
  813. updtStatus.BeginInvoke(53, "You are Permitted 6 Ticket in a Month", tCntrlName, null, null);
  814. result2 = false;
  815. return result2;
  816. IL_223D:
  817. string text23 = this.string_4.Substring(this.string_4.IndexOf("captchaQuestion") + 18);
  818. text23 = text23.Substring(0, text23.IndexOf("\""));
  819. Image image_ = this.method_39(text23);
  820. string text24 = this.string_4.Substring(this.string_4.IndexOf("baseFare") + 11);
  821. text24.Substring(0, text24.IndexOf("\""));
  822. string text25 = this.string_4.Substring(this.string_4.IndexOf("totalCollectibleAmount") + 25);
  823. text15 = text25.Substring(0, text25.IndexOf("\""));
  824. text25 = this.string_4.Substring(this.string_4.IndexOf("vailablityStatus") + 19);
  825. text16 = text25.Substring(0, text25.IndexOf("\""));
  826. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.lblWrongCaptcha.Text = "Enter Captcha";
  827. while (true)
  828. {
  829. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.text_.Text = strName;
  830. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.method_1(cntrl, rect, tCntrlName, image_);
  831. if (lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.DialogResult != DialogResult.OK)
  832. {
  833. break;
  834. }
  835. string text26 = lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.txtImageData.Text.Trim();
  836. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.Dispose();
  837. if (IRComm.<>o__18.<>p__17 == null)
  838. {
  839. IRComm.<>o__18.<>p__17 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  840. }
  841. Func<CallSite, object, string> arg_2406_0 = IRComm.<>o__18.<>p__17.Target;
  842. CallSite arg_2406_1 = IRComm.<>o__18.<>p__17;
  843. if (IRComm.<>o__18.<>p__16 == null)
  844. {
  845. IRComm.<>o__18.<>p__16 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  846. {
  847. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  848. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  849. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  850. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  851. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  852. }));
  853. }
  854. text14 = arg_2406_0(arg_2406_1, IRComm.<>o__18.<>p__16.Target(IRComm.<>o__18.<>p__16, connect, randomJsonWebKey, arg, text8, arg2));
  855. this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/captchaverify/" + text18 + "/BOOKINGWS/" + text26;
  856. updtStatus.BeginInvoke(1, "Getting Fare", tCntrlName, null, null);
  857. this.method_36("Hitting captchaverify in= " + this.string_2);
  858. if (!this.method_40(this.string_1, null, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "GetTrain", text8, text13, text14, text12, ref arg2))
  859. {
  860. goto IL_2638;
  861. }
  862. this.method_36("Hitting captchaverify out= " + this.string_2);
  863. if (!this.string_4.Contains("captchaQuestion"))
  864. {
  865. goto IL_2669;
  866. }
  867. updtStatus.BeginInvoke(1, "Re_Validate Captcha", tCntrlName, null, null);
  868. if (IRComm.<>o__18.<>p__19 == null)
  869. {
  870. IRComm.<>o__18.<>p__19 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  871. }
  872. Func<CallSite, object, string> arg_2597_0 = IRComm.<>o__18.<>p__19.Target;
  873. CallSite arg_2597_1 = IRComm.<>o__18.<>p__19;
  874. if (IRComm.<>o__18.<>p__18 == null)
  875. {
  876. IRComm.<>o__18.<>p__18 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  877. {
  878. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  879. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  880. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  881. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  882. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  883. }));
  884. }
  885. text14 = arg_2597_0(arg_2597_1, IRComm.<>o__18.<>p__18.Target(IRComm.<>o__18.<>p__18, connect, randomJsonWebKey, arg, text8, arg2));
  886. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv.lblWrongCaptcha.Text = "Wrong Captcha Re-Enter";
  887. string text27 = this.string_4.Substring(this.string_4.IndexOf("captchaQuestion") + 18);
  888. text27 = text27.Substring(0, text27.IndexOf("\""));
  889. image_ = this.method_39(text27);
  890. lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv = new lFOdpJJARK5OTWdojN.XcuVyNiG4BP8NNc7Hv();
  891. }
  892. updtStatus.BeginInvoke(53, "Captcha Cancell", tCntrlName, null, null);
  893. result2 = false;
  894. return result2;
  895. IL_2638:
  896. this.method_36("Hitting captchaverify out error= " + this.string_2);
  897. updtStatus.BeginInvoke(53, "Captcha Error", tCntrlName, null, null);
  898. result2 = false;
  899. return result2;
  900. IL_2669:
  901. if (this.string_4.Contains("SUCCESS"))
  902. {
  903. text4 = text4 + " -" + DateTime.Now.ToString("mm:ss");
  904. updtStatus.BeginInvoke(1, "Getting Fare", tCntrlName, null, null);
  905. if (IRComm.<>o__18.<>p__21 == null)
  906. {
  907. IRComm.<>o__18.<>p__21 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  908. }
  909. Func<CallSite, object, string> arg_276A_0 = IRComm.<>o__18.<>p__21.Target;
  910. CallSite arg_276A_1 = IRComm.<>o__18.<>p__21;
  911. if (IRComm.<>o__18.<>p__20 == null)
  912. {
  913. IRComm.<>o__18.<>p__20 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  914. {
  915. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  916. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  917. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  918. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  919. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  920. }));
  921. }
  922. text14 = arg_276A_0(arg_276A_1, IRComm.<>o__18.<>p__20.Target(IRComm.<>o__18.<>p__20, connect, randomJsonWebKey, arg, text8, arg2));
  923. this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/bookingInitPayment/" + text18 + "?insurenceApplicable=";
  924. this.string_2 = "{\"amount\":" + text15 + ",\"apiName\":null,\"bankId\":77,\"errorMsg\":null,\"paramList\":null,\"serverId\":null,\"timeStamp\":null,\"transationId\":0,\"txnDate\":null,\"txnStatus\":1,\"txnType\":13}";
  925. string_ = this.string_2;
  926. string_2 = this.string_1;
  927. text4 = text4 + " Fare:" + DateTime.Now.ToString("HH:mm:ss");
  928. this.method_36("Getting Fare in= " + this.string_2);
  929. this.string_4 = this.method_41(this.string_1, "", this.string_2, "BankSelection", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
  930. this.method_36("Getting Fare out= " + this.string_2);
  931. if (!this.string_4.Contains("ORDER_ID"))
  932. {
  933. updtStatus.BeginInvoke(53, "Error In MakePayment", tCntrlName, null, null);
  934. result2 = false;
  935. return result2;
  936. }
  937. string text28 = this.string_4.Substring(this.string_4.IndexOf("MID") + 14);
  938. text28.Substring(0, text28.IndexOf("\""));
  939. text28 = this.string_4.Substring(this.string_4.IndexOf("ORDER_ID") + 19);
  940. text17 = text28.Substring(0, text28.IndexOf("\""));
  941. text28 = this.string_4.Substring(this.string_4.IndexOf("CUST_ID") + 18);
  942. text28.Substring(0, text28.IndexOf("\""));
  943. text28 = this.string_4.Substring(this.string_4.IndexOf("MSISDN") + 17);
  944. string text29 = text28.Substring(0, text28.IndexOf("\""));
  945. string text30 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
  946. if (text30 == "INDUSIND")
  947. {
  948. text30 = "INDS";
  949. }
  950. this.string_2 = string.Concat(new string[]
  951. {
  952. "MSISDN=",
  953. text29,
  954. "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
  955. text15,
  956. "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
  957. WebUtility.UrlEncode(value),
  958. "&THEME=merchant&BANK_CODE=",
  959. text30,
  960. "&PAYMENT_TYPE_ID=NB&CUST_ID=",
  961. text17,
  962. "&WEBSITE=IRCTCNWAP&ORDER_ID=",
  963. text17
  964. });
  965. this.string_1 = "https://www.irctc.co.in/eticketing/mbi/PaytmGen";
  966. this.method_36("Getting payment in= " + this.string_2);
  967. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "pay", text8, text13, text14, text12, ref arg2))
  968. {
  969. this.method_36("Getting payment out error= " + this.string_2);
  970. updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
  971. result2 = false;
  972. return result2;
  973. }
  974. this.method_36("Getting payment out= " + this.string_2);
  975. text28 = this.string_4.Substring(this.string_4.IndexOf("CHECKSUMHASH") + 15);
  976. text28 = text28.Substring(0, text28.IndexOf("\""));
  977. text28 = text28.ToString();
  978. string text31 = WebUtility.UrlEncode(text28).Trim();
  979. text31 = text31.Replace("%5Cn", "%0A");
  980. this.string_2 = string.Concat(new string[]
  981. {
  982. "MSISDN=",
  983. text29,
  984. "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&CHECKSUMHASH=",
  985. text31,
  986. "&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
  987. text15,
  988. "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
  989. WebUtility.UrlEncode(value),
  990. "&THEME=merchant&payt_STATUS=1&BANK_CODE=",
  991. text30,
  992. "&PAYMENT_TYPE_ID=NB&CUST_ID=",
  993. text17,
  994. "&WEBSITE=IRCTCNWAP&ORDER_ID=",
  995. text17
  996. });
  997. this.string_1 = "https://secure.paytm.in/oltp-web/processTransaction?ORDER_ID=" + text17;
  998. text4 = text4 + " FareRet:" + DateTime.Now.ToString("HH:mm:ss");
  999. this.method_36("Getting process payment in= " + this.string_2);
  1000. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
  1001. {
  1002. this.method_36("Getting process payment out error= " + this.string_2);
  1003. updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
  1004. result2 = false;
  1005. return result2;
  1006. }
  1007. this.method_36("Getting process payment out= " + this.string_2);
  1008. text4 = text4 + " BNK:" + DateTime.Now.ToString("HH:mm:ss");
  1009. this.class7_0.dateTime_0 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
  1010. }
  1011. IL_2CE7:
  1012. bool flag6 = false;
  1013. bool flag7 = false;
  1014. string text32 = "";
  1015. string text33 = text15;
  1016. string text34 = text16;
  1017. string text35 = "";
  1018. bool flag8 = false;
  1019. GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ;
  1020. string text40;
  1021. string text43;
  1022. while (true)
  1023. {
  1024. if (this.class7_0.string_23.Contains("_"))
  1025. {
  1026. flag6 = true;
  1027. text32 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
  1028. flag7 = this.class7_0.string_23.ToUpper().Contains("DEBIT");
  1029. if (!this.class7_0.string_23.ToUpper().Contains("_CC_") && !this.class7_0.string_23.ToUpper().Contains("_ICI_"))
  1030. {
  1031. if (!this.class7_0.string_23.ToUpper().Contains("_AXS_"))
  1032. {
  1033. if (this.class7_0.string_23.ToUpper().Contains("_PTM_"))
  1034. {
  1035. flag7 = true;
  1036. text32 += "_PTM";
  1037. }
  1038. }
  1039. else
  1040. {
  1041. flag7 = true;
  1042. text32 += "_AXS";
  1043. }
  1044. }
  1045. else
  1046. {
  1047. flag7 = true;
  1048. text32 += "_CC";
  1049. }
  1050. string text36 = IRComm.ogUepsPmcb(text32, flag7);
  1051. this.method_36("Received Bank ID : bankID = " + text36);
  1052. if (text36.Length <= 0)
  1053. {
  1054. break;
  1055. }
  1056. }
  1057. this.method_36("Checking Bank ID Existence");
  1058. text7 = "\r\n\r\nFare: " + text15 + text7;
  1059. if (updtStatus != null)
  1060. {
  1061. updtStatus.BeginInvoke(999, text15 + "||" + text16, tCntrlName, null, null);
  1062. }
  1063. if (num > 0.0)
  1064. {
  1065. this.method_36(string.Concat(new object[]
  1066. {
  1067. "PT Fare:",
  1068. num,
  1069. " Fare:",
  1070. text33
  1071. }));
  1072. double num9 = Conversion.Val(text33.Trim());
  1073. if (num9 > 0.0)
  1074. {
  1075. if (num9 > num)
  1076. {
  1077. if (updtStatus != null)
  1078. {
  1079. updtStatus.BeginInvoke(53, "Fare is higher then set limit", tCntrlName, null, null);
  1080. }
  1081. this.method_36("PT Fare higher");
  1082. isConfirmReq = true;
  1083. flag2 = true;
  1084. }
  1085. }
  1086. else
  1087. {
  1088. isConfirmReq = true;
  1089. }
  1090. }
  1091. if (this.class7_0.bool_3 && text34.ToUpper().Contains("WL"))
  1092. {
  1093. frmWL expr_2E00 = new frmWL();
  1094. expr_2E00.text_.Text = strName;
  1095. expr_2E00.method_1(cntrl, rect, text34);
  1096. DialogResult dialogResult = expr_2E00.DialogResult;
  1097. expr_2E00.Dispose();
  1098. if (dialogResult == DialogResult.Cancel)
  1099. {
  1100. goto IL_411C;
  1101. }
  1102. }
  1103. bool flag9 = false;
  1104. obj = IRComm.object_6;
  1105. lock (obj)
  1106. {
  1107. if (IRComm.list_3.Contains(strName))
  1108. {
  1109. if (updtStatus != null)
  1110. {
  1111. updtStatus.BeginInvoke(1, "Another Ticket already Proceed.", tCntrlName, null, null);
  1112. }
  1113. flag9 = false;
  1114. }
  1115. else
  1116. {
  1117. IRComm.list_3.Add(strName);
  1118. flag9 = true;
  1119. }
  1120. }
  1121. if (!flag9 && !flag8)
  1122. {
  1123. this.method_36("Another Ticket already Procced. Name = " + strName);
  1124. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ = new GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ();
  1125. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_1 = this.class7_0.string_23;
  1126. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.bool_0 = true;
  1127. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_6 = "Rs." + text33 + " - " + text34;
  1128. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.method_0(cntrl, rect);
  1129. if (gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.DialogResult != DialogResult.OK)
  1130. {
  1131. goto IL_4124;
  1132. }
  1133. this.method_36("User Accepted Proceed choice");
  1134. if (gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_1 != this.class7_0.string_23)
  1135. {
  1136. this.class7_0.string_24 = gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_2;
  1137. this.class7_0.string_23 = gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.string_1;
  1138. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.Dispose();
  1139. this.method_36("New Bank details set, re-hitting " + this.class7_0.string_23);
  1140. flag8 = true;
  1141. continue;
  1142. }
  1143. }
  1144. string text37 = text5;
  1145. text5 = string.Concat(new string[]
  1146. {
  1147. text37,
  1148. " PmtRet:",
  1149. DateTime.Now.ToString("mm:ss"),
  1150. "-",
  1151. text32
  1152. });
  1153. string text38 = "";
  1154. bool flag10 = false;
  1155. Stopwatch stopwatch = new Stopwatch();
  1156. if (!flag6)
  1157. {
  1158. goto IL_43E2;
  1159. }
  1160. if (isConfirmReq)
  1161. {
  1162. GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ expr_2FCC = new GnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ();
  1163. expr_2FCC.bool_1 = true;
  1164. expr_2FCC.bool_4 = flag2;
  1165. expr_2FCC.string_3 = text2;
  1166. expr_2FCC.string_4 = text3;
  1167. expr_2FCC.string_5 = "Bank: " + this.class7_0.string_23;
  1168. expr_2FCC.string_6 = "Rs." + text33 + " - " + text34;
  1169. expr_2FCC.string_7 = "Fare Limit: Rs." + num + "/-";
  1170. expr_2FCC.method_0(cntrl, rect);
  1171. DialogResult dialogResult2 = expr_2FCC.DialogResult;
  1172. expr_2FCC.Dispose();
  1173. if (dialogResult2 != DialogResult.OK)
  1174. {
  1175. goto IL_43B8;
  1176. }
  1177. }
  1178. obj = IRComm.object_8;
  1179. lock (obj)
  1180. {
  1181. if (IRComm.list_5.Contains(strName))
  1182. {
  1183. if (updtStatus != null)
  1184. {
  1185. updtStatus.BeginInvoke(101, "PNR Booked in another Pair", tCntrlName, null, null);
  1186. }
  1187. result2 = false;
  1188. return result2;
  1189. }
  1190. }
  1191. text5 = text5 + " BNK:" + DateTime.Now.ToString("mm:ss");
  1192. this.webProxy_2 = null;
  1193. if (this.class7_0.string_13.ToUpper() == this.string_13.ToUpper())
  1194. {
  1195. this.webProxy_2 = this.webProxy_0;
  1196. }
  1197. stopwatch.Start();
  1198. if (flag7)
  1199. {
  1200. goto IL_43B8;
  1201. }
  1202. if (updtStatus != null)
  1203. {
  1204. updtStatus.BeginInvoke(1, "Processing " + text32 + " Net-Banking for Payment! ", tCntrlName, null, null);
  1205. }
  1206. string text39 = text32.ToUpper().Trim();
  1207. uint num10 = <PrivateImplementationDetails>.ComputeStringHash(text39);
  1208. if (num10 <= 2471879920u)
  1209. {
  1210. if (num10 <= 1145574292u)
  1211. {
  1212. if (num10 != 711141627u)
  1213. {
  1214. if (num10 != 1005593931u)
  1215. {
  1216. if (num10 == 1145574292u)
  1217. {
  1218. if (text39 == "UNION")
  1219. {
  1220. flag10 = this.method_84(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus, tCntrlName);
  1221. }
  1222. }
  1223. }
  1224. else
  1225. {
  1226. if (text39 == "SBI")
  1227. {
  1228. CookieContainer cookieContainer = null;
  1229. if (!(flag10 = this.method_58(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, ref cookieContainer)) && cookieContainer != null)
  1230. {
  1231. ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_57), cookieContainer);
  1232. }
  1233. }
  1234. }
  1235. }
  1236. else
  1237. {
  1238. if (text39 == "FREECHARGE")
  1239. {
  1240. flag10 = this.method_80(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus);
  1241. }
  1242. }
  1243. }
  1244. else
  1245. {
  1246. if (num10 != 1882355188u)
  1247. {
  1248. if (num10 != 1934763940u)
  1249. {
  1250. if (num10 == 2471879920u)
  1251. {
  1252. if (text39 == "YES")
  1253. {
  1254. flag10 = this.method_78(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
  1255. }
  1256. }
  1257. }
  1258. else
  1259. {
  1260. if (text39 == "ICICI")
  1261. {
  1262. flag10 = this.method_66(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, this.class7_0.string_23);
  1263. }
  1264. }
  1265. }
  1266. else
  1267. {
  1268. if (text39 == "AXIS")
  1269. {
  1270. flag10 = this.method_51(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
  1271. }
  1272. }
  1273. }
  1274. }
  1275. else
  1276. {
  1277. if (num10 <= 3521493751u)
  1278. {
  1279. if (num10 != 2970694650u)
  1280. {
  1281. if (num10 != 3504019421u)
  1282. {
  1283. if (num10 == 3521493751u)
  1284. {
  1285. if (text39 == "SBINEPAL")
  1286. {
  1287. flag10 = this.method_97(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus, tCntrlName);
  1288. }
  1289. }
  1290. }
  1291. else
  1292. {
  1293. if (text39 == "IDBI")
  1294. {
  1295. flag10 = this.method_68(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
  1296. }
  1297. }
  1298. }
  1299. else
  1300. {
  1301. if (text39 == "HDFC")
  1302. {
  1303. flag10 = this.method_62(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
  1304. }
  1305. }
  1306. }
  1307. else
  1308. {
  1309. if (num10 <= 3957863495u)
  1310. {
  1311. if (num10 != 3581112554u)
  1312. {
  1313. if (num10 == 3957863495u)
  1314. {
  1315. if (text39 == "VIJAYA")
  1316. {
  1317. flag10 = this.method_67(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, this.class7_0.string_23);
  1318. }
  1319. }
  1320. }
  1321. else
  1322. {
  1323. if (text39 == "MOBIKWIK")
  1324. {
  1325. flag10 = this.method_79(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus);
  1326. }
  1327. }
  1328. }
  1329. else
  1330. {
  1331. if (num10 != 4021309901u)
  1332. {
  1333. if (num10 == 4249340199u)
  1334. {
  1335. if (text39 == "INDUSIND")
  1336. {
  1337. flag10 = this.method_72(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38);
  1338. }
  1339. }
  1340. }
  1341. else
  1342. {
  1343. if (text39 == "CORP")
  1344. {
  1345. flag10 = this.method_85(this.string_4, this.class7_0.string_24, text7, ref text35, ref text38, updtStatus, tCntrlName);
  1346. }
  1347. }
  1348. }
  1349. }
  1350. }
  1351. if (flag10)
  1352. {
  1353. if (updtStatus != null)
  1354. {
  1355. updtStatus.BeginInvoke(1, "Payment Successful! ", tCntrlName, null, null);
  1356. }
  1357. this.string_3 = text38;
  1358. text5 = text5 + " BNK-Ret:" + DateTime.Now.ToString("mm:ss");
  1359. stopwatch.Stop();
  1360. text40 = " BNK-Ret:" + DateTime.Now.ToString("mm:ss");
  1361. this.class7_0.SypKtefpLh(false, "Payment Success", text33, "", this.ClassID);
  1362. string text41 = "";
  1363. string a = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
  1364. updtStatus.BeginInvoke(1, "Final Setup", tCntrlName, null, null);
  1365. if (a == "HDFC")
  1366. {
  1367. this.string_2 = IRComm.GetBankRedirectInp(text35, ref text41, true);
  1368. }
  1369. if (a == "SBI")
  1370. {
  1371. this.string_2 = this.method_6(text35, "name='encdata' id='encdata", 50, "' /");
  1372. this.string_1 = "https://secure.paytm.in/oltp/HANDLER_WEB_RESP/SBINB/3DSRESP";
  1373. this.string_2 = "encdata=" + WebUtility.UrlEncode(this.string_2);
  1374. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
  1375. {
  1376. goto IL_4155;
  1377. }
  1378. this.string_2 = IRComm.GetBankRedirectInp(this.string_4, ref text41, false);
  1379. this.string_3 = this.string_1;
  1380. }
  1381. if (a == "INDUSIND")
  1382. {
  1383. this.string_2 = this.method_6(text35, "location.href = ", 17, "'");
  1384. this.string_1 = this.string_2;
  1385. if (!this.method_40(this.string_1, null, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
  1386. {
  1387. goto IL_4170;
  1388. }
  1389. this.string_2 = IRComm.GetBankRedirectInp(this.string_4, ref text41, false);
  1390. this.string_3 = this.string_1;
  1391. }
  1392. this.string_1 = "https://www.irctc.co.in/eticketing/mbi/PaytmVerify";
  1393. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
  1394. {
  1395. goto IL_418B;
  1396. }
  1397. if (IRComm.<>o__18.<>p__23 == null)
  1398. {
  1399. IRComm.<>o__18.<>p__23 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  1400. }
  1401. Func<CallSite, object, string> arg_3869_0 = IRComm.<>o__18.<>p__23.Target;
  1402. CallSite arg_3869_1 = IRComm.<>o__18.<>p__23;
  1403. if (IRComm.<>o__18.<>p__22 == null)
  1404. {
  1405. IRComm.<>o__18.<>p__22 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  1406. {
  1407. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  1408. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  1409. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  1410. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  1411. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  1412. }));
  1413. }
  1414. text14 = arg_3869_0(arg_3869_1, IRComm.<>o__18.<>p__22.Target(IRComm.<>o__18.<>p__22, connect, randomJsonWebKey, arg, text8, arg2));
  1415. text = this.method_6(this.string_4, "BANKNAME", 11, "\"");
  1416. string text42 = this.method_6(this.string_4, "BANKTXNID", 12, "\"");
  1417. string text26 = this.method_6(this.string_4, "TXNAMOUNT", 12, "\"");
  1418. text2 = this.method_6(this.string_4, "TXNDATE", 10, "\"");
  1419. text3 = this.method_6(this.string_4, "0\",\"TXNID", 12, "\"");
  1420. this.string_1 = "https://www.irctc.co.in/eticketing/protected/mapps1/verifyPayment/" + text18;
  1421. this.string_2 = string.Concat(new string[]
  1422. {
  1423. "{\"amount\":",
  1424. text26,
  1425. ",\"bankId\":77,\"errorMsg\":null,\"paramList\":[{\"key\":\"BANKNAME\",\"value\":\"",
  1426. text,
  1427. "\"},{\"key\":\"BANKTXNID\",\"value\":\"",
  1428. text42,
  1429. "\"},{\"key\":\"CURRENCY\",\"value\":\"INR\"},{\"key\":\"GATEWAYNAME\",\"value\":\"",
  1430. text,
  1431. "\"},{\"key\":\"IS_CHECKSUM_VALID\",\"value\":\"Y\"},{\"key\":\"MID\",\"value\":\"IRCTCn13407115805523\"},{\"key\":\"ORDERID\",\"value\":\"",
  1432. text17,
  1433. "\"},{\"key\":\"PAYMENTMODE\",\"value\":\"NB\"},{\"key\":\"RESPCODE\",\"value\":\"01\"},{\"key\":\"RESPMSG\",\"value\":\"Txn Successful.\"},{\"key\":\"STATUS\",\"value\":\"TXN_SUCCESS\"},{\"key\":\"TXNAMOUNT\",\"value\":\"",
  1434. text26,
  1435. "\"},{\"key\":\"TXNDATE\",\"value\":\"",
  1436. text2,
  1437. "\"},{\"key\":\"TXNID\",\"value\":\"",
  1438. text3,
  1439. "\"}],\"serverId\":null,\"timeStamp\":null,\"transationId\":0,\"txnDate\":null,\"txnStatus\":1,\"txnType\":13}"
  1440. });
  1441. while (DateTime.Now.Subtract(this.class7_0.dateTime_0).TotalMilliseconds < 10000.0)
  1442. {
  1443. Thread.Sleep(50);
  1444. }
  1445. updtStatus.BeginInvoke(1, "Try To Genrate PNR", tCntrlName, null, null);
  1446. Console.WriteLine(this.string_2);
  1447. this.string_2 = this.string_2.ToString();
  1448. text43 = " IR-Hit" + DateTime.Now.ToString("HH:mm:ss");
  1449. this.string_4 = this.method_41(this.string_1, "", this.string_2, "Final", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
  1450. if (this.string_4.Contains("pnrNumber"))
  1451. {
  1452. goto IL_41A6;
  1453. }
  1454. }
  1455. stopwatch.Stop();
  1456. this.method_36(text32 + " NB Failed : strErr = " + text38);
  1457. if (updtStatus != null)
  1458. {
  1459. updtStatus.BeginInvoke(1, text38, tCntrlName, null, null);
  1460. }
  1461. updtStatus.BeginInvoke(1, "Rety Payment", tCntrlName, null, null);
  1462. if (IRComm.<>o__18.<>p__25 == null)
  1463. {
  1464. IRComm.<>o__18.<>p__25 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(IRComm)));
  1465. }
  1466. Func<CallSite, object, string> arg_3B52_0 = IRComm.<>o__18.<>p__25.Target;
  1467. CallSite arg_3B52_1 = IRComm.<>o__18.<>p__25;
  1468. if (IRComm.<>o__18.<>p__24 == null)
  1469. {
  1470. IRComm.<>o__18.<>p__24 = CallSite<Func<CallSite, Connect, object, object, string, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "createJwtToken", null, typeof(IRComm), new CSharpArgumentInfo[]
  1471. {
  1472. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  1473. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  1474. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
  1475. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  1476. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null)
  1477. }));
  1478. }
  1479. text14 = arg_3B52_0(arg_3B52_1, IRComm.<>o__18.<>p__24.Target(IRComm.<>o__18.<>p__24, connect, randomJsonWebKey, arg, text8, arg2));
  1480. this.method_36("Getting Fare in= " + this.string_2);
  1481. this.string_4 = this.method_41(string_2, "", string_, "BankSelection", this.cookieContainer_0, this.webProxy_0, false, text8, text13, text14, text12, ref arg2);
  1482. this.method_36("Getting Fare out= " + this.string_2);
  1483. if (!this.string_4.Contains("ORDER_ID"))
  1484. {
  1485. goto IL_433B;
  1486. }
  1487. string text44 = this.string_4.Substring(this.string_4.IndexOf("MID") + 14);
  1488. text44.Substring(0, text44.IndexOf("\""));
  1489. text44 = this.string_4.Substring(this.string_4.IndexOf("ORDER_ID") + 19);
  1490. text17 = text44.Substring(0, text44.IndexOf("\""));
  1491. text44 = this.string_4.Substring(this.string_4.IndexOf("CUST_ID") + 18);
  1492. text44.Substring(0, text44.IndexOf("\""));
  1493. text44 = this.string_4.Substring(this.string_4.IndexOf("MSISDN") + 17);
  1494. string text29 = text44.Substring(0, text44.IndexOf("\""));
  1495. string text45 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
  1496. if (text45 == "INDUSIND")
  1497. {
  1498. text45 = "INDS";
  1499. }
  1500. this.string_2 = string.Concat(new string[]
  1501. {
  1502. "MSISDN=",
  1503. text29,
  1504. "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
  1505. text15,
  1506. "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
  1507. WebUtility.UrlEncode(value),
  1508. "&THEME=merchant&BANK_CODE=",
  1509. text45,
  1510. "&PAYMENT_TYPE_ID=NB&CUST_ID=",
  1511. text17,
  1512. "&WEBSITE=IRCTCNWAP&ORDER_ID=",
  1513. text17
  1514. });
  1515. this.string_1 = "https://www.irctc.co.in/eticketing/mbi/PaytmGen";
  1516. this.method_36("Getting payment in= " + this.string_2);
  1517. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "pay", text8, text13, text14, text12, ref arg2))
  1518. {
  1519. goto IL_4356;
  1520. }
  1521. this.method_36("Getting payment out= " + this.string_2);
  1522. text44 = this.string_4.Substring(this.string_4.IndexOf("CHECKSUMHASH") + 15);
  1523. text44 = text44.Substring(0, text44.IndexOf("\""));
  1524. text44 = text44.ToString();
  1525. string text31 = WebUtility.UrlEncode(text44).Trim();
  1526. text31 = text31.Replace("%5Cn", "%0A");
  1527. this.string_2 = string.Concat(new string[]
  1528. {
  1529. "MSISDN=",
  1530. text29,
  1531. "&INDUSTRY_TYPE_ID=GovtUtility&CHANNEL_ID=WAP&CHECKSUMHASH=",
  1532. text31,
  1533. "&REQUEST_TYPE=PAYTM_EXPRESS&TXN_AMOUNT=",
  1534. text15,
  1535. "0&AUTH_MODE=USRPWD&MID=IRCTCn13407115805523&EMAIL=",
  1536. WebUtility.UrlEncode(value),
  1537. "&THEME=merchant&payt_STATUS=1&BANK_CODE=",
  1538. text45,
  1539. "&PAYMENT_TYPE_ID=NB&CUST_ID=",
  1540. text17,
  1541. "&WEBSITE=IRCTCNWAP&ORDER_ID=",
  1542. text17
  1543. });
  1544. this.string_1 = "https://secure.paytm.in/oltp-web/processTransaction?ORDER_ID=" + text17;
  1545. this.method_36("Getting process payment in= " + this.string_2);
  1546. if (!this.method_40(this.string_1, this.string_2, this.string_3, this.webProxy_0, ref this.cookieContainer_0, true, true, 60000, 60000, ref this.string_4, ref this.string_5, ref this.webException_0, "Bank", text8, text13, text14, text12, ref arg2))
  1547. {
  1548. goto IL_4387;
  1549. }
  1550. this.method_36("Getting process payment out= " + this.string_2);
  1551. this.class7_0.dateTime_0 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second, DateTime.Now.Millisecond);
  1552. }
  1553. this.method_36("Bank ID Not Found, Returning.");
  1554. if (updtStatus != null)
  1555. {
  1556. updtStatus.BeginInvoke(53, "Technical Issue while Making Payment.", tCntrlName, null, null);
  1557. }
  1558. result2 = false;
  1559. return result2;
  1560. IL_411C:
  1561. result2 = false;
  1562. return result2;
  1563. IL_4124:
  1564. this.method_36("User Cancelled Proceed choice");
  1565. if (updtStatus != null)
  1566. {
  1567. updtStatus.BeginInvoke(101, "Another Ticket already Proceed.! ", tCntrlName, null, null);
  1568. }
  1569. gnUGHqgH4iSHskbQei.CkNp8HNBYZgEca8RcJ.Dispose();
  1570. result2 = false;
  1571. return result2;
  1572. IL_4155:
  1573. updtStatus.BeginInvoke(53, "Final Error", tCntrlName, null, null);
  1574. result2 = false;
  1575. return result2;
  1576. IL_4170:
  1577. updtStatus.BeginInvoke(53, "Final Error", tCntrlName, null, null);
  1578. result2 = false;
  1579. return result2;
  1580. IL_418B:
  1581. updtStatus.BeginInvoke(53, "Final Error", tCntrlName, null, null);
  1582. result2 = false;
  1583. return result2;
  1584. IL_41A6:
  1585. string text46 = string.Concat(new string[]
  1586. {
  1587. this.class7_0.string_8,
  1588. " ",
  1589. text4,
  1590. text40,
  1591. text43,
  1592. " -",
  1593. DateTime.Now.ToString("mm:ss")
  1594. });
  1595. text = this.string_4.Substring(this.string_4.IndexOf("pnrNumber") + 12);
  1596. text = text.Substring(0, text.IndexOf("\""));
  1597. string string_5 = text;
  1598. text = text + " - " + DateTime.Now.ToString("HH:mm:ss");
  1599. this.method_36("PNR Booking PNR : " + text);
  1600. txnID = string.Concat(new string[]
  1601. {
  1602. text,
  1603. " - ",
  1604. text32,
  1605. flag7 ? "_Debit" : "_NB",
  1606. " - ",
  1607. this.class7_0.string_2,
  1608. " - ",
  1609. (this.double_0 / 1000.0).ToString(),
  1610. " - ",
  1611. text46,
  1612. " - ",
  1613. "IRCTC_CONNECT"
  1614. });
  1615. updtStatus.BeginInvoke(5, "PNR - " + text + " - " + DateTime.Now.ToString("HH:mm:ss"), tCntrlName, null, null);
  1616. this.class7_0.SypKtefpLh(true, "Payment Success", text33, string_5, this.ClassID);
  1617. result2 = true;
  1618. return result2;
  1619. IL_433B:
  1620. updtStatus.BeginInvoke(53, "Error In MakePayment", tCntrlName, null, null);
  1621. result2 = false;
  1622. return result2;
  1623. IL_4356:
  1624. this.method_36("Getting payment out error= " + this.string_2);
  1625. updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
  1626. result2 = false;
  1627. return result2;
  1628. IL_4387:
  1629. this.method_36("Getting process payment out error= " + this.string_2);
  1630. updtStatus.BeginInvoke(53, "Error in MakePayment", tCntrlName, null, null);
  1631. result2 = false;
  1632. return result2;
  1633. IL_43B8:
  1634. if (updtStatus != null)
  1635. {
  1636. updtStatus.BeginInvoke(53, "User Select to Stop Payment! ", tCntrlName, null, null);
  1637. }
  1638. this.method_36("User Select to Stop Payment!");
  1639. result2 = false;
  1640. return result2;
  1641. IL_43E2:
  1642. result2 = false;
  1643. return result2;
  1644. }
  1645. }
  1646. catch (Exception ex2)
  1647. {
  1648. if (updtStatus != null)
  1649. {
  1650. updtStatus.BeginInvoke(53, "Send Log, Unexpected Error Occured! ", tCntrlName, null, null);
  1651. }
  1652. this.method_37("PerformB:OuterCatch", ex2.Message);
  1653. }
  1654. finally
  1655. {
  1656. if (this.cookieContainer_0 != null)
  1657. {
  1658. ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_12), false);
  1659. }
  1660. try
  1661. {
  1662. ServicePointManager.FindServicePoint(new Uri("https://www.irctc.co.in")).CloseConnectionGroup(this.ConnectionGroupID);
  1663. if (this.class7_0 != null && this.bool_19)
  1664. {
  1665. string text47 = this.class7_0.string_23.Substring(0, this.class7_0.string_23.IndexOf('_')).Trim();
  1666. bool bool_ = this.class7_0.string_23.ToUpper().Contains("DEBIT");
  1667. if (this.class7_0.string_23.ToUpper().Contains("_CC"))
  1668. {
  1669. text47 += "_CC";
  1670. bool_ = true;
  1671. }
  1672. ServicePointManager.FindServicePoint(new Uri(this.method_22(text47, bool_))).CloseConnectionGroup(this.ConnectionGroupID);
  1673. }
  1674. }
  1675. catch
  1676. {
  1677. }
  1678. obj = IRComm.object_4;
  1679. lock (obj)
  1680. {
  1681. if (IRComm.list_2.Contains(this.class7_0.string_13))
  1682. {
  1683. IRComm.list_2.Remove(this.class7_0.string_13);
  1684. }
  1685. }
  1686. bool flag11 = false;
  1687. obj = IRComm.object_5;
  1688. lock (obj)
  1689. {
  1690. if (IRComm.dictionary_1.ContainsKey(text))
  1691. {
  1692. int num11 = IRComm.dictionary_1[text] - 1;
  1693. if (num11 > 0)
  1694. {
  1695. IRComm.dictionary_1[text] = num11;
  1696. }
  1697. else
  1698. {
  1699. Interlocked.Decrement(ref IRComm.int_2);
  1700. IRComm.dictionary_1.Remove(text);
  1701. flag11 = true;
  1702. }
  1703. }
  1704. }
  1705. if (flag11)
  1706. {
  1707. obj = IRComm.object_6;
  1708. lock (obj)
  1709. {
  1710. IRComm.list_3.Remove(strName);
  1711. }
  1712. obj = IRComm.object_9;
  1713. lock (obj)
  1714. {
  1715. if (IRComm.list_6.Contains(strName))
  1716. {
  1717. IRComm.list_6.Remove(strName);
  1718. }
  1719. }
  1720. if (IRComm.list_2.Count <= 0)
  1721. {
  1722. obj = IRComm.object_8;
  1723. lock (obj)
  1724. {
  1725. IRComm.list_5.Clear();
  1726. }
  1727. }
  1728. }
  1729. if (IRComm.waitCallback_0 == null)
  1730. {
  1731. IRComm.waitCallback_0 = new WaitCallback(IRComm.smethod_24);
  1732. }
  1733. ThreadPool.QueueUserWorkItem(IRComm.waitCallback_0);
  1734. }
  1735. return result;
  1736. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement