Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.63 KB | None | 0 0
  1. package org.zoovy.dos;
  2.  
  3. /**
  4. * @Author Zoovy
  5. **/
  6.  
  7. import java.util.Scanner;
  8. import java.util.Random;
  9. public class Main {
  10. @SuppressWarnings("resource")
  11. public static void main(String args[]) {
  12. Scanner Scanner;
  13. Random Random;
  14. Random rand = new Random();
  15. Scanner = new Scanner(System.in);
  16. int i = 1;
  17. int c = 0;
  18. String[] $table = {"1", "2", "3"};
  19. int $x = rand.nextInt(3);
  20. boolean one = true;
  21. boolean two = false;
  22. if ((one != false) && (two != true)) {
  23. if (i == 1) {
  24. try {
  25. Thread.sleep(1000);
  26. System.out.println("[✓] Loading Assets...");
  27. Thread.sleep(4000);
  28. System.out.println("[✓] Please Enter your Product Key.");
  29. String $PK = Scanner.next();
  30. if ($PK.equals("78772777")) {
  31. if ((one != false) && (two != true)) {
  32. System.out.println("[?] Checking your Product Key...");
  33. Thread.sleep(4000);
  34. Start();
  35. }
  36. } else {
  37. System.out.println("[?] Checking your Product Key...");
  38. Thread.sleep(4000);
  39. System.out.println("[✗] The Product Key you Entered is Invalid");
  40. Quit();
  41. }
  42. } catch (InterruptedException ex) {
  43. System.out.println(" ");
  44. }
  45. }
  46. }
  47. }
  48. public static void Start() {
  49. Scanner Scanner;
  50. Scanner = new Scanner(System.in);
  51. boolean one = true;
  52. boolean two = false;
  53. int i = 1;
  54. if (i == 1) {
  55. try {
  56. System.out.println("[✓] The Product Key you Entered is Valid");
  57. Thread.sleep(1000);
  58. System.out.println("[?] Was this not your Product key? if Not, Please type return, if this is your Product key, Please Type continue");
  59. String $return = Scanner.next();
  60. if ($return.equals("return")) {
  61. if ((one != false) && (two != true)) {
  62. Return();
  63. }
  64. } else {
  65. Thread.sleep(1000);
  66. System.out.println("[✓] Loading Assets...");
  67. Thread.sleep(4000);
  68. System.out.println("[?] Credentials Detected...");
  69. Thread.sleep(1000);
  70. System.out.println("[✓] Please Enter Your Username");
  71. }
  72. String $user = Scanner.next();
  73. if ($user.equals("admin")) {
  74. if ((one != false) && (two != true)) {
  75. System.out.println("[?] Checking Credentials...");
  76. Thread.sleep(4000);
  77. System.out.println("[✓] Please Enter Your Password");
  78. String $pass = Scanner.next();
  79. if ($pass.equals("admin")) {
  80. if ((one != false) && (two != true)) {
  81. System.out.println("[?] Checking Credentials...");
  82. Thread.sleep(4000);
  83. System.out.println("[✓] Welcome back " + $user); // MAIN PAGE
  84. Thread.sleep(1000);
  85. System.out.println("[✓] Loading Assets...");
  86. Thread.sleep(4000);
  87. System.out.print("Z");
  88. Thread.sleep(300);
  89. System.out.print("o");
  90. Thread.sleep(300);
  91. System.out.print("o");
  92. Thread.sleep(300);
  93. System.out.print("v");
  94. Thread.sleep(300);
  95. System.out.print("y");
  96. Thread.sleep(300);
  97. System.out.print(" ");
  98. Thread.sleep(300);
  99. System.out.print("D");
  100. Thread.sleep(300);
  101. System.out.print("O");
  102. Thread.sleep(300);
  103. System.out.print("S");
  104. Thread.sleep(300);
  105. System.out.print(" ");
  106. Thread.sleep(300);
  107. System.out.print("W");
  108. Thread.sleep(300);
  109. System.out.print("e");
  110. Thread.sleep(300);
  111. System.out.print("l");
  112. Thread.sleep(300);
  113. System.out.print("c");
  114. Thread.sleep(300);
  115. System.out.print("o");
  116. Thread.sleep(300);
  117. System.out.print("m");
  118. Thread.sleep(300);
  119. System.out.print("e");
  120. Thread.sleep(300);
  121. System.out.println("!");
  122. Thread.sleep(1000);
  123. System.out.println("[✓] Loading Assets...");
  124. Thread.sleep(4000);
  125. System.out.println("[?] Need Some Help? type help");
  126. String $command = Scanner.next();
  127. if ($command.equals("HT")) {
  128. if ((one != false) && (two != true)) {
  129. HeadTail();
  130. }
  131. }
  132. if ($command.equals("calculator")) {
  133. if ((one != false) && (two != true)) {
  134. Calculator();
  135. }
  136. }
  137. if ($command.equals("about")) {
  138. if ((one != false) && (two != true)) {
  139. Thread.sleep(1000);
  140. System.out.println("[✓] Loading Assets...");
  141. Thread.sleep(4000);
  142. System.out.println("About Memphis DoS:");
  143. Thread.sleep(1000);
  144. System.out.println("Memphis DoS was Created by Zoovy in an attempt to make it easier for users to Understand DoS, with a User Friendly Interface.");
  145. Thread.sleep(1000);
  146. Start2();
  147. }
  148. }
  149. if ($command.equals("version")) {
  150. if ((one != false) && (two != true)) {
  151. Thread.sleep(1000);
  152. System.out.println("[✓] Loading Version...");
  153. Thread.sleep(4000);
  154. System.out.println("Memphis DoS 1");
  155. Thread.sleep(4000);
  156. Start2();
  157. }
  158. }
  159. if ($command.equals("help")) {
  160. if ((one != false) && (two != true)) {
  161. Help();
  162. }
  163. }
  164. if ($command.equals("clear")) {
  165. if ((one != false) && (two != true)) {
  166. Thread.sleep(1000);
  167. System.out.println("[!] Warning! You are about to clear Console, would you still like to proceed? [yes] [no]");
  168. String $yn = Scanner.next();
  169. if ($yn.equals("yes")) {
  170. if ((one != false) && (two != true)) {
  171. Thread.sleep(4000);
  172. System.out.println("[BETA] Console has been Cleared");
  173. Thread.sleep(1000);
  174. Start2();
  175. }
  176. }
  177. if ($yn.equals("no")) {
  178. if ((one != false) && (two != true)) {
  179. Start2();
  180. }
  181. }
  182. } // end of this if statement
  183. }
  184. }
  185. } else {
  186. System.out.println("[?] Checking Credentials...");
  187. Thread.sleep(4000);
  188. System.out.println("[✗] Invalid Password!");
  189. Quit();
  190. }
  191. }
  192. } else {
  193. System.out.println("[✓] Checking Credentials...");
  194. Thread.sleep(4000);
  195. System.out.println("[✗] Invalid Username!");
  196. Quit();
  197. }
  198. } catch (InterruptedException ex) {
  199. System.out.println(" ");
  200. }
  201. }
  202. } // end of Start Void
  203. public static void Return() {
  204. Scanner Scanner;
  205. Random Random;
  206. Random rand = new Random();
  207. Scanner = new Scanner(System.in);
  208. int i = 1;
  209. int c = 0;
  210. String[] $table = {"1", "2", "3"};
  211. int $x = rand.nextInt(3);
  212. boolean one = true;
  213. boolean two = false;
  214. if ((one != false) && (two != true)) {
  215. if (i == 1) {
  216. try {
  217. Thread.sleep(1000);
  218. System.out.println("[✓] Loading Assets...");
  219. Thread.sleep(4000);
  220. System.out.println("[✓] Please Enter your Product Key.");
  221. String $PK = Scanner.next();
  222. if ($PK.equals("78772777")) {
  223. if ((one != false) && (two != true)) {
  224. System.out.println("[?] Checking your Product Key...");
  225. Thread.sleep(4000);
  226. Start();
  227. }
  228. } else {
  229. System.out.println("[?] Checking your Product Key...");
  230. Thread.sleep(4000);
  231. System.out.println("[✗] The Product Key you Entered is Invalid");
  232. }
  233. } catch (InterruptedException ex) {
  234. System.out.println(" ");
  235. }
  236. }
  237. }
  238. } // end of Return Void
  239. public static void Help() {
  240. boolean one = true;
  241. boolean two = false;
  242. Scanner Scanner;
  243. Scanner = new Scanner(System.in);
  244. int i = 1;
  245. if (i == 1) {
  246. if ((one != false) && (two != true)) {
  247. try {
  248. Thread.sleep(1000);
  249. System.out.println("[✓] Loading Assets...");
  250. Thread.sleep(4000);
  251. System.out.println("[✓] Welcome to the Help Menu. To Return, Please Type return");
  252. Thread.sleep(2000);
  253. System.out.println("[✓] Showing Commands...");
  254. Thread.sleep(1000);
  255. System.out.println("- clear >> Clears the Console leaving the console blank");
  256. Thread.sleep(200);
  257. System.out.println("- version >> Shows the Current Version of This DoS Operating System");
  258. Thread.sleep(200);
  259. System.out.println("- about >> About Memphis DoS");
  260. Thread.sleep(200);
  261. System.out.println("- calculator >> Basic Calculator with a Friendly Interface");
  262. Thread.sleep(200);
  263. System.out.println("- HT >> Heads or Tails, Makes it Easy to Resolve Arguements");
  264. String $return = Scanner.next();
  265. if ($return.equals("return")) {
  266. if ((one != false) && (two != true)) {
  267. Start2();
  268. }
  269. }
  270. } catch (InterruptedException ex) {
  271. System.out.println(" ");
  272. }
  273. }
  274. }
  275. } // end of Help Void
  276. public static void Start2() {
  277. Scanner Scanner;
  278. Scanner = new Scanner(System.in);
  279. int i = 1;
  280. boolean one = true;
  281. boolean two = false;
  282. if (i == 1) {
  283. if ((one != false) && (two != true)) {
  284. try {
  285. System.out.println("[✓] Loading Assets...");
  286. Thread.sleep(4000);
  287. System.out.print("Z");
  288. Thread.sleep(300);
  289. System.out.print("o");
  290. Thread.sleep(300);
  291. System.out.print("o");
  292. Thread.sleep(300);
  293. System.out.print("v");
  294. Thread.sleep(300);
  295. System.out.print("y");
  296. Thread.sleep(300);
  297. System.out.print(" ");
  298. Thread.sleep(300);
  299. System.out.print("D");
  300. Thread.sleep(300);
  301. System.out.print("O");
  302. Thread.sleep(300);
  303. System.out.print("S");
  304. Thread.sleep(300);
  305. System.out.print(" ");
  306. Thread.sleep(300);
  307. System.out.print("W");
  308. Thread.sleep(300);
  309. System.out.print("e");
  310. Thread.sleep(300);
  311. System.out.print("l");
  312. Thread.sleep(300);
  313. System.out.print("c");
  314. Thread.sleep(300);
  315. System.out.print("o");
  316. Thread.sleep(300);
  317. System.out.print("m");
  318. Thread.sleep(300);
  319. System.out.print("e");
  320. Thread.sleep(300);
  321. System.out.println("!");
  322. Thread.sleep(1000);
  323. System.out.println("[✓] Loading Assets...");
  324. Thread.sleep(4000);
  325. System.out.println("[?] Need Some Help? type help");
  326. String $command = Scanner.next();
  327. if ($command.equals("HT")) {
  328. if ((one != false) && (two != true)) {
  329. HeadTail();
  330. }
  331. }
  332. if ($command.equals("calculator")) {
  333. if ((one != false) && (two != true)) {
  334. Calculator();
  335. }
  336. }
  337. if ($command.equals("about")) {
  338. if ((one != false) && (two != true)) {
  339. Thread.sleep(1000);
  340. System.out.println("[✓] Loading Assets...");
  341. Thread.sleep(4000);
  342. System.out.println("About Memphis DoS:");
  343. Thread.sleep(1000);
  344. System.out.println("Memphis DoS was Created by Zoovy in an attempt to make it easier for users to Understand DoS, with a User Friendly Interface.");
  345. Thread.sleep(1000);
  346. Start2();
  347. }
  348. }
  349. if ($command.equals("help")) {
  350. if ((one != false) && (two != true)) {
  351. Help();
  352. }
  353. }
  354. if ($command.equals("clear")) {
  355. if ((one != false) && (two != true)) {
  356. Thread.sleep(1000);
  357. System.out.println("[!] Warning! You are about to clear console, would you still like to proceed? [yes] [no]");
  358. String $yn = Scanner.next();
  359. if ($yn.equals("yes")) {
  360. if ((one != false) && (two != true)) {
  361. Thread.sleep(4000);
  362. System.out.println("[BETA] Console has been Cleared");
  363. Thread.sleep(1000);
  364. Start2();
  365. }
  366. }
  367. if ($yn.equals("no")) {
  368. if ((one != false) && (two != true)) {
  369. Start2();
  370. }
  371. }
  372. }
  373. } // end of this if statement
  374. if ($command.equals("version")) {
  375. if ((one != false) && (two != true)) {
  376. Thread.sleep(1000);
  377. System.out.println("[✓] Loading Version...");
  378. Thread.sleep(4000);
  379. System.out.println("Memphis DoS 1");
  380. Thread.sleep(4000);
  381. Start2();
  382. }
  383. }
  384. } catch (InterruptedException ex) {
  385. System.out.println(" ");
  386. }
  387. }
  388. }
  389. } // end of Start2 Void
  390. public static void Quit() {
  391. int i = 1;
  392. boolean one = true;
  393. boolean two = false;
  394. if (i == 1) {
  395. if ((one != false) && (two != true)) {
  396. try {
  397. Thread.sleep(4000);
  398. System.out.println("[✓] Shutting down...");
  399. Thread.sleep(4000);
  400. } catch (InterruptedException ex) {
  401. System.out.println(" ");
  402. }
  403. }
  404. }
  405. } // end of Quit Void
  406. public static void Calculator() {
  407. Scanner Scanner;
  408. Scanner = new Scanner(System.in);
  409. boolean one = true;
  410. boolean two = false;
  411. int i = 1;
  412. if (i == 1) {
  413. if ((one != false) && (two != true)) {
  414. try {
  415. Thread.sleep(1000);
  416. System.out.println("[✓] Loading Assets...");
  417. Thread.sleep(4000);
  418. System.out.println("[CALC] Please Enter your First Number");
  419. int $1n = Scanner.nextInt();
  420. Thread.sleep(1000);
  421. System.out.println("[CALC] Please Enter your Second Number");
  422. int $2n = Scanner.nextInt();
  423. Thread.sleep(1000);
  424. System.out.println("[CALC] Please Choose the Form of Operation Excluding the Brackets. [+] [-] [*] [/]");
  425. String $op = Scanner.next();
  426. if ($op.equals("+")) {
  427. if ((one != false) && (two != true)) {
  428. Thread.sleep(1000);
  429. System.out.println("[CALC] Calculating...");
  430. Thread.sleep(2500);
  431. System.out.print("[CALC] ");
  432. System.out.println($1n + $2n);
  433. Thread.sleep(4000);
  434. System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
  435. String $yn = Scanner.next();
  436. if ($yn.equals("yes")) {
  437. if ((one != false) && (two != true)) {
  438. Calculator();
  439. }
  440. }
  441. if ($yn.equals("no")) {
  442. if ((one != false) && (two != true)) {
  443. Start2();
  444. }
  445. }
  446. }
  447. }
  448. if ($op.equals("-")) {
  449. if ((one != false) && (two != true)) {
  450. Thread.sleep(1000);
  451. System.out.println("[CALC] Calculating...");
  452. Thread.sleep(2500);
  453. System.out.print("[CALC] ");
  454. System.out.println($1n - $2n);
  455. Thread.sleep(4000);
  456. System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
  457. String $yn2 = Scanner.next();
  458. if ($yn2.equals("yes")) {
  459. if ((one != false) && (two != true)) {
  460. Calculator();
  461. }
  462. }
  463. if ($yn2.equals("no")) {
  464. if ((one != false) && (two != true)) {
  465. Start2();
  466. }
  467. }
  468. }
  469. }
  470. if ($op.equals("*")) {
  471. if ((one != false) && (two != true)) {
  472. Thread.sleep(1000);
  473. System.out.println("[CALC] Calculating...");
  474. Thread.sleep(2500);
  475. System.out.print("[CALC] ");
  476. System.out.println($1n * $2n);
  477. Thread.sleep(4000);
  478. System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
  479. String $yn3 = Scanner.next();
  480. if ($yn3.equals("yes")) {
  481. if ((one != false) && (two != true)) {
  482. Calculator();
  483. }
  484. }
  485. if ($yn3.equals("no")) {
  486. if ((one != false) && (two != true)) {
  487. Start2();
  488. }
  489. }
  490. }
  491. }
  492. if ($op.equals("/")) {
  493. if ((one != false) && (two != true)) {
  494. Thread.sleep(1000);
  495. System.out.println("[CALC] Calculating...");
  496. Thread.sleep(2500);
  497. System.out.print("[CALC] ");
  498. System.out.println($1n / $2n);
  499. Thread.sleep(4000);
  500. System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
  501. String $yn4 = Scanner.next();
  502. if ($yn4.equals("yes")) {
  503. if ((one != false) && (two != true)) {
  504. Calculator();
  505. }
  506. }
  507. if ($yn4.equals("no")) {
  508. if ((one != false) && (two != true)) {
  509. Start2();
  510. }
  511. }
  512. }
  513. }
  514. } catch (InterruptedException ex) {
  515. System.out.println(" ");
  516. }
  517. }
  518. }
  519. } // end of Calculator Void
  520. public static void HeadTail() {
  521. Random Random;
  522. Scanner Scanner;
  523. Random rand = new Random();
  524. Scanner = new Scanner(System.in);
  525. boolean one = true;
  526. boolean two = false;
  527. String[] $table = {"Heads", "Tails"};
  528. int $x = rand.nextInt(2);
  529. int i = 1;
  530. if (i == 1) {
  531. if ((one != false) && (two != true)) {
  532. try {
  533. Thread.sleep(1000);
  534. System.out.println("[✓] Loading Assets...");
  535. Thread.sleep(4000);
  536. System.out.println("[HT] Heads or Tails? Want to Flip a Coin? [Yes] [No] Excluding Brackets");
  537. String $yn = Scanner.next();
  538. if ($yn.equals("yes")) {
  539. if ((one != false) && (two != true)) {
  540. Thread.sleep(1000);
  541. System.out.println("[HT] Flipping...");
  542. Thread.sleep(2500);
  543. System.out.println("[HT] " + $table[$x]);
  544. Thread.sleep(1000);
  545. System.out.println("[HT] Would you like to flip another coin? [yes] [no] Excluding Brackets");
  546. String $choice = Scanner.next();
  547. if ($choice.equals("yes")) {
  548. if ((one != false) && (two != true)) {
  549. HeadTail2();
  550. }
  551. }
  552. if ($choice.equals("no")) {
  553. if ((one != false) && (two != true)) {
  554. Thread.sleep(1000);
  555. System.out.println("[HT] Quitting...");
  556. Thread.sleep(4000);
  557. Start2();
  558. }
  559. }
  560. }
  561. }
  562. if ($yn.equals("no")) {
  563. if ((one != false) && (two != true)) {
  564. Thread.sleep(1000);
  565. System.out.println("[HT] Quitting...");
  566. Thread.sleep(4000);
  567. Start2();
  568. }
  569. }
  570. } catch (InterruptedException ex) {
  571. System.out.println(" ");
  572. }
  573. }
  574. }
  575. } // end of HeadTail Void
  576. public static void HeadTail2() {
  577. Scanner Scanner;
  578. Random Random;
  579. Scanner = new Scanner(System.in);
  580. Random rand = new Random();
  581. boolean one = true;
  582. boolean two = false;
  583. int i = 1;
  584. String[] $table = {"Heads", "Tails"};
  585. int $x = rand.nextInt(2);
  586. if (i == 1) {
  587. if ((one != false) && (two != true)) {
  588. try {
  589. System.out.println("[HT] Flipping...");
  590. Thread.sleep(2500);
  591. System.out.println("[HT] " + $table[$x]);
  592. Thread.sleep(1000);
  593. System.out.println("[HT] Would you like to flip another coin? [yes] [no] Excluding Brackets");
  594. String $choice = Scanner.next();
  595. if ($choice.equals("yes")) {
  596. if ((one != false) && (two != true)) {
  597. HeadTail2();
  598. }
  599. }
  600. if ($choice.equals("no")) {
  601. if ((one != false) && (two != true)) {
  602. Thread.sleep(1000);
  603. System.out.println("[HT] Quitting...");
  604. Thread.sleep(4000);
  605. Start2();
  606. }
  607. }
  608. } catch (InterruptedException ex) {
  609. System.out.println(" ");
  610. }
  611. }
  612. }
  613. } // end of HeadTail2 Void
  614. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement