Guest User

irctc.co.in/nget

a guest
Jun 8th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.24 KB | None | 0 0
  1. public bool PerformA(Control cntrl, Rectangle rect, string strName, string userDetails, string iDetails, string tCntrlName, ref string txnID, bool isConfirmReq, bool isP, int SlotID, UpdateTStatus updtStatus, string fir)
  2. {
  3. bool result;
  4. if (!IRComm.bool_20)
  5. {
  6. if (!IRComm.bool_0)
  7. {
  8. MessageBox.Show("ABS has been Stopped Permanently!", "ABS Stopped", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  9. }
  10. else
  11. {
  12. MessageBox.Show("Please use latest version of the Software", "Old Version", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  13. }
  14. result = false;
  15. }
  16. else
  17. {
  18. frmCaptcha frmCaptcha = new frmCaptcha(this, null, "", "");
  19. Class3.dictionary_3 = null;
  20. Class3.dictionary_4 = null;
  21. Class3.dictionary_5 = null;
  22. string text = "";
  23. string text2 = "";
  24. string string_ = "";
  25. string string_2 = "";
  26. string text3 = "";
  27. this.LogInSite = "APP";
  28. this.LogInMethod = "CAP";
  29. double num = 0.0;
  30. this.control_0 = cntrl;
  31. this.rectangle_0 = rect;
  32. this.bool_7 = isConfirmReq;
  33. int count = cntrl.Controls["pnl"].Controls.Count;
  34. int count2 = cntrl.Controls["pnl"].Controls[0].Controls.Count;
  35. Control control = cntrl.Controls["pnl"].Controls[0];
  36. string text4 = ((ComboBox)control.Controls["lblGateway"]).SelectedItem.ToString();
  37. bool flag = false;
  38. bool flag2 = false;
  39. bool flag3 = false;
  40. bool flag4 = false;
  41. bool flag5 = false;
  42. bool flag6 = false;
  43. bool flag7 = false;
  44. string[] array = new string[1];
  45. List<Class9> list = new List<Class9>();
  46. string[] array2 = iDetails.Split(new string[]
  47. {
  48. "||"
  49. }, StringSplitOptions.None);
  50. string[] array3 = txnID.Split(new string[]
  51. {
  52. "-.-"
  53. }, StringSplitOptions.RemoveEmptyEntries);
  54. if (array3 != null && array3.Length > 0)
  55. {
  56. text = array3[0];
  57. }
  58. if (string.IsNullOrEmpty(text))
  59. {
  60. text = "1";
  61. }
  62. string text5 = "";
  63. if (!string.IsNullOrEmpty(fir) && SlotID > 2)
  64. {
  65. try
  66. {
  67. string[] array4 = fir.Split(new string[]
  68. {
  69. "||"
  70. }, StringSplitOptions.None);
  71. this.webProxy_0 = new WebProxy(array4[0].Trim(), int.Parse(array4[1].Trim()));
  72. this.webProxy_0.BypassProxyOnLocal = true;
  73. this.webProxy_0.Credentials = new NetworkCredential(array4[2].Trim(), array4[3].Trim());
  74. text3 = text3 + " Pxy:" + array4[0];
  75. text5 = "_Pxy:" + array4[0];
  76. this.method_30("Proxy Details: " + fir);
  77. goto IL_311;
  78. }
  79. catch (Exception ex)
  80. {
  81. this.method_31("Creating Proxy", ex.Message);
  82. MessageBox.Show("Error Occured while Setting IP, Please try in another slot.", "Proxy", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  83. if (updtStatus != null)
  84. {
  85. updtStatus.BeginInvoke(53, "IP Issue, Try Another slot!", tCntrlName, null, null);
  86. }
  87. result = false;
  88. return result;
  89. }
  90. }
  91. this.webProxy_0 = null;
  92. IL_311:
  93. if (!string.IsNullOrEmpty(userDetails))
  94. {
  95. array = userDetails.Split(new string[]
  96. {
  97. "||"
  98. }, StringSplitOptions.None);
  99. if (array != null && array.Length > 2)
  100. {
  101. if (IRComm.string_20.Length < 1)
  102. {
  103. IRComm.string_20 = array[2];
  104. }
  105. int.TryParse(array[3], out IRComm.int_1);
  106. if (IRComm.int_1 < 2)
  107. {
  108. IRComm.int_1 = 2;
  109. }
  110. IRComm.int_1 *= 2;
  111. string string_3 = array[4];
  112. this.method_32(string_3);
  113. }
  114. }
  115. this.class6_0 = new Class6();
  116. this.class6_0.ipproxylist = fir;
  117. if (!this.class6_0.method_1(strName))
  118. {
  119. MessageBox.Show(IRComm.smethod_5(), "Error Occured while Reading Saved Ticket! ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  120. result = false;
  121. }
  122. else
  123. {
  124. this.class6_0.string_13 = array2[0];
  125. this.class6_0.string_14 = array2[1];
  126. if (array2.Length >= 3 && array2[2] != null)
  127. {
  128. if (IRComm.bool_0 && array2[2] != this.class6_0.string_8)
  129. {
  130. this.class6_0.string_8 = array2[2];
  131. }
  132. }
  133. this.BookingDtSetup();
  134. string text6 = this.class6_0.string_0;
  135. if (this.class6_0.dateTime_0 < new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
  136. {
  137. MessageBox.Show(IRComm.smethod_5(), "Date of Journey cannot be less than Today!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
  138. if (updtStatus != null)
  139. {
  140. updtStatus.BeginInvoke(53, "Date of Journey cannot less than Today!", tCntrlName, null, null);
  141. }
  142. result = false;
  143. }
  144. else if (this.class6_0.string_22 == "4")
  145. {
  146. MessageBox.Show(IRComm.smethod_5(), "You have not opt for Manual Payments! Please Select any Auto Payment Mode.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  147. if (updtStatus != null)
  148. {
  149. updtStatus.BeginInvoke(53, "Manual Payments not Allowed!", tCntrlName, null, null);
  150. }
  151. result = false;
  152. }
  153. else
  154. {
  155. if (array3 != null && array3.Length >= 2)
  156. {
  157. this.class6_0.string_23 = array3[1];
  158. if (this.class6_0.string_23.Contains("-+-"))
  159. {
  160. this.class6_0.string_233 = this.class6_0.string_23.Substring(this.class6_0.string_23.IndexOf("-+-") + 3);
  161. this.class6_0.string_23 = this.class6_0.string_23.Substring(0, this.class6_0.string_23.IndexOf("-+-"));
  162. }
  163. this.class6_0.string_24 = array3[2];
  164. if (this.class6_0.string_24.Contains("-+-"))
  165. {
  166. this.class6_0.string_244 = this.class6_0.string_24.Substring(this.class6_0.string_24.IndexOf("-+-") + 3);
  167. this.class6_0.string_24 = this.class6_0.string_24.Substring(0, this.class6_0.string_24.IndexOf("-+-"));
  168. }
  169. }
  170. this.webProxy_1 = null;
  171. if (this.class6_0.string_13.ToUpper() == this.string_19.ToUpper())
  172. {
  173. if (this.webProxy_0 == null)
  174. {
  175. MessageBox.Show("Without proxy not allowed.");
  176. result = false;
  177. return result;
  178. }
  179. this.webProxy_1 = this.webProxy_0;
  180. }
  181. try
  182. {
  183. if (!this.class6_0.string_23.Contains("SBI_") && !this.class6_0.string_23.Contains("HDFC_") && !this.class6_0.string_23.Contains("ICICI_") && !this.class6_0.string_23.Contains("IDBI_") && !this.class6_0.string_23.Contains("UNION_") && !this.class6_0.string_23.ToUpper().Contains("MOBIKWIK_") && !this.class6_0.string_23.ToUpper().Contains("_DC") && !this.class6_0.string_23.ToUpper().Contains("_CC"))
  184. {
  185. if (updtStatus != null)
  186. {
  187. }
  188. }
  189. if (this.class6_0.string_23.Contains("ICICI") && !this.class6_0.string_23.ToUpper().Contains("_DC") && !this.class6_0.string_23.ToUpper().Contains("_CC"))
  190. {
  191. if (this.class6_0.string_24.Split(new string[]
  192. {
  193. "||"
  194. }, StringSplitOptions.RemoveEmptyEntries).Length > 4)
  195. {
  196. text3 += " :ICIA: ";
  197. }
  198. else
  199. {
  200. this.XCordinate = cntrl.PointToScreen(rect.Location).X;
  201. this.YCordinate = cntrl.PointToScreen(rect.Location).Y;
  202. string text7 = 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();
  203. if (text7.Length < 5)
  204. {
  205. if (updtStatus != null)
  206. {
  207. updtStatus.BeginInvoke(53, "Valid OTP Required!", tCntrlName, null, null);
  208. }
  209. result = false;
  210. return result;
  211. }
  212. this.class6_0.string_24 = this.class6_0.string_24 + "||" + text7;
  213. }
  214. }
  215. if (this.class6_0.string_23.Contains("MOBIKWIK"))
  216. {
  217. string[] array5 = this.class6_0.string_24.Split(new string[]
  218. {
  219. "||"
  220. }, StringSplitOptions.None);
  221. string text7 = array5[0].Trim();
  222. if (text7.Contains("@"))
  223. {
  224. string oldValue = text7;
  225. text7 = Interaction.InputBox("Enter Mobile No For OTP Of Mobikwik That Recive on Your Mobile no.", "Mobikwik OTP", "", cntrl.PointToScreen(rect.Location).X, cntrl.PointToScreen(rect.Location).Y).Trim();
  226. this.class6_0.string_24 = this.class6_0.string_24.Replace(oldValue, text7);
  227. }
  228. string text8 = "";
  229. string text9 = "";
  230. DialogResult dialogResult = MessageBox.Show("Do You Want to Bypass Mobikwik Now, else Enter Privious OTP?", "Mobikwik OTP", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  231. if (dialogResult == DialogResult.Yes)
  232. {
  233. CookieContainer cookieContainer = null;
  234. if (!this.method_33("https://webapi.mobikwik.com/p/account/otp/cell?v=1.0.371", "{\"cell\":\"" + text7 + "\"}", "https://m.mobikwik.com/", this.webProxy_2, ref cookieContainer, true, true, 60000, 60000, ref text9, ref text8, ref this.webException_0))
  235. {
  236. }
  237. }
  238. string str = Interaction.InputBox("Enter OTP Of Mobikwik That Recive on Your Mobile no.", "Mobikwik OTP", "", cntrl.PointToScreen(rect.Location).X, cntrl.PointToScreen(rect.Location).Y).Trim();
  239. this.class6_0.string_24 = this.class6_0.string_24 + "||" + str;
  240. }
  241. if (array3 != null && array3.Length > 3)
  242. {
  243. if (array3[3] != "0.0")
  244. {
  245. double.TryParse(array3[3], out this.double_2);
  246. }
  247. if (array3.Length > 4)
  248. {
  249. bool.TryParse(array3[4], out flag5);
  250. }
  251. if (array3.Length > 5)
  252. {
  253. num = Conversion.Val(array3[5].Trim());
  254. if (num <= 0.0)
  255. {
  256. num = 0.0;
  257. }
  258. if (array3[5].Trim().Length > 1)
  259. {
  260. if (num > 0.0)
  261. {
  262. this.method_30("PTFare:" + num);
  263. }
  264. else
  265. {
  266. MessageBox.Show("Unable to set Fare limit.", "Fare Limit", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  267. }
  268. }
  269. }
  270. }
  271. }
  272. catch
  273. {
  274. }
  275. string text10 = string.Concat(new object[]
  276. {
  277. "\r\n\r\nTrainNo: ",
  278. this.class6_0.string_2,
  279. " Form: ",
  280. this.class6_0.string_0,
  281. " To: ",
  282. this.class6_0.string_1,
  283. "\r\n\r\nNo. of Passengers: ",
  284. this.class6_0.list_0.Count,
  285. " Name of First Pax: ",
  286. this.class6_0.list_0[0].string_0
  287. });
  288. string_ = string.Concat(new string[]
  289. {
  290. "TrainNo: ",
  291. this.class6_0.string_2,
  292. " Form: ",
  293. this.class6_0.string_0,
  294. " To: ",
  295. this.class6_0.string_1
  296. });
  297. string_2 = "Pax: " + this.class6_0.list_0[0].string_0 + ((this.class6_0.list_0.Count <= 1) ? "" : (" and (" + (this.class6_0.list_0.Count - 1) + ") Others"));
  298. this.updateTStatus_0 = updtStatus;
  299. this.string_13 = tCntrlName;
  300. if (this.class6_0.string_3.ToUpper() == this.class6_0.string_1.ToUpper())
  301. {
  302. MessageBox.Show(IRComm.smethod_5(), "Boarding station can not be same as To Station!");
  303. if (updtStatus != null)
  304. {
  305. updtStatus.BeginInvoke(53, "Invalid Boarding Station", tCntrlName, null, null);
  306. }
  307. result = false;
  308. }
  309. else
  310. {
  311. object obj2;
  312. lock (obj2 = IRComm.object_4)
  313. {
  314. if (IRComm.list_2.Contains(this.class6_0.string_13))
  315. {
  316. if (updtStatus != null)
  317. {
  318. updtStatus.BeginInvoke(53, "Another Ticket is already active using this IRCTC ID.", tCntrlName, null, null);
  319. }
  320. this.method_30("Login Already Active ID = " + this.class6_0.string_13);
  321. result = false;
  322. return result;
  323. }
  324. IRComm.list_2.Add(this.class6_0.string_13);
  325. }
  326. lock (obj2 = IRComm.object_5)
  327. {
  328. if (IRComm.dictionary_1.ContainsKey(text))
  329. {
  330. Dictionary<string, int> dictionary;
  331. string key;
  332. (dictionary = IRComm.dictionary_1)[key = text] = dictionary[key] + 1;
  333. this.int_5 = IRComm.dictionary_1[text];
  334. }
  335. else
  336. {
  337. IRComm.dictionary_1.Add(text, 1);
  338. Interlocked.Increment(ref IRComm.int_2);
  339. this.int_5 = 1;
  340. }
  341. }
  342. try
  343. {
  344. this.class6_0.PhoneHash();
  345. this.class6_0.greq = this.class6_0.iss;
  346. this.class6_0.greq = "DM03AP11MS3-16b8a028-1213-4a1a-802a-75b205f44bfd";
  347. bool flag10 = false;
  348. if (IRComm.int_2 > IRComm.int_1)
  349. {
  350. MessageBox.Show(IRComm.smethod_5(), "You have already started " + IRComm.int_2 + " Ticket(s)! \r\n\r\nYou can not start more tickets at this time! \r\n\r\n If Message comes as an error, Click Start Again.", "Less Resources", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
  351. if (updtStatus != null)
  352. {
  353. updtStatus.BeginInvoke(53, IRComm.int_2.ToString() + " Tickets already started!", tCntrlName, null, null);
  354. }
  355. result = false;
  356. return result;
  357. }
  358. this.ConnectionGroupID = this.ClassID;
  359. this.bool_16 = false;
  360. this.method_30(string.Concat(new object[]
  361. {
  362. "Ticket Started isPair=",
  363. isP,
  364. " PairID=",
  365. text,
  366. " ActivePair=",
  367. IRComm.dictionary_1[text],
  368. " isCntrlPressed:",
  369. flag5
  370. }));
  371. int num2 = 0;
  372. if (this.class6_0.bool_0)
  373. {
  374. DateTime dateTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, this.int_3, 47, 0, 0);
  375. TimeSpan timeSpan = new TimeSpan(dateTime.Ticks - DateTime.Now.Ticks);
  376. num2 = (int)timeSpan.TotalMilliseconds;
  377. }
  378. if (this.class6_0.bool_0 && num2 > 0)
  379. {
  380. if (DateTime.Now.Hour == this.int_3 && updtStatus != null)
  381. {
  382. updtStatus.BeginInvoke(1, "Waiting till " + this.int_3 + ":47 AM", tCntrlName, null, null);
  383. }
  384. this.Sleep_Thread(num2);
  385. }
  386. if (this.class6_0.bool_0 && ((DateTime.Now.Hour == this.int_4 && DateTime.Now.Minute < 10) || (DateTime.Now.Hour == this.int_3 && DateTime.Now.Minute > 45)))
  387. {
  388. this.class6_0.bool_6 = true;
  389. }
  390. if (updtStatus != null)
  391. {
  392. updtStatus.BeginInvoke(1, "Start Login...", tCntrlName, null, null);
  393. }
  394. int num3 = 0;
  395. if (num < 0.0)
  396. {
  397. num = 0.0;
  398. }
  399. this.webProxy_2 = null;
  400. this.string_8 = null;
  401. this.string_9 = "";
  402. this.string_10 = "";
  403. this.string_11 = "";
  404. this.cookieContainer_0 = new CookieContainer();
  405. this.webException_0 = null;
  406. this.method_34();
  407. this.bool_2 = isP;
  408. this.bool_10 = false;
  409. this.int_6 = 0;
  410. this.bool_4 = true;
  411. this.class6_0.bool_7 = true;
  412. string text13;
  413. string text15;
  414. string text18;
  415. frmPayment frmPayment2;
  416. Stopwatch stopwatch3;
  417. frmPayment frmPayment4;
  418. int num10;
  419. while (true)
  420. {
  421. num3++;
  422. this.method_30("Hitting Loading Home Page" + num3.ToString());
  423. string text11 = "https://www.irctc.co.in/eticketing/protected/mapps1/appVersion/ANDROID/2.0.9";
  424. string string_4 = "https://www.irctc.co.in/nget/train-search";
  425. string text12 = "";
  426. DateTime now = DateTime.Now;
  427. text13 = "";
  428. this.method_30("Staring Buffring Begin");
  429. if (updtStatus != null)
  430. {
  431. updtStatus.BeginInvoke(1, "Staring Buffring! ", tCntrlName, null, null);
  432. }
  433. this.class6_0.AvlThread = 0;
  434. text11 = string.Concat(new string[]
  435. {
  436. "https://www.irctc.co.in/eticketing/protected/mapps1/tbstns/",
  437. this.class6_0.string_0,
  438. "/",
  439. this.class6_0.string_1,
  440. "/",
  441. this.class6_0.jjdate.ToString("yyyMMdd"),
  442. "?dateSpecific=N&ftBooking=N&redemBooking=N"
  443. });
  444. text12 = "";
  445. if (this.ConnectWebHttp(text11, text12, string_4, "Plain13Other", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  446. {
  447. this.dateTime_4 = DateTime.Now;
  448. this.timeSpan_0 = new TimeSpan(DateTime.Now.Ticks - this.dateTime_4.Ticks);
  449. TimeSpan timeSpan = new TimeSpan(this.dateTime_0.Ticks - DateTime.Now.Ticks);
  450. int num4 = (int)timeSpan.TotalMilliseconds;
  451. this.method_30(string.Concat(new object[]
  452. {
  453. "TmpDiff after Search for trains: tmpDiff = ",
  454. num4,
  455. " : timeDiff = ",
  456. this.int_6,
  457. " : tsTmp = ",
  458. this.timeSpan_0.TotalMilliseconds.ToString()
  459. }));
  460. this.int_6 = num4;
  461. if (this.timeSpan_0.TotalMilliseconds < 1200.0)
  462. {
  463. this.int_6 = num4;
  464. }
  465. else
  466. {
  467. int value = Math.Abs(num4) - Math.Abs(this.int_6);
  468. if (Math.Abs(value) >= 1000)
  469. {
  470. this.int_6 = num4;
  471. }
  472. }
  473. this.method_30("New TimeDiff : timeDiff = " + this.int_6);
  474. text3 = text3 + " diff:" + this.int_6;
  475. IRComm.int_Time3 = this.int_6;
  476. if (updtStatus != null)
  477. {
  478. updtStatus.BeginInvoke(900, this.int_6.ToString(), tCntrlName, null, null);
  479. }
  480. text11 = string.Concat(new string[]
  481. {
  482. "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
  483. this.class6_0.string_2,
  484. "/",
  485. this.class6_0.jjdate.ToString("yyyMMdd"),
  486. "/",
  487. this.class6_0.string_0,
  488. "/",
  489. this.class6_0.string_1,
  490. "/",
  491. this.class6_0.string_7,
  492. "/",
  493. this.class6_0.string_8,
  494. "/N"
  495. });
  496. text12 = "{\"AVLBLTY_ONLY\":\"1\",\"FARE_ONLY\":\"2\",\"FARE_AVLBLTY\":\"3\",\"enquiryType\":\"3\",\"clusterFlag\":\"N\",\"onwardFlag\":\"N\",\"cod\":false,\"reservationMode\":\"N_MOBILE_ANDROID\",\"autoUpgradationSelected\":false,\"gnToCkOpted\":false,\"ticketChoiceSameCoach\":false,\"reservationChoice\":99,\"ignoreChoiceIfWl\":true,\"concessionBooking\":false,\"generalistChildConfirm\":false,\"ftBooking\":false,\"moreThanOneDay\":true,\"ticketType\":\"E\"}";
  497. if (this.ConnectWebHttp(text11, text12, string_4, "Plain13json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  498. {
  499. while (true)
  500. {
  501. this.dateTime_3 = DateTime.Now;
  502. text11 = "https://www.irctc.co.in/eticketing/protected/mapps1/loginCaptcha?nlpCaptchaException=true";
  503. text12 = "";
  504. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain13text", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  505. {
  506. break;
  507. }
  508. if (this.string_10.IndexOf("captchaQuestion") > 0)
  509. {
  510. this.class6_0.method_Capt(this.string_10);
  511. this.class6_0.greq = Class6.jsonData_Serial(this.string_10, "status");
  512. }
  513. this.double_0 = this.double_1;
  514. this.image_0 = this.class6_0.image_0;
  515. frmCaptcha = new frmCaptcha(this, this.cookieContainer_0, this.string_7, this.string_9)
  516. {
  517. BackColor = Color.LightSteelBlue
  518. };
  519. if (flag10)
  520. {
  521. frmCaptcha.picOriginal.BackColor = Color.FromArgb(255, 192, 255, 192);
  522. }
  523. else
  524. {
  525. frmCaptcha.picOriginal.BackColor = Color.Lavender;
  526. }
  527. frmCaptcha.dateTime_0 = this.dateTime_3;
  528. if ((!flag && !flag3) || flag4)
  529. {
  530. frmCaptcha.lblWrongCaptcha.Text = "Enter Booking Captcha!";
  531. }
  532. else
  533. {
  534. if (flag3)
  535. {
  536. frmCaptcha.lblWrongCaptcha.Text = "Site Currently Unreachable!";
  537. }
  538. else
  539. {
  540. frmCaptcha.lblWrongCaptcha.Text = "Invalid Booking Captcha!";
  541. if (flag2)
  542. {
  543. frmCaptcha.lblWrongCaptcha.Text = "Early Submit Bkg Captcha!";
  544. }
  545. frmCaptcha.smethod_0(text2);
  546. }
  547. frmCaptcha.lblWrongCaptcha.ForeColor = Color.Red;
  548. }
  549. Stopwatch stopwatch = new Stopwatch();
  550. stopwatch.Start();
  551. frmCaptcha.method_0(cntrl, rect);
  552. if (frmCaptcha.DialogResult != DialogResult.OK)
  553. {
  554. goto Block_100;
  555. }
  556. stopwatch.Stop();
  557. num2 = 5000 - (int)stopwatch.ElapsedMilliseconds;
  558. if (num2 > 0)
  559. {
  560. Thread.Sleep(num2);
  561. }
  562. text2 = frmCaptcha.txtImageData.Text.Trim();
  563. this.dateTime_3 = frmCaptcha.dateTime_0;
  564. frmCaptcha.Dispose();
  565. this.method_30("Staring Login Begin");
  566. if (updtStatus != null)
  567. {
  568. updtStatus.BeginInvoke(1, "Login Proceed! ", tCntrlName, null, null);
  569. }
  570. text11 = "https://www.irctc.co.in/authprovider/webtoken";
  571. text12 = string.Concat(new string[]
  572. {
  573. "grant_type=password&username=",
  574. this.class6_0.string_13,
  575. "&password=",
  576. HttpUtility.UrlEncode(this.class6_0.string_14),
  577. "&captcha=",
  578. text2,
  579. "&uid=",
  580. HttpUtility.UrlEncode(this.class6_0.greq),
  581. "&otpLogin=false&nlpIdentifier=undefined&nlpAnswer=undefined&nlpToken=undefined"
  582. });
  583. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain0Other", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  584. {
  585. break;
  586. }
  587. if (this.string_10.IndexOf("Invalid Captcha") <= 0)
  588. {
  589. goto IL_19BA;
  590. }
  591. }
  592. continue;
  593. IL_19BA:
  594. this.class6_0.auth = this.string_10.Substring(this.string_10.IndexOf("access_token") + 15, 36);
  595. this.class6_0.bearer = "Bearer " + this.class6_0.auth;
  596. while (true)
  597. {
  598. this.class6_0.token = "1527614427275";
  599. text11 = "https://www.irctc.co.in/eticketing/protected/mapps1/validateUser?source=3";
  600. text12 = "";
  601. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123Other", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  602. {
  603. break;
  604. }
  605. text11 = "https://www.irctc.co.in/eticketing/protected/ewallet/ewalletStatement";
  606. text12 = "d";
  607. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  608. {
  609. break;
  610. }
  611. if (this.Errochk4_App(this.string_10, ref this.string_11))
  612. {
  613. text13 = this.string_11.Substring(this.string_11.IndexOf(":") + 1);
  614. if (this.string_11.Contains("GotoStart:"))
  615. {
  616. break;
  617. }
  618. if (this.string_11.Contains("GotoFinish:"))
  619. {
  620. goto Block_109;
  621. }
  622. if (text13.Contains("Unable to serve the response"))
  623. {
  624. continue;
  625. }
  626. }
  627. if (this.class6_0.bool_0)
  628. {
  629. DateTime dateTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, this.int_4, 0, 0, 0);
  630. timeSpan = new TimeSpan(dateTime.Ticks - DateTime.Now.Ticks);
  631. num2 = (int)timeSpan.TotalMilliseconds - this.int_6;
  632. }
  633. if (array[0] == "1" || array[0] == "3")
  634. {
  635. if (!this.method_25_A())
  636. {
  637. goto Block_114;
  638. }
  639. }
  640. if (this.class6_0.bool_0 && num2 > 200)
  641. {
  642. if (this.class6_0.SLBooking)
  643. {
  644. num2 -= 5000;
  645. }
  646. else
  647. {
  648. num2 -= 1000;
  649. }
  650. num2 -= 300;
  651. Random random = new Random();
  652. int num5 = random.Next(2, 4) * 100;
  653. this.method_30("Sleeping sleep = " + num2);
  654. if (num2 > 0)
  655. {
  656. Thread.Sleep(num2);
  657. }
  658. this.method_30("After Sleeping ");
  659. Application.DoEvents();
  660. }
  661. while (true)
  662. {
  663. if (updtStatus != null)
  664. {
  665. updtStatus.BeginInvoke(1, "Selecting Trains! ", tCntrlName, null, null);
  666. }
  667. text11 = string.Concat(new string[]
  668. {
  669. "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
  670. this.class6_0.string_2,
  671. "/",
  672. this.class6_0.jjdate.ToString("yyyMMdd"),
  673. "/",
  674. this.class6_0.string_0,
  675. "/",
  676. this.class6_0.string_1,
  677. "/",
  678. this.class6_0.string_7,
  679. "/",
  680. this.class6_0.string_8,
  681. "/N"
  682. });
  683. text12 = "{\"AVLBLTY_ONLY\":\"1\",\"FARE_ONLY\":\"2\",\"FARE_AVLBLTY\":\"3\",\"enquiryType\":\"3\",\"clusterFlag\":\"N\",\"onwardFlag\":\"N\",\"cod\":false,\"reservationMode\":\"N_MOBILE_ANDROID\",\"autoUpgradationSelected\":false,\"gnToCkOpted\":false,\"ticketChoiceSameCoach\":false,\"reservationChoice\":99,\"ignoreChoiceIfWl\":true,\"concessionBooking\":false,\"generalistChildConfirm\":false,\"ftBooking\":false,\"loyaltyRedemptionBooking\":false,\"moreThanOneDay\":false,\"ticketType\":\"E\"}";
  684. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  685. {
  686. goto Block_120;
  687. }
  688. if (string.IsNullOrEmpty(this.string_10))
  689. {
  690. break;
  691. }
  692. if (this.Errochk4_App(this.string_10, ref this.string_11))
  693. {
  694. text13 = this.string_11.Substring(this.string_11.IndexOf(":") + 1);
  695. if (this.string_11.Contains("GotoStart:"))
  696. {
  697. goto Block_123;
  698. }
  699. if (this.string_11.Contains("GotoFinish:"))
  700. {
  701. goto Block_124;
  702. }
  703. if (text13.Contains("Unable to serve the response"))
  704. {
  705. break;
  706. }
  707. }
  708. while (true)
  709. {
  710. if (updtStatus != null)
  711. {
  712. updtStatus.BeginInvoke(1, "Receving Bkg Captcha! ", tCntrlName, null, null);
  713. }
  714. text11 = string.Concat(new string[]
  715. {
  716. "https://www.irctc.co.in/eticketing/protected/mapps1/boardingstationenquiry/",
  717. this.class6_0.string_2,
  718. "/",
  719. this.class6_0.jjdate.ToString("yyyMMdd"),
  720. "/",
  721. this.class6_0.string_0,
  722. "/",
  723. this.class6_0.string_1,
  724. "/",
  725. this.class6_0.string_7,
  726. "?jrnQuota=",
  727. this.class6_0.string_8
  728. });
  729. text12 = "";
  730. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  731. {
  732. goto Block_127;
  733. }
  734. if (string.IsNullOrEmpty(this.string_10))
  735. {
  736. goto Block_128;
  737. }
  738. if (this.Errochk4_App(this.string_10, ref this.string_11))
  739. {
  740. text13 = this.string_11.Substring(this.string_11.IndexOf(":") + 1);
  741. if (this.string_11.Contains("GotoStart:"))
  742. {
  743. goto Block_130;
  744. }
  745. if (this.string_11.Contains("GotoFinish:"))
  746. {
  747. goto Block_131;
  748. }
  749. if (text13.Contains("Booking not allowed. Please try again"))
  750. {
  751. break;
  752. }
  753. if (text13.Contains("Unable to serve the response"))
  754. {
  755. goto Block_133;
  756. }
  757. }
  758. this.dateTime_3 = DateTime.Now;
  759. this.double_0 = this.double_2;
  760. if (updtStatus != null)
  761. {
  762. updtStatus.BeginInvoke(1, "Wait 4 Submitting! ", tCntrlName, null, null);
  763. }
  764. while (true)
  765. {
  766. if (this.string_10.IndexOf("captchaQuestion") > 0)
  767. {
  768. this.class6_0.method_Capt(this.string_10);
  769. }
  770. this.image_0 = this.class6_0.image_0;
  771. frmCaptcha = new frmCaptcha(this, this.cookieContainer_0, this.string_7, this.string_9)
  772. {
  773. BackColor = Color.LightSteelBlue
  774. };
  775. if (flag10)
  776. {
  777. frmCaptcha.picOriginal.BackColor = Color.FromArgb(255, 192, 255, 192);
  778. }
  779. else
  780. {
  781. frmCaptcha.picOriginal.BackColor = Color.Lavender;
  782. }
  783. frmCaptcha.dateTime_0 = this.dateTime_3;
  784. if ((!flag && !flag3) || flag4)
  785. {
  786. frmCaptcha.lblWrongCaptcha.Text = "Enter Booking Captcha!";
  787. }
  788. else
  789. {
  790. if (flag3)
  791. {
  792. frmCaptcha.lblWrongCaptcha.Text = "Site Currently Unreachable!";
  793. }
  794. else
  795. {
  796. frmCaptcha.lblWrongCaptcha.Text = "Invalid Booking Captcha!";
  797. if (flag2)
  798. {
  799. frmCaptcha.lblWrongCaptcha.Text = "Early Submit Bkg Captcha!";
  800. }
  801. frmCaptcha.smethod_0(text2);
  802. }
  803. frmCaptcha.lblWrongCaptcha.ForeColor = Color.Red;
  804. }
  805. Stopwatch stopwatch3 = new Stopwatch();
  806. stopwatch3.Start();
  807. frmCaptcha.method_0(cntrl, rect);
  808. if (frmCaptcha.DialogResult != DialogResult.OK)
  809. {
  810. goto Block_141;
  811. }
  812. stopwatch3.Stop();
  813. num2 = 5000 - (int)stopwatch3.ElapsedMilliseconds;
  814. if (num2 > 0)
  815. {
  816. Thread.Sleep(num2);
  817. }
  818. text2 = frmCaptcha.txtImageData.Text.Trim();
  819. this.dateTime_3 = frmCaptcha.dateTime_0;
  820. frmCaptcha.Dispose();
  821. if (updtStatus != null)
  822. {
  823. updtStatus.BeginInvoke(1, "Passenger Validation! ", tCntrlName, null, null);
  824. }
  825. this.method_30("Passenger Validation Begin");
  826. text11 = string.Concat(new string[]
  827. {
  828. "https://www.irctc.co.in/eticketing/protected/mapps1/avlFareenquiry/",
  829. this.class6_0.string_2,
  830. "/",
  831. this.class6_0.jjdate.ToString("yyyMMdd"),
  832. "/",
  833. this.class6_0.string_0,
  834. "/",
  835. this.class6_0.string_1,
  836. "/",
  837. this.class6_0.string_7,
  838. "/",
  839. this.class6_0.string_8,
  840. "/Y"
  841. });
  842. text12 = this.class6_0.Pax_2(this.string_10, text2);
  843. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  844. {
  845. goto Block_144;
  846. }
  847. if (string.IsNullOrEmpty(this.string_10))
  848. {
  849. goto Block_145;
  850. }
  851. if (this.string_10.IndexOf("Invalid Captcha") <= 0)
  852. {
  853. break;
  854. }
  855. this.double_0 = this.double_1;
  856. }
  857. text3 = string.Concat(new object[]
  858. {
  859. text3,
  860. " ",
  861. this.class6_0.string_8,
  862. " P:",
  863. this.int_5,
  864. " Log:",
  865. DateTime.Now.ToString("HH:mm:ss")
  866. });
  867. if (this.Errochk4_App(this.string_10, ref this.string_11))
  868. {
  869. text13 = this.string_11.Substring(this.string_11.IndexOf(":") + 1);
  870. if (this.string_11.Contains("GotoStart:"))
  871. {
  872. goto Block_148;
  873. }
  874. if (this.string_11.Contains("GotoFinish:"))
  875. {
  876. goto Block_149;
  877. }
  878. if (text13.Contains("Unable to serve the response"))
  879. {
  880. goto Block_150;
  881. }
  882. }
  883. if (this.string_10.IndexOf("bankDetailDTO") >= 0)
  884. {
  885. IRComm.bool_13 = true;
  886. string text14 = "";
  887. text15 = "";
  888. string text16 = "";
  889. flag = false;
  890. flag2 = false;
  891. flag3 = false;
  892. flag4 = false;
  893. this.method_30("Received Booking Captcha : " + text2);
  894. text3 = text3 + "-" + DateTime.Now.ToString("mm:ss");
  895. IAsyncResult asyncResult = null;
  896. Delegate1 @delegate = null;
  897. try
  898. {
  899. if (@delegate != null && asyncResult != null)
  900. {
  901. @delegate.EndInvoke(asyncResult);
  902. }
  903. }
  904. catch
  905. {
  906. }
  907. while (true)
  908. {
  909. if (updtStatus != null)
  910. {
  911. updtStatus.BeginInvoke(1, "Details Submitted! ", tCntrlName, null, null);
  912. }
  913. this.class6_0.fare = Class6.jsonData_Serial(this.string_10, "totalCollectibleAmount");
  914. text14 = this.class6_0.fare;
  915. bool flag11 = false;
  916. string text17 = "";
  917. text18 = "";
  918. string text19 = "";
  919. string text20 = "";
  920. bool flag12 = false;
  921. text10 = "\r\n\r\nFare: " + text14 + text10;
  922. if (num > 0.0)
  923. {
  924. this.method_30(string.Concat(new object[]
  925. {
  926. "PT Fare:",
  927. num,
  928. " Fare:",
  929. text14
  930. }));
  931. double num6 = Conversion.Val(text14.Trim());
  932. if (num6 > 0.0)
  933. {
  934. if (num6 > num)
  935. {
  936. if (updtStatus != null)
  937. {
  938. updtStatus.BeginInvoke(53, "Fare is higher then set limit", tCntrlName, null, null);
  939. }
  940. this.method_30("PT Fare higher");
  941. isConfirmReq = true;
  942. flag6 = true;
  943. }
  944. }
  945. else
  946. {
  947. isConfirmReq = true;
  948. }
  949. }
  950. if (this.class6_0.bool_3 && text15.ToUpper().Contains("WL"))
  951. {
  952. if (updtStatus != null)
  953. {
  954. updtStatus.BeginInvoke(253, "Train Has Gone Into Waiting", tCntrlName, null, null);
  955. }
  956. frmPayment frmPayment = new frmPayment
  957. {
  958. string_1 = this.class6_0.string_23,
  959. bool_7 = true,
  960. string_0 = string.Concat(new string[]
  961. {
  962. "Seat Are: ",
  963. text15,
  964. "\r\nFare Is: ",
  965. text14,
  966. "\r\nTime Was: ",
  967. text16
  968. })
  969. };
  970. frmPayment.method_0(cntrl, rect);
  971. DialogResult dialogResult2 = frmPayment.DialogResult;
  972. frmPayment.Dispose();
  973. if (dialogResult2 == DialogResult.Cancel)
  974. {
  975. goto Block_161;
  976. }
  977. this.class6_0.string_23 = ((ComboBox)control.Controls["lblGateway"]).SelectedItem.ToString();
  978. Class5 @class = new Class5();
  979. @class.method_3(this.string_17);
  980. this.class6_0.string_24 = @class.dictionary_3[this.class6_0.string_23];
  981. ((ComboBox)control.Controls["lblGateway"]).Enabled = false;
  982. }
  983. if (this.class6_0.string_23.Contains("_"))
  984. {
  985. string text21 = this.class6_0.string_23.Substring(this.class6_0.string_23.IndexOf("_") + 1).Trim();
  986. text18 = this.class6_0.string_23.Substring(0, this.class6_0.string_23.IndexOf("_")).Trim();
  987. if (text21.Contains("__"))
  988. {
  989. text18 = text18 + "_" + text21.Substring(0, text21.IndexOf("__")).Trim();
  990. text21 = text21.Substring(text21.IndexOf("__") + 2).Trim();
  991. if (text21.Contains("_"))
  992. {
  993. text18 = text18 + "__" + text21.Substring(0, text21.IndexOf("_")).Trim();
  994. text19 = text18;
  995. }
  996. }
  997. else if (text21.Contains("_"))
  998. {
  999. text18 = text18 + "_" + text21.Substring(0, text21.IndexOf("_")).Trim();
  1000. text19 = text18;
  1001. }
  1002. else
  1003. {
  1004. text19 = text18;
  1005. }
  1006. text17 = Class4.smethod_13(text18, ref flag11);
  1007. this.method_30("Received Bank ID : bankID = " + text17);
  1008. if (text17.Length <= 0)
  1009. {
  1010. goto Block_166;
  1011. }
  1012. }
  1013. this.method_30("Checking Bank ID Existence");
  1014. bool flag13 = false;
  1015. lock (obj2 = IRComm.object_6)
  1016. {
  1017. if (IRComm.list_3.Contains(strName))
  1018. {
  1019. if (updtStatus != null)
  1020. {
  1021. updtStatus.BeginInvoke(1, "Another Ticket already Proceed.", tCntrlName, null, null);
  1022. }
  1023. flag13 = false;
  1024. }
  1025. else
  1026. {
  1027. IRComm.list_3.Add(strName);
  1028. flag13 = true;
  1029. }
  1030. }
  1031. if (!flag13 && !flag12)
  1032. {
  1033. this.method_30("Another Ticket already Procced. Name = " + strName);
  1034. frmPayment2 = new frmPayment
  1035. {
  1036. string_1 = this.class6_0.string_23,
  1037. bool_3 = true,
  1038. string_6 = "Rs." + text14 + " - " + text15
  1039. };
  1040. frmPayment2.method_0(cntrl, rect);
  1041. if (frmPayment2.DialogResult != DialogResult.OK)
  1042. {
  1043. goto Block_170;
  1044. }
  1045. this.method_30("User Accepted Proceed choice");
  1046. if (frmPayment2.string_1 != this.class6_0.string_23)
  1047. {
  1048. this.class6_0.string_24 = frmPayment2.string_2;
  1049. this.class6_0.string_23 = frmPayment2.string_1;
  1050. frmPayment2.Dispose();
  1051. this.method_30("New Bank details set, re-hitting " + this.class6_0.string_23);
  1052. flag12 = true;
  1053. continue;
  1054. }
  1055. }
  1056. if (updtStatus != null)
  1057. {
  1058. updtStatus.BeginInvoke(1, text15 + " - Trying for Payment! ", tCntrlName, null, null);
  1059. }
  1060. this.string_9 = this.string_7;
  1061. this.string_8 = "";
  1062. this.method_30("Hitting Make Payment: inp = " + this.string_7);
  1063. text3 = text3 + " Pmt:" + DateTime.Now.ToString("mm:ss");
  1064. Stopwatch stopwatch2 = new Stopwatch();
  1065. stopwatch2.Start();
  1066. DateTime d = DateTime.Now.AddMilliseconds(100.0);
  1067. this.class6_0.App_BankId = "";
  1068. string_4 = text11;
  1069. text11 = "https://www.irctc.co.in/eticketing/protected/mapps1/bookingInitPayment/" + this.class6_0.cid;
  1070. text12 = string.Concat(new string[]
  1071. {
  1072. "{\"bankId\":\"",
  1073. text17,
  1074. "\",\"txnType\":1,\"paramList\":[],\"amount\":\"",
  1075. this.class6_0.fare,
  1076. "\",\"transationId\":0,\"txnStatus\":1}"
  1077. });
  1078. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  1079. {
  1080. goto Block_172;
  1081. }
  1082. if (string.IsNullOrEmpty(this.string_10))
  1083. {
  1084. goto Block_173;
  1085. }
  1086. if (this.Errochk4_App(this.string_10, ref this.string_11))
  1087. {
  1088. text13 = this.string_11.Substring(this.string_11.IndexOf(":") + 1);
  1089. if (this.string_11.Contains("GotoStart:"))
  1090. {
  1091. goto Block_175;
  1092. }
  1093. if (this.string_11.Contains("GotoFinish:"))
  1094. {
  1095. goto Block_176;
  1096. }
  1097. if (text13.Contains("Unable to serve the response"))
  1098. {
  1099. goto Block_177;
  1100. }
  1101. }
  1102. if (this.string_10.IndexOf("{\"key\":\"REDIRECT\",\"value\":\"TRUE\"}") < 0)
  1103. {
  1104. break;
  1105. }
  1106. string_4 = "https://www.irctc.co.in/nget/paymentredirect";
  1107. text11 = "https://www.irctc.co.in/eticketing/PaymentRedirect";
  1108. text12 = string.Concat(new string[]
  1109. {
  1110. "token=",
  1111. this.class6_0.auth,
  1112. "&txn=",
  1113. this.class6_0.string_13,
  1114. "%3A",
  1115. this.class6_0.cid
  1116. });
  1117. if (!this.ConnectWebHttp(text11, text12, string_4, "Other", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  1118. {
  1119. goto Block_179;
  1120. }
  1121. if (string.IsNullOrEmpty(this.string_10))
  1122. {
  1123. goto Block_180;
  1124. }
  1125. this.class6_0.string_588 = this.class6_0.string_58;
  1126. this.class6_0.startTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second);
  1127. stopwatch2.Stop();
  1128. d = DateTime.Now.AddMilliseconds(-60.0);
  1129. bool flag15 = false;
  1130. this.class6_0.ReBank = true;
  1131. this.method_30("Output Make Payment: Htm = \r\n\r\n" + this.string_10);
  1132. if (!this.string_10.Contains("Payment Redirect") || !this.string_10.Contains("Please Wait..."))
  1133. {
  1134. goto IL_2F57;
  1135. }
  1136. string text22 = text3;
  1137. text3 = string.Concat(new string[]
  1138. {
  1139. text22,
  1140. " PmtRet:",
  1141. DateTime.Now.ToString("mm:ss"),
  1142. "-",
  1143. text18
  1144. });
  1145. flag = false;
  1146. stopwatch3 = new Stopwatch();
  1147. if (isConfirmReq)
  1148. {
  1149. frmPayment frmPayment3 = new frmPayment
  1150. {
  1151. bool_1 = true,
  1152. bool_4 = flag6,
  1153. string_3 = string_,
  1154. string_4 = string_2,
  1155. string_1 = this.class6_0.string_23,
  1156. string_5 = "Bank: " + this.class6_0.string_23,
  1157. string_6 = "Rs." + text14 + " - " + text15,
  1158. string_7 = "Fare Limit: Rs." + num + "/-"
  1159. };
  1160. frmPayment3.method_0(cntrl, rect);
  1161. DialogResult dialogResult3 = frmPayment3.DialogResult;
  1162. frmPayment3.Dispose();
  1163. if (dialogResult3 != DialogResult.OK)
  1164. {
  1165. goto Block_185;
  1166. }
  1167. isConfirmReq = false;
  1168. }
  1169. lock (obj2 = IRComm.object_8)
  1170. {
  1171. if (IRComm.list_5.Contains(strName))
  1172. {
  1173. if (updtStatus != null)
  1174. {
  1175. updtStatus.BeginInvoke(101, "PNR Booked in another Pair", tCntrlName, null, null);
  1176. }
  1177. result = false;
  1178. return result;
  1179. }
  1180. }
  1181. text3 = text3 + " BNK:" + DateTime.Now.ToString("mm:ss");
  1182. this.webProxy_2 = null;
  1183. if (this.class6_0.string_13.ToUpper() == this.string_19.ToUpper())
  1184. {
  1185. this.webProxy_2 = this.webProxy_0;
  1186. }
  1187. stopwatch3.Start();
  1188. if (updtStatus != null)
  1189. {
  1190. updtStatus.BeginInvoke(1, "Processing " + text18 + " for Payment! ", tCntrlName, null, null);
  1191. }
  1192. text22 = text17.ToUpper().Trim();
  1193. if (text22 != null)
  1194. {
  1195. string text23 = text22;
  1196. switch (text23)
  1197. {
  1198. case "3":
  1199. flag15 = this.method_45(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1200. break;
  1201. case "69":
  1202. flag15 = this.method_66(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1203. break;
  1204. case "9":
  1205. flag15 = this.method_62(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1206. break;
  1207. case "19":
  1208. flag15 = this.method_63(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1209. break;
  1210. case "41":
  1211. flag15 = this.method_43(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1212. break;
  1213. case "57":
  1214. flag15 = this.method_52(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1215. break;
  1216. case "16":
  1217. flag15 = this.method_69(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1218. break;
  1219. case "15":
  1220. flag15 = this.method_58(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1221. break;
  1222. case "5":
  1223. flag15 = this.method_81(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1224. break;
  1225. case "66":
  1226. flag15 = this.method_59(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1227. break;
  1228. case "26":
  1229. flag15 = this.method_61(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1230. break;
  1231. case "31":
  1232. flag15 = this.method_64(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1233. break;
  1234. case "30":
  1235. flag15 = this.method_74(this.string_10, this.class6_0.string_24, text18, text10, ref text20, ref text13, updtStatus);
  1236. break;
  1237. case "4":
  1238. flag15 = this.method_73(this.string_10, this.class6_0.string_24, text18, text10, ref text20, ref text13, updtStatus);
  1239. break;
  1240. case "21":
  1241. flag15 = this.method_83(this.string_10, this.class6_0.string_24, text18, text10, ref text20, ref text13, updtStatus);
  1242. break;
  1243. case "17":
  1244. flag15 = this.method_79_2(this.string_10, this.class6_0.string_24, text18, text10, ref text20, ref text13, updtStatus);
  1245. break;
  1246. case "78":
  1247. case "71":
  1248. flag15 = this.method_78(this.string_10, this.class6_0.string_24, text18, text10, ref text20, ref text13, updtStatus);
  1249. break;
  1250. case "44":
  1251. flag15 = this.method_55(this.string_10, this.class6_0.string_23, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1252. break;
  1253. case "36":
  1254. flag15 = this.method_51(this.string_10, this.class6_0.string_23, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1255. break;
  1256. case "39":
  1257. flag15 = this.method_42(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1258. break;
  1259. case "52":
  1260. flag15 = this.method_57(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1261. break;
  1262. case "28":
  1263. flag15 = this.method_70(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1264. break;
  1265. case "45":
  1266. flag15 = this.method_60(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1267. break;
  1268. case "56":
  1269. flag15 = this.method_71(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1270. break;
  1271. case "60":
  1272. flag15 = this.method_65(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1273. break;
  1274. case "38":
  1275. flag15 = this.method_56(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1276. break;
  1277. case "64":
  1278. flag15 = this.method_82(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1279. break;
  1280. case "68":
  1281. flag15 = this.method_67(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1282. break;
  1283. case "79":
  1284. flag15 = this.method_68(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1285. break;
  1286. case "1":
  1287. {
  1288. CookieContainer cookieContainer = null;
  1289. if (!(flag15 = this.method_48(this.string_10, this.class6_0.string_23, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus, ref cookieContainer)) && cookieContainer != null)
  1290. {
  1291. ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_47), cookieContainer);
  1292. }
  1293. break;
  1294. }
  1295. case "94":
  1296. flag15 = this.method_103(this.string_10, this.class6_0.string_23, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1297. break;
  1298. case "55":
  1299. flag15 = this.method_107(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1300. break;
  1301. case "93":
  1302. flag15 = this.Cash_AirtelMoney(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1303. break;
  1304. case "97":
  1305. flag15 = this.Bhim_UpIMoney(this.string_10, this.class6_0.string_24, text10, ref text20, ref text13, updtStatus);
  1306. break;
  1307. }
  1308. }
  1309. if (!flag15)
  1310. {
  1311. goto Block_196;
  1312. }
  1313. if (updtStatus != null)
  1314. {
  1315. updtStatus.BeginInvoke(1, "Payment Successful! ", tCntrlName, null, null);
  1316. }
  1317. this.string_9 = text13;
  1318. text3 = text3 + " BNK-Ret:" + DateTime.Now.ToString("mm:ss");
  1319. stopwatch3.Stop();
  1320. this.method_29(string.Concat(new object[]
  1321. {
  1322. text18,
  1323. flag11 ? "_Debit" : "_NB",
  1324. "~1~",
  1325. stopwatch3.ElapsedMilliseconds,
  1326. "~",
  1327. array[0]
  1328. }));
  1329. this.class6_0.method_11(true, "Payment Success", text14, "", this.ClassID);
  1330. if (updtStatus != null)
  1331. {
  1332. updtStatus.BeginInvoke(1, "Redirect to Irctc.! ", tCntrlName, null, null);
  1333. }
  1334. if (text17 == "0")
  1335. {
  1336. frmCaptcha = new frmCaptcha(this, this.cookieContainer_0, "https://www.irctc.co.in/eticketing/captchaImage", this.string_9)
  1337. {
  1338. bool_2 = true
  1339. };
  1340. frmCaptcha.picOriginal.BackColor = Color.Goldenrod;
  1341. if (!flag)
  1342. {
  1343. frmCaptcha.lblWrongCaptcha.Text = "AFTER PAYMENT CAPTCHA!";
  1344. }
  1345. else
  1346. {
  1347. frmCaptcha.lblWrongCaptcha.Text = "INVALID PAYMENT CAPTCHA!";
  1348. }
  1349. text2 = frmCaptcha.Captchaa_Nget();
  1350. flag = false;
  1351. frmCaptcha.Dispose();
  1352. this.method_30("Received after payment Captcha : " + text2);
  1353. this.string_27 = "https://www.irctc.co.in/eticketing/eWalletPaymentCnf.jsf?cid=1";
  1354. this.string_28 = "eWalletPmtCnf=eWalletPmtCnf&j_captcha=" + text2 + "&eWalletPmtCnf%3AmakePmntModeId1=&javax.faces.ViewState=" + Class6.smethod_3(this.string_10, "", "javax.faces.ViewState");
  1355. }
  1356. else if (text20.IndexOf("https://www.irctc.co.in") == 0)
  1357. {
  1358. if (updtStatus != null)
  1359. {
  1360. updtStatus.BeginInvoke(1, "Wait 4 PNR_Flush! ", tCntrlName, null, null);
  1361. }
  1362. this.string_27 = text20;
  1363. }
  1364. else
  1365. {
  1366. this.string_27 = "https://www.irctc.co.in/eticketing/BankResponse";
  1367. this.string_28 = this.class6_0.Method_SerialInp(text20, ref this.string_27, true);
  1368. if (this.string_28 != "")
  1369. {
  1370. if (updtStatus != null)
  1371. {
  1372. updtStatus.BeginInvoke(1, "Wait 4 PNR_Flush! ", tCntrlName, null, null);
  1373. }
  1374. }
  1375. }
  1376. if (this.string_27.IndexOf("https://www.irctc.co.in/eticketing/BankResponse") < 0)
  1377. {
  1378. this.string_27 = "https://www.irctc.co.in/eticketing/BankResponse";
  1379. }
  1380. if (!this.ConnectWebHttp(this.string_27, this.string_28, this.string_29, "Other", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  1381. {
  1382. goto Block_217;
  1383. }
  1384. this.class6_0.Bnkerror = 0;
  1385. lock (obj2 = IRComm.object_8)
  1386. {
  1387. if (IRComm.list_5.Contains(strName))
  1388. {
  1389. if (updtStatus != null)
  1390. {
  1391. updtStatus.BeginInvoke(101, "PNR Booked in another Pair", tCntrlName, null, null);
  1392. }
  1393. result = false;
  1394. return result;
  1395. }
  1396. }
  1397. flag7 = false;
  1398. lock (obj2 = IRComm.object_7)
  1399. {
  1400. if (IRComm.list_4.Contains(strName))
  1401. {
  1402. flag7 = true;
  1403. isConfirmReq = true;
  1404. }
  1405. else
  1406. {
  1407. IRComm.list_4.Add(strName);
  1408. }
  1409. }
  1410. try
  1411. {
  1412. string a;
  1413. if (IRComm.dictionary_2.TryGetValue(tCntrlName, out a))
  1414. {
  1415. isConfirmReq = (a == "true");
  1416. }
  1417. goto IL_440E;
  1418. }
  1419. catch
  1420. {
  1421. goto IL_440E;
  1422. }
  1423. goto IL_3F62;
  1424. IL_423D:
  1425. lock (IRComm.object_7)
  1426. {
  1427. if (IRComm.list_4.Contains(strName))
  1428. {
  1429. IRComm.list_4.Remove(strName);
  1430. }
  1431. }
  1432. string text24 = this.method_23(this.string_10);
  1433. this.method_30("Choosing Another payment Option for Booking. Err = " + text24);
  1434. if (!string.IsNullOrEmpty(this.class6_0.string_244))
  1435. {
  1436. this.class6_0.string_23 = this.class6_0.string_233;
  1437. this.class6_0.string_24 = this.class6_0.string_244;
  1438. this.class6_0.string_244 = "";
  1439. flag12 = true;
  1440. continue;
  1441. }
  1442. if (updtStatus != null)
  1443. {
  1444. updtStatus.BeginInvoke(1, "Choose another Payment.", tCntrlName, null, null);
  1445. }
  1446. frmPayment4 = new frmPayment();
  1447. frmPayment4.string_1 = this.class6_0.string_23;
  1448. if (!flag15 && text13.Length > 0)
  1449. {
  1450. frmPayment4.string_8 = text13;
  1451. frmPayment4.lblError.Font = new Font("Microsoft Sans Serif", 9f);
  1452. }
  1453. else if (!string.IsNullOrEmpty(text24) && text24.Length > 1)
  1454. {
  1455. frmPayment4.string_8 = text24;
  1456. }
  1457. frmPayment4.method_0(cntrl, rect);
  1458. if (frmPayment4.DialogResult != DialogResult.OK)
  1459. {
  1460. goto Block_237;
  1461. }
  1462. this.class6_0.string_24 = frmPayment4.string_2;
  1463. this.class6_0.string_23 = frmPayment4.string_1;
  1464. frmPayment4.Dispose();
  1465. flag12 = true;
  1466. this.method_30("New Bank details set, re-hitting " + this.class6_0.string_23);
  1467. continue;
  1468. IL_402C:
  1469. int num8 = 10550 + new Random().Next(2, 5) * 100;
  1470. timeSpan = DateTime.Now - d;
  1471. int num9 = num8 - (int)timeSpan.TotalMilliseconds;
  1472. if (num9 > 50)
  1473. {
  1474. Thread.Sleep(num9);
  1475. }
  1476. text22 = text3;
  1477. text3 = string.Concat(new string[]
  1478. {
  1479. text22,
  1480. " IR-Hit:",
  1481. DateTime.Now.ToString("mm:ss"),
  1482. "-",
  1483. text18
  1484. });
  1485. this.method_30("Booking Hit after Payment : Inp = " + this.string_8);
  1486. if (updtStatus != null)
  1487. {
  1488. updtStatus.BeginInvoke(1, "Flushing PNR Number.!", tCntrlName, null, null);
  1489. }
  1490. string_4 = text11;
  1491. text11 = "https://www.irctc.co.in/eticketing/protected/mapps1/bookingData/" + this.class6_0.cid;
  1492. text12 = "";
  1493. if (!this.ConnectWebHttp(text11, text12, string_4, "Plain123json", false, this.webProxy_0, ref this.cookieContainer_0, true, true, 120000, 120000, ref this.string_10, ref this.string_11, ref this.webException_0))
  1494. {
  1495. goto Block_226;
  1496. }
  1497. this.method_30("Booking Output after Payment : htm = " + this.string_10);
  1498. num10 = this.string_10.IndexOf("pnrNumber", StringComparison.CurrentCultureIgnoreCase);
  1499. if (num10 > 0)
  1500. {
  1501. goto Block_227;
  1502. }
  1503. if (this.string_10.IndexOf("Choice of Confirm berths not met", StringComparison.CurrentCultureIgnoreCase) > 0)
  1504. {
  1505. goto Block_228;
  1506. }
  1507. if (!this.string_10.Contains("Invalid OTP"))
  1508. {
  1509. Thread.Sleep(2000);
  1510. flag = true;
  1511. goto IL_423D;
  1512. }
  1513. string text25 = Interaction.InputBox("Enter Correct OTP Of Mobikwik That Recive on Your Mobile no.", "Mobikwik OTP", "", cntrl.PointToScreen(rect.Location).X, cntrl.PointToScreen(rect.Location).Y).Trim();
  1514. IL_3F62:
  1515. if (!flag7)
  1516. {
  1517. if (text12 == "error")
  1518. {
  1519. this.class6_0.ReBank = true;
  1520. goto IL_423D;
  1521. }
  1522. goto IL_402C;
  1523. }
  1524. IL_3F97:
  1525. frmPayment frmPayment5 = new frmPayment();
  1526. frmPayment5.bool_2 = true;
  1527. frmPayment5.string_3 = string_;
  1528. frmPayment5.string_4 = string_2;
  1529. frmPayment5.string_1 = this.class6_0.string_23;
  1530. frmPayment5.string_5 = "Bank: " + this.class6_0.string_23;
  1531. frmPayment5.string_6 = "Rs." + text14 + " - " + text15;
  1532. frmPayment5.method_0(cntrl, rect);
  1533. DialogResult dialogResult = frmPayment5.DialogResult;
  1534. frmPayment5.Dispose();
  1535. if (dialogResult != DialogResult.OK)
  1536. {
  1537. goto Block_223;
  1538. }
  1539. goto IL_402C;
  1540. IL_440E:
  1541. if (isConfirmReq)
  1542. {
  1543. goto IL_3F97;
  1544. }
  1545. goto IL_3F62;
  1546. }
  1547. }
  1548. }
  1549. }
  1550. Block_128:
  1551. Block_133:
  1552. Block_145:
  1553. Block_150:
  1554. Block_173:
  1555. Block_177:
  1556. Block_180:;
  1557. }
  1558. Block_120:
  1559. Block_123:
  1560. Block_127:
  1561. Block_130:
  1562. Block_144:
  1563. Block_148:
  1564. Block_172:
  1565. Block_175:
  1566. Block_179:
  1567. Block_217:
  1568. Block_226:;
  1569. }
  1570. }
  1571. }
  1572. Block_100:
  1573. goto IL_47E6;
  1574. Block_109:
  1575. goto IL_4911;
  1576. Block_114:
  1577. this.method_31("PerformB.keepSessionActive", "keepSessionActive Returned -1");
  1578. if (updtStatus != null)
  1579. {
  1580. updtStatus.BeginInvoke(53, "Request Failed.", tCntrlName, null, null);
  1581. }
  1582. result = false;
  1583. return result;
  1584. Block_124:
  1585. Block_131:
  1586. goto IL_4911;
  1587. Block_141:
  1588. goto IL_47E6;
  1589. Block_149:
  1590. goto IL_4911;
  1591. Block_161:
  1592. if (updtStatus != null)
  1593. {
  1594. updtStatus.BeginInvoke(53, "Availability: " + text15 + ", Ticket Stopped!", tCntrlName, null, null);
  1595. }
  1596. this.method_30("Confirm Only but Availability is: " + text15 + " Ticket Stopped.");
  1597. result = false;
  1598. return result;
  1599. Block_166:
  1600. this.method_30("Bank ID Not Found, Returning.");
  1601. if (updtStatus != null)
  1602. {
  1603. updtStatus.BeginInvoke(53, "Technical Issue while Making Payment.", tCntrlName, null, null);
  1604. }
  1605. result = false;
  1606. return result;
  1607. Block_170:
  1608. this.method_30("User Cancelled Proceed choice");
  1609. if (updtStatus != null)
  1610. {
  1611. updtStatus.BeginInvoke(101, "Another Ticket already Proceed.! ", tCntrlName, null, null);
  1612. }
  1613. frmPayment2.Dispose();
  1614. result = false;
  1615. return result;
  1616. Block_176:
  1617. goto IL_4911;
  1618. IL_2F57:
  1619. string text26 = "Request Failed at Make Payment!";
  1620. this.method_30("Return Make Payment : strErr = " + text26);
  1621. if (updtStatus != null)
  1622. {
  1623. updtStatus.BeginInvoke(53, text26, tCntrlName, null, null);
  1624. }
  1625. result = false;
  1626. return result;
  1627. Block_185:
  1628. if (updtStatus != null)
  1629. {
  1630. updtStatus.BeginInvoke(53, "User Select to Stop Payment! ", tCntrlName, null, null);
  1631. }
  1632. this.method_30("User Select to Stop Payment!");
  1633. result = false;
  1634. return result;
  1635. Block_196:
  1636. stopwatch3.Stop();
  1637. if (stopwatch3.ElapsedMilliseconds > 800L)
  1638. {
  1639. bool flag11;
  1640. this.method_29(string.Concat(new object[]
  1641. {
  1642. text18,
  1643. flag11 ? "_Debit" : "_NB",
  1644. "~0~",
  1645. stopwatch3.ElapsedMilliseconds,
  1646. "~",
  1647. array[0]
  1648. }));
  1649. }
  1650. this.method_30(text18 + " Failed : strErr = " + text13);
  1651. if (updtStatus != null)
  1652. {
  1653. updtStatus.BeginInvoke(1, text13, tCntrlName, null, null);
  1654. }
  1655. string str2 = text18 + "_Fail: strErr_ " + text13;
  1656. if (!text13.Contains("Invaild Bank's Details") && !text13.Contains("Clear Balance Funds not available") && !text13.Contains("Invaild Card's Details") && !text13.Contains("Payment Not Captured") && !text13.Contains("OTP Cancelled by User"))
  1657. {
  1658. if (!IRComm.list_7.Contains(text18 + "_Fail"))
  1659. {
  1660. if (updtStatus != null)
  1661. {
  1662. IRComm.list_7.Add(text18 + "_Fail");
  1663. ThreadPool.QueueUserWorkItem(new WaitCallback(this.smethod_11), this.ClassID);
  1664. updtStatus.BeginInvoke(3, str2 + "|" + this.ClassID, tCntrlName, null, null);
  1665. }
  1666. }
  1667. }
  1668. goto IL_4911;
  1669. Block_223:
  1670. if (updtStatus != null)
  1671. {
  1672. updtStatus.BeginInvoke(53, "User Select to Stop Booking! ", tCntrlName, null, null);
  1673. }
  1674. this.method_30("User Select to Stop Booking!");
  1675. result = false;
  1676. return result;
  1677. Block_227:
  1678. lock (IRComm.object_8)
  1679. {
  1680. if (!IRComm.list_5.Contains(strName))
  1681. {
  1682. IRComm.list_5.Add(strName);
  1683. }
  1684. }
  1685. text3 = text3 + " IR-Ret:" + DateTime.Now.ToString("mm:ss");
  1686. int num11 = this.string_10.IndexOf("pnrNumber", num10);
  1687. if (num11 > 0)
  1688. {
  1689. string text27 = Class6.jsonData_Serial(this.string_10, "pnrNumber");
  1690. string text28 = Class6.jsonData_Serial(this.string_10, "timeStamp");
  1691. text28 = text28.Substring(text28.IndexOf("T") + 1, 8);
  1692. string text29 = text28;
  1693. string text14;
  1694. this.class6_0.method_11(false, "Booking Success", text14, text27, this.ClassID);
  1695. string text30 = text27 + "_";
  1696. this.method_30("PNR Booking PNR : " + text27 + " - " + text28);
  1697. bool flag11;
  1698. string[] values = new string[]
  1699. {
  1700. text27,
  1701. " - ",
  1702. text18,
  1703. flag11 ? "_Debit" : "_NB",
  1704. " - ",
  1705. this.class6_0.string_2,
  1706. " - ",
  1707. (this.double_0 / 1000.0).ToString(),
  1708. " - ",
  1709. text3
  1710. };
  1711. txnID = string.Concat(values);
  1712. if (IRComm.bool_0)
  1713. {
  1714. if (updtStatus != null)
  1715. {
  1716. updtStatus.BeginInvoke(5, "OPEN PNR: " + text27.Substring(0, 5) + "XXXXX", tCntrlName, null, null);
  1717. }
  1718. }
  1719. else if (updtStatus != null)
  1720. {
  1721. updtStatus.BeginInvoke(5, "PNR: " + text27.Substring(0, 5) + "XXXXX", tCntrlName, null, null);
  1722. }
  1723. string text19;
  1724. string text31 = string.Concat(new string[]
  1725. {
  1726. text27,
  1727. "|",
  1728. text29,
  1729. "|",
  1730. text19,
  1731. "|ABS|",
  1732. this.class6_0.string_0,
  1733. "-",
  1734. this.class6_0.string_1,
  1735. "-",
  1736. this.class6_0.string_2,
  1737. "-",
  1738. this.class6_0.string_8,
  1739. text5,
  1740. "|",
  1741. this.LogInSite
  1742. });
  1743. this.ResultSubmit(text31);
  1744. if (updtStatus != null)
  1745. {
  1746. updtStatus.BeginInvoke(4, text31, tCntrlName, null, null);
  1747. }
  1748. }
  1749. else
  1750. {
  1751. this.method_30("Ticket Booked Successfully");
  1752. txnID = "BOOKED";
  1753. string text14;
  1754. this.class6_0.method_11(false, "Booking Success", text14, "", this.ClassID);
  1755. if (updtStatus != null)
  1756. {
  1757. updtStatus.BeginInvoke(5, "Ticket Booked Successfully", tCntrlName, null, null);
  1758. }
  1759. }
  1760. if (this.class6_0.string_26 != "" & !this.class6_0.RtrnJrny)
  1761. {
  1762. DialogResult dialogResult4 = MessageBox.Show("You Have Save Return Journey Detail! Do you want to Book Return Ticket?", "Return Ticket", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1763. if (dialogResult4 == DialogResult.Yes)
  1764. {
  1765. this.SwipeJourneyDetail();
  1766. this.class6_0.RtrnJrny = true;
  1767. }
  1768. }
  1769. try
  1770. {
  1771. }
  1772. catch
  1773. {
  1774. }
  1775. result = true;
  1776. return result;
  1777. Block_228:
  1778. text13 = "Choice of Confirm berths not met";
  1779. goto IL_4911;
  1780. Block_237:
  1781. this.method_30("User Cancelled Another payment choice");
  1782. if (updtStatus != null)
  1783. {
  1784. updtStatus.BeginInvoke(53, "Paymnent Choice Cancelled by User! " + this.string_11, tCntrlName, null, null);
  1785. }
  1786. frmPayment4.Dispose();
  1787. result = false;
  1788. return result;
  1789. IL_47E6:
  1790. this.method_30("User Cancelled Booking Captcha");
  1791. if (updtStatus != null)
  1792. {
  1793. updtStatus.BeginInvoke(53, "Booking Captcha Cancelled by User! ", tCntrlName, null, null);
  1794. }
  1795. frmCaptcha.Dispose();
  1796. result = false;
  1797. return result;
  1798. IL_4911:
  1799. if (updtStatus != null)
  1800. {
  1801. updtStatus.BeginInvoke(53, text13, tCntrlName, null, null);
  1802. }
  1803. result = false;
  1804. return result;
  1805. }
  1806. catch (Exception ex2)
  1807. {
  1808. if (updtStatus != null)
  1809. {
  1810. updtStatus.BeginInvoke(53, "Send Log, Unexpected Error Occured! ", tCntrlName, null, null);
  1811. }
  1812. this.method_31("PerformB:OuterCatch", ex2.Message);
  1813. }
  1814. finally
  1815. {
  1816. if (this.cookieContainer_0 != null)
  1817. {
  1818. ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_8A), false);
  1819. }
  1820. try
  1821. {
  1822. ServicePointManager.FindServicePoint(new Uri("https://www.irctc.co.in")).CloseConnectionGroup(this.ConnectionGroupID);
  1823. if (this.class6_0 != null && this.bool_15)
  1824. {
  1825. string text32 = this.class6_0.string_23.Substring(0, this.class6_0.string_23.IndexOf('_')).Trim();
  1826. bool bool_ = this.class6_0.string_23.ToUpper().Contains("_DC");
  1827. if (this.class6_0.string_23.ToUpper().Contains("_CC"))
  1828. {
  1829. text32 += "_CC";
  1830. bool_ = true;
  1831. }
  1832. ServicePointManager.FindServicePoint(new Uri(this.method_18(text32, bool_))).CloseConnectionGroup(this.ConnectionGroupID);
  1833. }
  1834. }
  1835. catch
  1836. {
  1837. }
  1838. lock (obj2 = IRComm.object_4)
  1839. {
  1840. if (IRComm.list_2.Contains(this.class6_0.string_13))
  1841. {
  1842. IRComm.list_2.Remove(this.class6_0.string_13);
  1843. }
  1844. }
  1845. bool flag20 = false;
  1846. lock (obj2 = IRComm.object_5)
  1847. {
  1848. if (IRComm.dictionary_1.ContainsKey(text))
  1849. {
  1850. int num12 = IRComm.dictionary_1[text] - 1;
  1851. if (num12 > 0)
  1852. {
  1853. IRComm.dictionary_1[text] = num12;
  1854. }
  1855. else
  1856. {
  1857. Interlocked.Decrement(ref IRComm.int_2);
  1858. IRComm.dictionary_1.Remove(text);
  1859. flag20 = true;
  1860. }
  1861. }
  1862. }
  1863. if (flag20)
  1864. {
  1865. lock (obj2 = IRComm.object_6)
  1866. {
  1867. IRComm.list_3.Remove(strName);
  1868. }
  1869. lock (obj2 = IRComm.object_9)
  1870. {
  1871. if (IRComm.list_6.Contains(strName))
  1872. {
  1873. IRComm.list_6.Remove(strName);
  1874. }
  1875. }
  1876. if (IRComm.list_2.Count <= 0)
  1877. {
  1878. lock (obj2 = IRComm.object_8)
  1879. {
  1880. IRComm.list_5.Clear();
  1881. }
  1882. }
  1883. }
  1884. if (IRComm.waitCallback_0 == null)
  1885. {
  1886. IRComm.waitCallback_0 = new WaitCallback(IRComm.smethod_25);
  1887. }
  1888. ThreadPool.QueueUserWorkItem(IRComm.waitCallback_0);
  1889. }
  1890. result = false;
  1891. }
  1892. }
  1893. }
  1894. }
  1895. return result;
  1896. }
Add Comment
Please, Sign In to add comment