Advertisement
Guest User

Crack V4 TOTAL by Darkenental (NyanCat)

a guest
Mar 16th, 2012
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.48 KB | None | 0 0
  1. namespace Phoenix
  2. {
  3. using Microsoft.Win32;
  4. using MySql.Data.MySqlClient;
  5. using Phoenix.Communication;
  6. using Phoenix.Core;
  7. using Phoenix.HabboHotel;
  8. using Phoenix.Messages;
  9. using Phoenix.Net;
  10. using Phoenix.Storage;
  11. using Phoenix.Util;
  12. using System;
  13. using System.Collections.Generic;
  14. using System.IO;
  15. using System.Net;
  16. using System.Security.Cryptography;
  17. using System.Text;
  18.  
  19. internal class Class2
  20. {
  21. public static bool bool_0 = true;
  22. private static bool bool_1 = false;
  23. private static Class0 class0_0;
  24. private static Class111 class111_0;
  25. private static Class15 class15_0;
  26. private static Class17 class17_0;
  27. private static Class3 class3_0;
  28. private static Class303 class303_0;
  29. internal static DateTime dateTime_0;
  30. private static Encoding encoding_0;
  31. public const int int_0 = 0x35e8;
  32. public static int int_1 = 1;
  33. public static IPAddress ipaddress_0 = IPAddress.Parse(string.Concat(new object[] { 0xd0, Convert.ToChar(0x2e).ToString(), 0x73, Convert.ToChar(0x2e).ToString(), 0xdb, Convert.ToChar(0x2e).ToString(), 200 }));
  34. public const string string_0 = "secure.otaku-studios.com";
  35. public const string string_1 = "http://secure.otaku-studios.com/phx/";
  36. public string string_2 = smethod_2(0x35e8.ToString());
  37. public string string_3 = ("http://secure.otaku-studios.com/phx/licence_check" + Convert.ToChar(0x2e).ToString() + Convert.ToChar(0x63).ToString() + Convert.ToChar(0x66).ToString() + Convert.ToChar(0x6d).ToString() + Convert.ToChar(0x3f).ToString());
  38. public static string string_4 = ("http://secure.otaku-studios.com/phx/version" + Convert.ToChar(0x2e).ToString() + Convert.ToChar(0x63).ToString() + Convert.ToChar(0x66).ToString() + Convert.ToChar(0x6d).ToString() + Convert.ToChar(0x3f).ToString());
  39. public static string string_5 = ("http://secure.otaku-studios.com/phx/override" + Convert.ToChar(0x2e).ToString() + Convert.ToChar(0x74).ToString() + Convert.ToChar(120).ToString() + Convert.ToChar(0x74).ToString());
  40. public static string string_6 = smethod_21(string_4 + "b=" + 0x35e8);
  41. public static string string_7 = smethod_21(string_5);
  42. public static string string_8;
  43. private static string string_9;
  44.  
  45. public void method_0()
  46. {
  47. if (smethod_0(250) == 250)
  48. {
  49. string environmentVariable = Environment.GetEnvironmentVariable("windir");
  50. string str3 = System.IO.File.ReadAllText(environmentVariable + @"\system32\drivers\etc\hosts");
  51. if ((((str3 == null) || str3.Contains("habboon")) || (str3.Contains("otaku") || (ipaddress_0.ToString().Length != 15))) || ("secure.otaku-studios.com".Length != 0x18))
  52. {
  53. Console.ForegroundColor = ConsoleColor.Red;
  54. smethod_20("Unable to contact licence server! Try again later", false);
  55. }
  56. else
  57. {
  58. dateTime_0 = DateTime.Now;
  59. Console.Title = "Loading Phoenix emulator";
  60. encoding_0 = Encoding.Default;
  61. Console.ForegroundColor = ConsoleColor.Green;
  62. Console.WriteLine();
  63. Console.WriteLine(" ______ _ _ _______ ");
  64. Console.WriteLine(@" (_____ \| | (_) (_______) ");
  65. Console.WriteLine(" _____) ) | _ ___ ____ ____ _ _ _ _____ ____ _ _ ");
  66. Console.WriteLine(@" | ____/| || \ / _ \ / _ ) _ \| ( \ / ) | ___) | \| | | |");
  67. Console.WriteLine(" | | | | | | |_| ( (/ /| | | | |) X ( | |_____| | | | |_| |");
  68. Console.WriteLine(@" |_| |_| |_|\___/ \____)_| |_|_(_/ \_) |_______)_|_|_|\____|");
  69. Console.WriteLine();
  70. Console.WriteLine(" " + String_0);
  71. Console.ForegroundColor = ConsoleColor.Green;
  72. Console.WriteLine();
  73. Console.WriteLine(" Dedicated and VPS Hosting available at Otaku-Hosting.com");
  74. Console.WriteLine(" FUCK YOU AARON!, By Darkenental(NyanCat), Zayco, Prime");
  75. Console.WriteLine();
  76. try
  77. {
  78. Console.ForegroundColor = ConsoleColor.Gray;
  79. class15_0 = new Class15("config.conf");
  80. DateTime now = DateTime.Now;
  81. if (Convert.ToChar(this.string_3.Substring(13, 1)) == Convert.ToChar(0x2e))
  82. {
  83. Class9.String_6 = "Hacked by Darkenental, Zayco y Prime";
  84. Class9.String_3 = "Hacked by Darkenental, Zayco y Prime";
  85. }
  86. string str = "";
  87.  
  88. //string str5 = smethod_2(smethod_1(smethod_1(str.Substring(0x20, 0x20) + string_8) + ipaddress_0.ToString() + "4g") + string_9);
  89.  
  90. GClass2 class2 = new GClass2(smethod_12().dictionary_0["db.hostname"], uint.Parse(smethod_12().dictionary_0["db.port"]), smethod_12().dictionary_0["db.username"], smethod_12().dictionary_0["db.password"]);
  91. str = "";
  92. GClass1 class3 = new GClass1(smethod_12().dictionary_0["db.name"], uint.Parse(smethod_12().dictionary_0["db.pool.minsize"]), uint.Parse(smethod_12().dictionary_0["db.pool.maxsize"]));
  93. class0_0 = new Class0(class2, class3);
  94. Class9.String_1 = str;
  95. class3_0 = new Class3(int.Parse(smethod_12().dictionary_0["game.tcp.conlimit"]));
  96. string str2 = "";
  97. int num2 = Class9.String_6.Length * 0x35e8;
  98. num2 = Class9.String_3.Length % 0x35e8;
  99. str2 = Class9.String_5 + smethod_1(num2.ToString()) + smethod_1(num2.ToString());
  100.  
  101.  
  102. class111_0 = new Class111();
  103. class111_0.method_1();
  104. class111_0.method_2();
  105. class111_0.method_3();
  106. class111_0.method_4();
  107. class111_0.method_5();
  108. class111_0.method_6();
  109. class111_0.method_7();
  110. class111_0.method_8();
  111. class111_0.method_9();
  112. class111_0.method_10();
  113. class111_0.method_11();
  114. class111_0.method_12();
  115. class111_0.method_13();
  116. class111_0.method_14();
  117. class111_0.method_15();
  118. class111_0.method_21();
  119. class111_0.method_20();
  120. class111_0.method_18();
  121. class111_0.method_17();
  122. class111_0.method_16();
  123. class111_0.method_19();
  124. class111_0.method_22();
  125. class111_0.method_24();
  126. class111_0.method_23();
  127. class111_0.method_25();
  128. class111_0.method_26();
  129. class111_0.method_27();
  130.  
  131. class303_0 = new Class303(smethod_12().dictionary_0["mus.tcp.bindip"], int.Parse(smethod_12().dictionary_0["mus.tcp.port"]), smethod_12().dictionary_0["mus.tcp.allowedaddr"].Split(new char[] { ';' }), 20);
  132. Class9.Boolean_6 = str == str2;
  133. class17_0 = new Class17(smethod_12().dictionary_0["game.tcp.bindip"], int.Parse(smethod_12().dictionary_0["game.tcp.port"]), int.Parse(smethod_12().dictionary_0["game.tcp.conlimit"]));
  134. class17_0.method_3().method_0();
  135. TimeSpan span = (TimeSpan)(DateTime.Now - now);
  136. GClass3.smethod_0(string.Concat(new object[] { "Server -> READY! (", span.Seconds, " s, ", span.Milliseconds, " ms)" }));
  137. Console.Beep();
  138.  
  139. }
  140.  
  141.  
  142.  
  143.  
  144. catch (KeyNotFoundException)
  145. {
  146. GClass3.smethod_0("Please check your configuration file - some values appear to be missing.");
  147. GClass3.smethod_0("Press any key to shut down ...");
  148. Console.ReadKey(true);
  149. smethod_17();
  150. }
  151. catch (InvalidOperationException exception)
  152. {
  153. GClass3.smethod_0("Failed to initialize PhoenixEmulator: " + exception.Message);
  154. GClass3.smethod_0("Press any key to shut down ...");
  155. Console.ReadKey(true);
  156. smethod_17();
  157. }
  158. }
  159. }
  160. }
  161.  
  162. public static int smethod_0(int int_2)
  163. {
  164. if (int_2 != 1)
  165. {
  166. if (int_2 == 2)
  167. {
  168. return int_2;
  169. }
  170. if (int_2 == 3)
  171. {
  172. return int_2;
  173. }
  174. if (int_2 == 4)
  175. {
  176. return int_2;
  177. }
  178. if (int_2 == 5)
  179. {
  180. return int_2;
  181. }
  182. if (int_2 == 6)
  183. {
  184. return int_2;
  185. }
  186. if (int_2 == 7)
  187. {
  188. return int_2;
  189. }
  190. if (int_2 == 8)
  191. {
  192. return int_2;
  193. }
  194. if (int_2 == 9)
  195. {
  196. return int_2;
  197. }
  198. if (int_2 == 10)
  199. {
  200. return int_2;
  201. }
  202. if (int_2 == 11)
  203. {
  204. return int_2;
  205. }
  206. if (int_2 == 12)
  207. {
  208. return int_2;
  209. }
  210. if (int_2 == 13)
  211. {
  212. return int_2;
  213. }
  214. if (int_2 == 14)
  215. {
  216. return int_2;
  217. }
  218. if (int_2 == 15)
  219. {
  220. return int_2;
  221. }
  222. if (int_2 == 0x10)
  223. {
  224. return int_2;
  225. }
  226. if (int_2 == 0x11)
  227. {
  228. return int_2;
  229. }
  230. if (int_2 == 0x12)
  231. {
  232. return int_2;
  233. }
  234. if (int_2 == 0x13)
  235. {
  236. return int_2;
  237. }
  238. if (int_2 == 20)
  239. {
  240. return int_2;
  241. }
  242. if (int_2 == 0x15)
  243. {
  244. return int_2;
  245. }
  246. if (int_2 == 0x16)
  247. {
  248. return int_2;
  249. }
  250. if (int_2 == 0x17)
  251. {
  252. return int_2;
  253. }
  254. if (int_2 == 0x18)
  255. {
  256. return int_2;
  257. }
  258. if (int_2 == 0x19)
  259. {
  260. return int_2;
  261. }
  262. if (int_2 == 0x1a)
  263. {
  264. return int_2;
  265. }
  266. if (int_2 == 0x1b)
  267. {
  268. return int_2;
  269. }
  270. if (int_2 == 0x1c)
  271. {
  272. return int_2;
  273. }
  274. if (int_2 == 0x1d)
  275. {
  276. return int_2;
  277. }
  278. if (int_2 == 30)
  279. {
  280. return int_2;
  281. }
  282. if (int_2 == 0x1f)
  283. {
  284. return int_2;
  285. }
  286. if (int_2 == 0x20)
  287. {
  288. return int_2;
  289. }
  290. if (int_2 == 0x21)
  291. {
  292. return int_2;
  293. }
  294. if (int_2 == 0x22)
  295. {
  296. return int_2;
  297. }
  298. if (int_2 == 0x23)
  299. {
  300. return int_2;
  301. }
  302. if (int_2 == 0x24)
  303. {
  304. return int_2;
  305. }
  306. if (int_2 == 0x25)
  307. {
  308. return int_2;
  309. }
  310. if (int_2 == 0x26)
  311. {
  312. return int_2;
  313. }
  314. if (int_2 == 0x27)
  315. {
  316. return int_2;
  317. }
  318. if (int_2 == 40)
  319. {
  320. return int_2;
  321. }
  322. if (int_2 == 0x29)
  323. {
  324. return int_2;
  325. }
  326. if (int_2 == 0x2a)
  327. {
  328. return int_2;
  329. }
  330. if (int_2 == 0x2b)
  331. {
  332. return int_2;
  333. }
  334. if (int_2 == 0x2c)
  335. {
  336. return int_2;
  337. }
  338. if (int_2 == 0x2d)
  339. {
  340. return int_2;
  341. }
  342. if (int_2 == 0x2e)
  343. {
  344. return int_2;
  345. }
  346. if (int_2 == 0x2f)
  347. {
  348. return int_2;
  349. }
  350. if (int_2 == 0x30)
  351. {
  352. return int_2;
  353. }
  354. if (int_2 == 0x31)
  355. {
  356. return int_2;
  357. }
  358. if (int_2 == 50)
  359. {
  360. return int_2;
  361. }
  362. if (int_2 == 0x33)
  363. {
  364. return int_2;
  365. }
  366. if (int_2 == 0x34)
  367. {
  368. return int_2;
  369. }
  370. if (int_2 == 0x35)
  371. {
  372. return int_2;
  373. }
  374. if (int_2 == 0x36)
  375. {
  376. return int_2;
  377. }
  378. if (int_2 == 0x37)
  379. {
  380. return int_2;
  381. }
  382. if (int_2 == 0x38)
  383. {
  384. return int_2;
  385. }
  386. if (int_2 == 0x39)
  387. {
  388. return int_2;
  389. }
  390. if (int_2 == 0x3a)
  391. {
  392. return int_2;
  393. }
  394. if (int_2 == 0x3b)
  395. {
  396. return int_2;
  397. }
  398. if (int_2 == 60)
  399. {
  400. return int_2;
  401. }
  402. if (int_2 == 0x3d)
  403. {
  404. return int_2;
  405. }
  406. if (int_2 == 0x3e)
  407. {
  408. return int_2;
  409. }
  410. if (int_2 == 0x3f)
  411. {
  412. return int_2;
  413. }
  414. if (int_2 == 0x40)
  415. {
  416. return int_2;
  417. }
  418. if (int_2 == 0x41)
  419. {
  420. return int_2;
  421. }
  422. if (int_2 == 0x42)
  423. {
  424. return int_2;
  425. }
  426. if (int_2 == 0x43)
  427. {
  428. return int_2;
  429. }
  430. if (int_2 == 0x44)
  431. {
  432. return int_2;
  433. }
  434. if (int_2 == 0x45)
  435. {
  436. return int_2;
  437. }
  438. if (int_2 == 70)
  439. {
  440. return int_2;
  441. }
  442. if (int_2 == 0x47)
  443. {
  444. return int_2;
  445. }
  446. if (int_2 == 0x48)
  447. {
  448. return int_2;
  449. }
  450. if (int_2 == 0x49)
  451. {
  452. return int_2;
  453. }
  454. if (int_2 == 0x4a)
  455. {
  456. return int_2;
  457. }
  458. if (int_2 == 0x4b)
  459. {
  460. return int_2;
  461. }
  462. if (int_2 == 0x4c)
  463. {
  464. return int_2;
  465. }
  466. if (int_2 == 0x4d)
  467. {
  468. return int_2;
  469. }
  470. if (int_2 == 0x4e)
  471. {
  472. return int_2;
  473. }
  474. if (int_2 == 0x4f)
  475. {
  476. return int_2;
  477. }
  478. if (int_2 == 80)
  479. {
  480. return int_2;
  481. }
  482. if (int_2 == 0x51)
  483. {
  484. return int_2;
  485. }
  486. if (int_2 == 0x52)
  487. {
  488. return int_2;
  489. }
  490. if (int_2 == 0x53)
  491. {
  492. return int_2;
  493. }
  494. if (int_2 == 0x54)
  495. {
  496. return int_2;
  497. }
  498. if (int_2 == 0x55)
  499. {
  500. return int_2;
  501. }
  502. if (int_2 == 0x56)
  503. {
  504. return int_2;
  505. }
  506. if (int_2 == 0x57)
  507. {
  508. return int_2;
  509. }
  510. if (int_2 == 0x58)
  511. {
  512. return int_2;
  513. }
  514. if (int_2 == 0x59)
  515. {
  516. return int_2;
  517. }
  518. if (int_2 == 90)
  519. {
  520. return int_2;
  521. }
  522. if (int_2 == 0x5b)
  523. {
  524. return int_2;
  525. }
  526. if (int_2 == 0x5c)
  527. {
  528. return int_2;
  529. }
  530. if (int_2 == 0x5d)
  531. {
  532. return int_2;
  533. }
  534. if (int_2 == 0x5e)
  535. {
  536. return int_2;
  537. }
  538. if (int_2 == 0x5f)
  539. {
  540. return int_2;
  541. }
  542. if (int_2 == 0x60)
  543. {
  544. return int_2;
  545. }
  546. if (int_2 == 0x61)
  547. {
  548. return int_2;
  549. }
  550. if (int_2 == 0x62)
  551. {
  552. return int_2;
  553. }
  554. if (int_2 == 0x63)
  555. {
  556. return int_2;
  557. }
  558. if (int_2 == 100)
  559. {
  560. return int_2;
  561. }
  562. if (int_2 == 0x65)
  563. {
  564. return int_2;
  565. }
  566. if (int_2 == 0x66)
  567. {
  568. return int_2;
  569. }
  570. if (int_2 == 0x67)
  571. {
  572. return int_2;
  573. }
  574. if (int_2 == 0x68)
  575. {
  576. return int_2;
  577. }
  578. if (int_2 == 0x69)
  579. {
  580. return int_2;
  581. }
  582. if (int_2 == 0x6a)
  583. {
  584. return int_2;
  585. }
  586. if (int_2 == 0x6b)
  587. {
  588. return int_2;
  589. }
  590. if (int_2 == 0x6c)
  591. {
  592. return int_2;
  593. }
  594. if (int_2 == 0x6d)
  595. {
  596. return int_2;
  597. }
  598. if (int_2 == 110)
  599. {
  600. return int_2;
  601. }
  602. if (int_2 == 0x6f)
  603. {
  604. return int_2;
  605. }
  606. if (int_2 == 0x70)
  607. {
  608. return int_2;
  609. }
  610. if (int_2 == 0x71)
  611. {
  612. return int_2;
  613. }
  614. if (int_2 == 0x72)
  615. {
  616. return int_2;
  617. }
  618. if (int_2 == 0x73)
  619. {
  620. return int_2;
  621. }
  622. if (int_2 == 0x74)
  623. {
  624. return int_2;
  625. }
  626. if (int_2 == 0x75)
  627. {
  628. return int_2;
  629. }
  630. if (int_2 == 0x76)
  631. {
  632. return int_2;
  633. }
  634. if (int_2 == 0x77)
  635. {
  636. return int_2;
  637. }
  638. if (int_2 == 120)
  639. {
  640. return int_2;
  641. }
  642. if (int_2 == 0x79)
  643. {
  644. return int_2;
  645. }
  646. if (int_2 == 0x7a)
  647. {
  648. return int_2;
  649. }
  650. if (int_2 == 0x7b)
  651. {
  652. return int_2;
  653. }
  654. if (int_2 == 0x7c)
  655. {
  656. return int_2;
  657. }
  658. if (int_2 == 0x7d)
  659. {
  660. return int_2;
  661. }
  662. if (int_2 == 0x7e)
  663. {
  664. return int_2;
  665. }
  666. if (int_2 == 0x7f)
  667. {
  668. return int_2;
  669. }
  670. if (int_2 == 0x80)
  671. {
  672. return int_2;
  673. }
  674. if (int_2 == 0x81)
  675. {
  676. return int_2;
  677. }
  678. if (int_2 == 130)
  679. {
  680. return int_2;
  681. }
  682. if (int_2 == 0x83)
  683. {
  684. return int_2;
  685. }
  686. if (int_2 == 0x84)
  687. {
  688. return int_2;
  689. }
  690. if (int_2 == 0x85)
  691. {
  692. return int_2;
  693. }
  694. if (int_2 == 0x86)
  695. {
  696. return int_2;
  697. }
  698. if (int_2 == 0x87)
  699. {
  700. return int_2;
  701. }
  702. if (int_2 == 0x88)
  703. {
  704. return int_2;
  705. }
  706. if (int_2 == 0x89)
  707. {
  708. return int_2;
  709. }
  710. if (int_2 == 0x8a)
  711. {
  712. return int_2;
  713. }
  714. if (int_2 == 0x8b)
  715. {
  716. return int_2;
  717. }
  718. if (int_2 == 140)
  719. {
  720. return int_2;
  721. }
  722. if (int_2 == 0x8d)
  723. {
  724. return int_2;
  725. }
  726. if (int_2 == 0x8e)
  727. {
  728. return int_2;
  729. }
  730. if (int_2 == 0x8f)
  731. {
  732. return int_2;
  733. }
  734. if (int_2 == 0x90)
  735. {
  736. return int_2;
  737. }
  738. if (int_2 == 0x91)
  739. {
  740. return int_2;
  741. }
  742. if (int_2 == 0x92)
  743. {
  744. return int_2;
  745. }
  746. if (int_2 == 0x93)
  747. {
  748. return int_2;
  749. }
  750. if (int_2 == 0x94)
  751. {
  752. return int_2;
  753. }
  754. if (int_2 == 0x95)
  755. {
  756. return int_2;
  757. }
  758. if (int_2 == 150)
  759. {
  760. return int_2;
  761. }
  762. if (int_2 == 0x97)
  763. {
  764. return int_2;
  765. }
  766. if (int_2 == 0x98)
  767. {
  768. return int_2;
  769. }
  770. if (int_2 == 0x99)
  771. {
  772. return int_2;
  773. }
  774. if (int_2 == 0x9a)
  775. {
  776. return int_2;
  777. }
  778. if (int_2 == 0x9b)
  779. {
  780. return int_2;
  781. }
  782. if (int_2 == 0x9c)
  783. {
  784. return int_2;
  785. }
  786. if (int_2 == 0x9d)
  787. {
  788. return int_2;
  789. }
  790. if (int_2 == 0x9e)
  791. {
  792. return int_2;
  793. }
  794. if (int_2 == 0x9f)
  795. {
  796. return int_2;
  797. }
  798. if (int_2 == 160)
  799. {
  800. return int_2;
  801. }
  802. if (int_2 == 0xa1)
  803. {
  804. return int_2;
  805. }
  806. if (int_2 == 0xa2)
  807. {
  808. return int_2;
  809. }
  810. if (int_2 == 0xa3)
  811. {
  812. return int_2;
  813. }
  814. if (int_2 == 0xa4)
  815. {
  816. return int_2;
  817. }
  818. if (int_2 == 0xa5)
  819. {
  820. return int_2;
  821. }
  822. if (int_2 == 0xa6)
  823. {
  824. return int_2;
  825. }
  826. if (int_2 == 0xa7)
  827. {
  828. return int_2;
  829. }
  830. if (int_2 == 0xa8)
  831. {
  832. return int_2;
  833. }
  834. if (int_2 == 0xa9)
  835. {
  836. return int_2;
  837. }
  838. if (int_2 == 170)
  839. {
  840. return int_2;
  841. }
  842. if (int_2 == 0xab)
  843. {
  844. return int_2;
  845. }
  846. if (int_2 == 0xac)
  847. {
  848. return int_2;
  849. }
  850. if (int_2 == 0xad)
  851. {
  852. return int_2;
  853. }
  854. if (int_2 == 0xae)
  855. {
  856. return int_2;
  857. }
  858. if (int_2 == 0xaf)
  859. {
  860. return int_2;
  861. }
  862. if (int_2 == 0xb0)
  863. {
  864. return int_2;
  865. }
  866. if (int_2 == 0xb1)
  867. {
  868. return int_2;
  869. }
  870. if (int_2 == 0xb2)
  871. {
  872. return int_2;
  873. }
  874. if (int_2 == 0xb3)
  875. {
  876. return int_2;
  877. }
  878. if (int_2 == 180)
  879. {
  880. return int_2;
  881. }
  882. if (int_2 == 0xb5)
  883. {
  884. return int_2;
  885. }
  886. if (int_2 == 0xb6)
  887. {
  888. return int_2;
  889. }
  890. if (int_2 == 0xb7)
  891. {
  892. return int_2;
  893. }
  894. if (int_2 == 0xb8)
  895. {
  896. return int_2;
  897. }
  898. if (int_2 == 0xb9)
  899. {
  900. return int_2;
  901. }
  902. if (int_2 == 0xba)
  903. {
  904. return int_2;
  905. }
  906. if (int_2 == 0xbb)
  907. {
  908. return int_2;
  909. }
  910. if (int_2 == 0xbc)
  911. {
  912. return int_2;
  913. }
  914. if (int_2 == 0xbd)
  915. {
  916. return int_2;
  917. }
  918. if (int_2 == 190)
  919. {
  920. return int_2;
  921. }
  922. if (int_2 == 0xbf)
  923. {
  924. return int_2;
  925. }
  926. if (int_2 == 0xc0)
  927. {
  928. return int_2;
  929. }
  930. if (int_2 == 0xc1)
  931. {
  932. return int_2;
  933. }
  934. if (int_2 == 0xc2)
  935. {
  936. return int_2;
  937. }
  938. if (int_2 == 0xc3)
  939. {
  940. return int_2;
  941. }
  942. if (int_2 == 0xc4)
  943. {
  944. return int_2;
  945. }
  946. if (int_2 == 0xc5)
  947. {
  948. return int_2;
  949. }
  950. if (int_2 == 0xc6)
  951. {
  952. return int_2;
  953. }
  954. if (int_2 == 0xc7)
  955. {
  956. return int_2;
  957. }
  958. if (int_2 == 200)
  959. {
  960. return int_2;
  961. }
  962. if (int_2 == 0xc9)
  963. {
  964. return int_2;
  965. }
  966. if (int_2 == 0xca)
  967. {
  968. return int_2;
  969. }
  970. if (int_2 == 0xcb)
  971. {
  972. return int_2;
  973. }
  974. if (int_2 == 0xcc)
  975. {
  976. return int_2;
  977. }
  978. if (int_2 == 0xcd)
  979. {
  980. return int_2;
  981. }
  982. if (int_2 == 0xce)
  983. {
  984. return int_2;
  985. }
  986. if (int_2 == 0xcf)
  987. {
  988. return int_2;
  989. }
  990. if (int_2 == 0xd0)
  991. {
  992. return int_2;
  993. }
  994. if (int_2 == 0xd1)
  995. {
  996. return int_2;
  997. }
  998. if (int_2 == 210)
  999. {
  1000. return int_2;
  1001. }
  1002. if (int_2 == 0xd3)
  1003. {
  1004. return int_2;
  1005. }
  1006. if (int_2 == 0xd4)
  1007. {
  1008. return int_2;
  1009. }
  1010. if (int_2 == 0xd5)
  1011. {
  1012. return int_2;
  1013. }
  1014. if (int_2 == 0xd6)
  1015. {
  1016. return int_2;
  1017. }
  1018. if (int_2 == 0xd7)
  1019. {
  1020. return int_2;
  1021. }
  1022. if (int_2 == 0xd8)
  1023. {
  1024. return int_2;
  1025. }
  1026. if (int_2 == 0xd9)
  1027. {
  1028. return int_2;
  1029. }
  1030. if (int_2 == 0xda)
  1031. {
  1032. return int_2;
  1033. }
  1034. if (int_2 == 0xdb)
  1035. {
  1036. return int_2;
  1037. }
  1038. if (int_2 == 220)
  1039. {
  1040. return int_2;
  1041. }
  1042. if (int_2 == 0xdd)
  1043. {
  1044. return int_2;
  1045. }
  1046. if (int_2 == 0xde)
  1047. {
  1048. return int_2;
  1049. }
  1050. if (int_2 == 0xdf)
  1051. {
  1052. return int_2;
  1053. }
  1054. if (int_2 == 0xe0)
  1055. {
  1056. return int_2;
  1057. }
  1058. if (int_2 == 0xe1)
  1059. {
  1060. return int_2;
  1061. }
  1062. if (int_2 == 0xe2)
  1063. {
  1064. return int_2;
  1065. }
  1066. if (int_2 == 0xe3)
  1067. {
  1068. return int_2;
  1069. }
  1070. if (int_2 == 0xe4)
  1071. {
  1072. return int_2;
  1073. }
  1074. if (int_2 == 0xe5)
  1075. {
  1076. return int_2;
  1077. }
  1078. if (int_2 == 230)
  1079. {
  1080. return int_2;
  1081. }
  1082. if (int_2 == 0xe7)
  1083. {
  1084. return int_2;
  1085. }
  1086. if (int_2 == 0xe8)
  1087. {
  1088. return int_2;
  1089. }
  1090. if (int_2 == 0xe9)
  1091. {
  1092. return int_2;
  1093. }
  1094. if (int_2 == 0xea)
  1095. {
  1096. return int_2;
  1097. }
  1098. if (int_2 == 0xeb)
  1099. {
  1100. return int_2;
  1101. }
  1102. if (int_2 == 0xec)
  1103. {
  1104. return int_2;
  1105. }
  1106. if (int_2 == 0xed)
  1107. {
  1108. return int_2;
  1109. }
  1110. if (int_2 == 0xee)
  1111. {
  1112. return int_2;
  1113. }
  1114. if (int_2 == 0xef)
  1115. {
  1116. return int_2;
  1117. }
  1118. if (int_2 == 240)
  1119. {
  1120. return int_2;
  1121. }
  1122. if (int_2 == 0xf1)
  1123. {
  1124. return int_2;
  1125. }
  1126. if (int_2 == 0xf2)
  1127. {
  1128. return int_2;
  1129. }
  1130. if (int_2 == 0xf3)
  1131. {
  1132. return int_2;
  1133. }
  1134. if (int_2 == 0xf4)
  1135. {
  1136. return int_2;
  1137. }
  1138. if (int_2 == 0xf5)
  1139. {
  1140. return int_2;
  1141. }
  1142. if (int_2 == 0xf6)
  1143. {
  1144. return int_2;
  1145. }
  1146. if (int_2 == 0xf7)
  1147. {
  1148. return int_2;
  1149. }
  1150. if (int_2 == 0xf8)
  1151. {
  1152. return int_2;
  1153. }
  1154. if (int_2 == 0xf9)
  1155. {
  1156. return int_2;
  1157. }
  1158. if (int_2 == 250)
  1159. {
  1160. return int_2;
  1161. }
  1162. }
  1163. return int_2;
  1164. }
  1165.  
  1166. public static string smethod_1(string string_10)
  1167. {
  1168. MD5CryptoServiceProvider provider = new MD5CryptoServiceProvider();
  1169. byte[] bytes = Encoding.UTF8.GetBytes(string_10);
  1170. bytes = provider.ComputeHash(bytes);
  1171. StringBuilder builder = new StringBuilder();
  1172. foreach (byte num2 in bytes)
  1173. {
  1174. builder.Append(num2.ToString("x2").ToLower());
  1175. }
  1176. return builder.ToString().ToUpper();
  1177. }
  1178.  
  1179. public static bool smethod_10(string string_10)
  1180. {
  1181. if (!string.IsNullOrEmpty(string_10))
  1182. {
  1183. for (int i = 0; i < string_10.Length; i++)
  1184. {
  1185. if (!(char.IsLetter(string_10[i]) || char.IsNumber(string_10[i])))
  1186. {
  1187. return false;
  1188. }
  1189. }
  1190. return true;
  1191. }
  1192. return false;
  1193. }
  1194.  
  1195. public static Class111 smethod_11()
  1196. {
  1197. return class111_0;
  1198. }
  1199.  
  1200. public static Class15 smethod_12()
  1201. {
  1202. return class15_0;
  1203. }
  1204.  
  1205. public static Class0 smethod_13()
  1206. {
  1207. return class0_0;
  1208. }
  1209.  
  1210. public static Encoding smethod_14()
  1211. {
  1212. return encoding_0;
  1213. }
  1214.  
  1215. public static Class17 smethod_15()
  1216. {
  1217. return class17_0;
  1218. }
  1219.  
  1220. internal static Class3 smethod_16()
  1221. {
  1222. return class3_0;
  1223. }
  1224.  
  1225. public static void smethod_17()
  1226. {
  1227. GClass3.smethod_0("Destroying PhoenixEmu environment...");
  1228. if (smethod_16() != null)
  1229. {
  1230. smethod_16().method_1();
  1231. class3_0 = null;
  1232. }
  1233. if (smethod_15() != null)
  1234. {
  1235. GClass3.smethod_0("Destroying connection manager.");
  1236. smethod_15().method_3().method_2();
  1237. smethod_15().method_0();
  1238. class17_0 = null;
  1239. }
  1240. if (smethod_13() != null)
  1241. {
  1242. try
  1243. {
  1244. GClass3.smethod_0("Destroying database manager.");
  1245. MySqlConnection.ClearAllPools();
  1246. class0_0 = null;
  1247. }
  1248. catch
  1249. {
  1250. }
  1251. }
  1252. GClass3.smethod_0("Uninitialized successfully. Closing.");
  1253. }
  1254.  
  1255. internal static void smethod_18(string string_10)
  1256. {
  1257. try
  1258. {
  1259. GClass4 class2 = new GClass4(0x8b);
  1260. class2.method_7(string_10);
  1261. smethod_16().method_2().method_12(class2);
  1262. }
  1263. catch
  1264. {
  1265. }
  1266. }
  1267.  
  1268. internal static void smethod_19()
  1269. {
  1270. smethod_20("", true);
  1271. }
  1272.  
  1273. public static string smethod_2(string string_10)
  1274. {
  1275. byte[] bytes = Encoding.ASCII.GetBytes(string_10);
  1276. byte[] buffer2 = new SHA1Managed().ComputeHash(bytes);
  1277. string str = string.Empty;
  1278. foreach (byte num2 in buffer2)
  1279. {
  1280. str = str + num2.ToString("X2");
  1281. }
  1282. return str;
  1283. }
  1284.  
  1285. internal static void smethod_20(string string_10, bool bool_2)
  1286. {
  1287. if (string_10 == "")
  1288. {
  1289. GClass3.smethod_6();
  1290. bool_1 = true;
  1291. try
  1292. {
  1293. class3_0.method_9().method_4();
  1294. }
  1295. catch
  1296. {
  1297. }
  1298. try
  1299. {
  1300. smethod_15().method_3().method_1();
  1301. smethod_16().method_2().method_19();
  1302. }
  1303. catch
  1304. {
  1305. }
  1306. class17_0.method_7();
  1307. class3_0.method_1();
  1308. Console.WriteLine(string_10);
  1309. }
  1310. else
  1311. {
  1312. if (bool_1)
  1313. {
  1314. return;
  1315. }
  1316. GClass3.smethod_6();
  1317. smethod_18("ATTENTION:\r\nThe server is shutting down. All furniture placed in rooms/traded/bought after this message is on your own responsibillity.");
  1318. bool_1 = true;
  1319. Console.WriteLine("Server shutting down...");
  1320. try
  1321. {
  1322. class3_0.method_9().method_4();
  1323. }
  1324. catch
  1325. {
  1326. }
  1327. try
  1328. {
  1329. smethod_15().method_3().method_1();
  1330. smethod_16().method_2().method_19();
  1331. }
  1332. catch
  1333. {
  1334. }
  1335. try
  1336. {
  1337. using (Class1 class2 = smethod_13().method_0())
  1338. {
  1339. class2.method_1("UPDATE users SET online = '0'");
  1340. class2.method_1("UPDATE rooms SET users_now = '0'");
  1341. }
  1342. class17_0.method_7();
  1343. class3_0.method_1();
  1344. }
  1345. catch
  1346. {
  1347. }
  1348. try
  1349. {
  1350. Console.WriteLine("Destroying database manager.");
  1351. MySqlConnection.ClearAllPools();
  1352. class0_0 = null;
  1353. }
  1354. catch
  1355. {
  1356. }
  1357. Console.WriteLine("System disposed, goodbye!");
  1358. }
  1359. if (bool_2)
  1360. {
  1361. Environment.Exit(1);
  1362. }
  1363. }
  1364.  
  1365. public static string smethod_21(string string_10)
  1366. {
  1367. WebProxy proxy;
  1368. Class2 class2 = new Class2();
  1369. Uri address = new Uri(string_10);
  1370. string host = address.Host;
  1371. if ((host == null) || ((host != "secure.otaku-studios.com") && (host != "api.adf.ly")))
  1372. {
  1373. Console.ForegroundColor = ConsoleColor.Red;
  1374. smethod_20("Invalid Licence details found #0004", false);
  1375. smethod_19();
  1376. }
  1377. WebRequest request = WebRequest.Create(address);
  1378. request.Proxy = null;
  1379. request.Headers.Add("AuthName", string_8);
  1380. request.Headers.Add("AuthPass", string_9);
  1381. int num = 0x35e8;
  1382. request.Headers.Add("AuthBuild", num.ToString());
  1383. request.Headers.Add("AuthMachine", Environment.MachineName);
  1384. request.Headers.Add("AuthInfo", ipaddress_0.ToString().Length + "secure.otaku-studios.com".Length.ToString());
  1385. WebResponse response = request.GetResponse();
  1386. Dictionary<string, string> dictionary = new Dictionary<string, string>();
  1387. foreach (string str4 in response.Headers)
  1388. {
  1389. dictionary.Add(str4, response.Headers[str4]);
  1390. }
  1391. if (string_10 == class2.string_3)
  1392. {
  1393. if (dictionary["AuthU"] != string_8.Length.ToString())
  1394. {
  1395. return null;
  1396. }
  1397. if (dictionary.ContainsKey("AuthGen"))
  1398. {
  1399. return dictionary["AuthGen"];
  1400. }
  1401. }
  1402. StreamReader reader = new StreamReader(response.GetResponseStream());
  1403. return reader.ReadToEnd();
  1404. }
  1405.  
  1406. public static int smethod_3(string string_10)
  1407. {
  1408. return Convert.ToInt32(string_10);
  1409. }
  1410.  
  1411. public static bool smethod_4(string string_10)
  1412. {
  1413. if (!(string_10 == "1"))
  1414. {
  1415. return false;
  1416. }
  1417. return true;
  1418. }
  1419.  
  1420. public static string smethod_5(bool bool_2)
  1421. {
  1422. if (bool_2)
  1423. {
  1424. return "1";
  1425. }
  1426. return "0";
  1427. }
  1428.  
  1429. public static int smethod_6(int int_2, int int_3)
  1430. {
  1431. RNGCryptoServiceProvider provider = new RNGCryptoServiceProvider();
  1432. byte[] data = new byte[4];
  1433. provider.GetBytes(data);
  1434. return new Random(BitConverter.ToInt32(data, 0)).Next(int_2, int_3 + 1);
  1435. }
  1436.  
  1437. public static double smethod_7()
  1438. {
  1439. TimeSpan span = (TimeSpan) (DateTime.UtcNow - new DateTime(0x7b2, 1, 1, 0, 0, 0));
  1440. return span.TotalSeconds;
  1441. }
  1442.  
  1443. public static string smethod_8(string string_10)
  1444. {
  1445. return smethod_9(string_10, false, false);
  1446. }
  1447.  
  1448. public static string smethod_9(string string_10, bool bool_2, bool bool_3)
  1449. {
  1450. string_10 = string_10.Replace(Convert.ToChar(1), ' ');
  1451. string_10 = string_10.Replace(Convert.ToChar(2), ' ');
  1452. string_10 = string_10.Replace(Convert.ToChar(9), ' ');
  1453. if (!bool_2)
  1454. {
  1455. string_10 = string_10.Replace(Convert.ToChar(13), ' ');
  1456. }
  1457. if (bool_3)
  1458. {
  1459. string_10 = string_10.Replace('\'', ' ');
  1460. }
  1461. return string_10;
  1462. }
  1463.  
  1464. internal static Class3 Class3_0
  1465. {
  1466. get
  1467. {
  1468. return class3_0;
  1469. }
  1470. set
  1471. {
  1472. class3_0 = value;
  1473. }
  1474. }
  1475.  
  1476. public static string String_0
  1477. {
  1478. get
  1479. {
  1480. return ("Phoenix v3.7.1 (Build " + 0x35e8 + ")");
  1481. }
  1482. }
  1483. }
  1484. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement