Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.zoovy.dos;
- /**
- * @Author Zoovy
- **/
- import java.util.Scanner;
- import java.util.Random;
- public class Main {
- @SuppressWarnings("resource")
- public static void main(String args[]) {
- Scanner Scanner;
- Random Random;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- int i = 1;
- int c = 0;
- String[] $table = {"1", "2", "3"};
- int $x = rand.nextInt(3);
- boolean one = true;
- boolean two = false;
- if ((one != false) && (two != true)) {
- if (i == 1) {
- try {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[✓] Please Enter your Product Key.");
- String $PK = Scanner.next();
- if ($PK.equals("78772777")) {
- if ((one != false) && (two != true)) {
- System.out.println("[?] Checking your Product Key...");
- Thread.sleep(4000);
- Start();
- }
- } else {
- System.out.println("[?] Checking your Product Key...");
- Thread.sleep(4000);
- System.out.println("[✗] The Product Key you Entered is Invalid");
- Quit();
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- }
- public static void Start() {
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- int i = 1;
- if (i == 1) {
- try {
- System.out.println("[✓] The Product Key you Entered is Valid");
- Thread.sleep(1000);
- System.out.println("[?] Was this not your Product key? if Not, Please type return, if this is your Product key, Please Type continue");
- String $return = Scanner.next();
- if ($return.equals("return")) {
- if ((one != false) && (two != true)) {
- Return();
- }
- } else {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[?] Credentials Detected...");
- Thread.sleep(1000);
- System.out.println("[✓] Please Enter Your Username");
- }
- String $user = Scanner.next();
- if ($user.equals("admin")) {
- if ((one != false) && (two != true)) {
- System.out.println("[?] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println("[✓] Please Enter Your Password");
- String $pass = Scanner.next();
- if ($pass.equals("admin")) {
- if ((one != false) && (two != true)) {
- System.out.println("[?] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println("[✓] Welcome back " + $user); // MAIN PAGE
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.print("Z");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("v");
- Thread.sleep(300);
- System.out.print("y");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("D");
- Thread.sleep(300);
- System.out.print("O");
- Thread.sleep(300);
- System.out.print("S");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("W");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.print("l");
- Thread.sleep(300);
- System.out.print("c");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("m");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.println("!");
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[?] Need Some Help? type help");
- String $command = Scanner.next();
- if ($command.equals("HT")) {
- if ((one != false) && (two != true)) {
- HeadTail();
- }
- }
- if ($command.equals("calculator")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($command.equals("about")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("About Memphis DoS:");
- Thread.sleep(1000);
- 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.");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("version")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Version...");
- Thread.sleep(4000);
- System.out.println("Memphis DoS 1");
- Thread.sleep(4000);
- Start2();
- }
- }
- if ($command.equals("help")) {
- if ((one != false) && (two != true)) {
- Help();
- }
- }
- if ($command.equals("clear")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[!] Warning! You are about to clear Console, would you still like to proceed? [yes] [no]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(4000);
- System.out.println("[BETA] Console has been Cleared");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- } // end of this if statement
- }
- }
- } else {
- System.out.println("[?] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println("[✗] Invalid Password!");
- Quit();
- }
- }
- } else {
- System.out.println("[✓] Checking Credentials...");
- Thread.sleep(4000);
- System.out.println("[✗] Invalid Username!");
- Quit();
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- } // end of Start Void
- public static void Return() {
- Scanner Scanner;
- Random Random;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- int i = 1;
- int c = 0;
- String[] $table = {"1", "2", "3"};
- int $x = rand.nextInt(3);
- boolean one = true;
- boolean two = false;
- if ((one != false) && (two != true)) {
- if (i == 1) {
- try {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[✓] Please Enter your Product Key.");
- String $PK = Scanner.next();
- if ($PK.equals("78772777")) {
- if ((one != false) && (two != true)) {
- System.out.println("[?] Checking your Product Key...");
- Thread.sleep(4000);
- Start();
- }
- } else {
- System.out.println("[?] Checking your Product Key...");
- Thread.sleep(4000);
- System.out.println("[✗] The Product Key you Entered is Invalid");
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Return Void
- public static void Help() {
- boolean one = true;
- boolean two = false;
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[✓] Welcome to the Help Menu. To Return, Please Type return");
- Thread.sleep(2000);
- System.out.println("[✓] Showing Commands...");
- Thread.sleep(1000);
- System.out.println("- clear >> Clears the Console leaving the console blank");
- Thread.sleep(200);
- System.out.println("- version >> Shows the Current Version of This DoS Operating System");
- Thread.sleep(200);
- System.out.println("- about >> About Memphis DoS");
- Thread.sleep(200);
- System.out.println("- calculator >> Basic Calculator with a Friendly Interface");
- Thread.sleep(200);
- System.out.println("- HT >> Heads or Tails, Makes it Easy to Resolve Arguements");
- String $return = Scanner.next();
- if ($return.equals("return")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Help Void
- public static void Start2() {
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.print("Z");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("v");
- Thread.sleep(300);
- System.out.print("y");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("D");
- Thread.sleep(300);
- System.out.print("O");
- Thread.sleep(300);
- System.out.print("S");
- Thread.sleep(300);
- System.out.print(" ");
- Thread.sleep(300);
- System.out.print("W");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.print("l");
- Thread.sleep(300);
- System.out.print("c");
- Thread.sleep(300);
- System.out.print("o");
- Thread.sleep(300);
- System.out.print("m");
- Thread.sleep(300);
- System.out.print("e");
- Thread.sleep(300);
- System.out.println("!");
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[?] Need Some Help? type help");
- String $command = Scanner.next();
- if ($command.equals("HT")) {
- if ((one != false) && (two != true)) {
- HeadTail();
- }
- }
- if ($command.equals("calculator")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($command.equals("about")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("About Memphis DoS:");
- Thread.sleep(1000);
- 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.");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($command.equals("help")) {
- if ((one != false) && (two != true)) {
- Help();
- }
- }
- if ($command.equals("clear")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[!] Warning! You are about to clear console, would you still like to proceed? [yes] [no]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(4000);
- System.out.println("[BETA] Console has been Cleared");
- Thread.sleep(1000);
- Start2();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- } // end of this if statement
- if ($command.equals("version")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Version...");
- Thread.sleep(4000);
- System.out.println("Memphis DoS 1");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Start2 Void
- public static void Quit() {
- int i = 1;
- boolean one = true;
- boolean two = false;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(4000);
- System.out.println("[✓] Shutting down...");
- Thread.sleep(4000);
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Quit Void
- public static void Calculator() {
- Scanner Scanner;
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[CALC] Please Enter your First Number");
- int $1n = Scanner.nextInt();
- Thread.sleep(1000);
- System.out.println("[CALC] Please Enter your Second Number");
- int $2n = Scanner.nextInt();
- Thread.sleep(1000);
- System.out.println("[CALC] Please Choose the Form of Operation Excluding the Brackets. [+] [-] [*] [/]");
- String $op = Scanner.next();
- if ($op.equals("+")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[CALC] Calculating...");
- Thread.sleep(2500);
- System.out.print("[CALC] ");
- System.out.println($1n + $2n);
- Thread.sleep(4000);
- System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("-")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[CALC] Calculating...");
- Thread.sleep(2500);
- System.out.print("[CALC] ");
- System.out.println($1n - $2n);
- Thread.sleep(4000);
- System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
- String $yn2 = Scanner.next();
- if ($yn2.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($yn2.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("*")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[CALC] Calculating...");
- Thread.sleep(2500);
- System.out.print("[CALC] ");
- System.out.println($1n * $2n);
- Thread.sleep(4000);
- System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
- String $yn3 = Scanner.next();
- if ($yn3.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($yn3.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- if ($op.equals("/")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[CALC] Calculating...");
- Thread.sleep(2500);
- System.out.print("[CALC] ");
- System.out.println($1n / $2n);
- Thread.sleep(4000);
- System.out.println("[CALC] Would you like to make another Calculation? [yes] [no]");
- String $yn4 = Scanner.next();
- if ($yn4.equals("yes")) {
- if ((one != false) && (two != true)) {
- Calculator();
- }
- }
- if ($yn4.equals("no")) {
- if ((one != false) && (two != true)) {
- Start2();
- }
- }
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of Calculator Void
- public static void HeadTail() {
- Random Random;
- Scanner Scanner;
- Random rand = new Random();
- Scanner = new Scanner(System.in);
- boolean one = true;
- boolean two = false;
- String[] $table = {"Heads", "Tails"};
- int $x = rand.nextInt(2);
- int i = 1;
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- Thread.sleep(1000);
- System.out.println("[✓] Loading Assets...");
- Thread.sleep(4000);
- System.out.println("[HT] Heads or Tails? Want to Flip a Coin? [Yes] [No] Excluding Brackets");
- String $yn = Scanner.next();
- if ($yn.equals("yes")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[HT] Flipping...");
- Thread.sleep(2500);
- System.out.println("[HT] " + $table[$x]);
- Thread.sleep(1000);
- System.out.println("[HT] Would you like to flip another coin? [yes] [no] Excluding Brackets");
- String $choice = Scanner.next();
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- HeadTail2();
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[HT] Quitting...");
- Thread.sleep(4000);
- Start2();
- }
- }
- }
- }
- if ($yn.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[HT] Quitting...");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of HeadTail Void
- public static void HeadTail2() {
- Scanner Scanner;
- Random Random;
- Scanner = new Scanner(System.in);
- Random rand = new Random();
- boolean one = true;
- boolean two = false;
- int i = 1;
- String[] $table = {"Heads", "Tails"};
- int $x = rand.nextInt(2);
- if (i == 1) {
- if ((one != false) && (two != true)) {
- try {
- System.out.println("[HT] Flipping...");
- Thread.sleep(2500);
- System.out.println("[HT] " + $table[$x]);
- Thread.sleep(1000);
- System.out.println("[HT] Would you like to flip another coin? [yes] [no] Excluding Brackets");
- String $choice = Scanner.next();
- if ($choice.equals("yes")) {
- if ((one != false) && (two != true)) {
- HeadTail2();
- }
- }
- if ($choice.equals("no")) {
- if ((one != false) && (two != true)) {
- Thread.sleep(1000);
- System.out.println("[HT] Quitting...");
- Thread.sleep(4000);
- Start2();
- }
- }
- } catch (InterruptedException ex) {
- System.out.println(" ");
- }
- }
- }
- } // end of HeadTail2 Void
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement