Advertisement
How_To_Python

Command Prompt Look A like/real

Jun 12th, 2017
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.52 KB | None | 0 0
  1. import subprocess
  2. import time
  3. import os
  4. import socket
  5. import getpass
  6. import sys
  7. import io
  8. import signal
  9. import builtins
  10. import warnings
  11. import errno
  12. import colorsys
  13. from time import monotonic as _time
  14.  
  15. def start():
  16.     print("Microsoft Windows [Version 10.0.15063]")
  17.     print("(c) 2017 Microsoft Corporation. All rights reserved.")
  18.     name()
  19. def name():
  20.     user=getpass.getuser()
  21.     print('\nC:\ Users\ ',user,'>')
  22.     cmd=input()
  23.     cmd=cmd.lower()
  24.     print
  25.     if cmd == "help":
  26.         time.sleep(0.5)
  27.         print("1.Imported Commands")
  28.         time.sleep(0.5)
  29.         print("2.CMD Commands")
  30.         time.sleep(0.5)
  31.         print("3.Why not working?")
  32.         h1=int(input())
  33.         if h1 == 1:
  34.             print("My Commands")
  35.             time.sleep(0.5)
  36.             print("----------------------")
  37.             time.sleep(0.5)
  38.             print("help")
  39.             time.sleep(0.5)
  40.             print("ipconfig")
  41.             time.sleep(0.5)
  42.             print("driverquery")
  43.             time.sleep(0.5)
  44.             print("getmac")
  45.             time.sleep(0.5)
  46.             print("netstat")
  47.             time.sleep(0.5)
  48.             print("powercfg")
  49.             time.sleep(0.5)
  50.             print("tasklist")
  51.             time.sleep(0.5)
  52.             print("$")
  53.             time.sleep(0.5)
  54.             print("----------------------")
  55.             name()
  56.         if h1 == 2:
  57.             subprocess.call(["help"])
  58.             time.sleep(0.5)
  59.             name()
  60.         if h1 == 3:
  61.             time.sleep(0.5)
  62.             print("1. Make sure you open it directly (double click the file)")
  63.             time.sleep(0.5)
  64.             print("2. If accessing dev mode do 'cd c:\' to access whole drive")
  65.             time.sleep(0.5)
  66.             name()
  67.     if cmd == "ipconfig":
  68.         ipconfig()
  69.  
  70.     if cmd == "driverquery":
  71.         drive()
  72.        
  73.     if cmd == "getmac":
  74.         getmac()
  75.        
  76.     if cmd == "netstat":
  77.         netstat()
  78.        
  79.     if cmd == "powercfg":
  80.         powercfg()
  81.        
  82.     if cmd == "tasklist":
  83.         tasklist()
  84.     if cmd == "shutdown":
  85.         taskkill()
  86.     else:
  87.         for i in range(len(cmd)):
  88.             if cmd[i] == "$":
  89.                presence=True
  90.                print("Loading Developer Mode")
  91.                time.sleep(5)
  92.                if user == "Dan-L" or user == "lee09114":
  93.                    print("Success")
  94.                    time.sleep(3)
  95.                    print("Authenticating User...")
  96.                    time.sleep(5)
  97.                    print("Accepted!")
  98.                    time.sleep(3)
  99.                    print("Decrypting Information")
  100.                    time.sleep(5)
  101.                    print("Developer Mode Activated! \n---------------------------------------------------------------------------------------------------")
  102.                    time.sleep(1)
  103.                    subprocess.call(["cmd"])
  104.                else:
  105.                    print("Error While Loading Assets...")
  106.                    time.sleep(3)
  107.                    print("Retrying...")
  108.                    print("Error While Authenticating User...")
  109.                    time.sleep(3)
  110.                    print("Trying again.....")
  111.                    time.sleep(10)
  112.                    print("Please enter valid credentials to gain access")
  113.                    time.sleep(3)
  114.                    us=input("Username: ")
  115.                    us=us.lower()
  116.                    pas=input("Password: ")
  117.                    pas=pas.lower()
  118.                    time.sleep(3)
  119.                    if us == "lee09114" and pas == "trains":
  120.                        print("Validating Information")
  121.                        time.sleep(10)
  122.                        print("Accepted!")
  123.                        time.sleep(3)
  124.                        print("Decrypting Information")
  125.                        time.sleep(5)
  126.                        print("Developer Mode Activated! \n---------------------------------------------------------------------------------------------------")
  127.                        time.sleep(1)
  128.                        subprocess.call(["cmd"])
  129.                    if us == "henry" and pas == "qwerty":
  130.                        print("Validating Information")
  131.                        time.sleep(10)
  132.                        print("Accepted!")
  133.                        time.sleep(3)
  134.                        print("Decrypting Information")
  135.                        time.sleep(5)
  136.                        print("Developer Mode Activated! \n---------------------------------------------------------------------------------------------------")
  137.                        time.sleep(1)
  138.                        subprocess.call(["cmd"])
  139.                    else:
  140.                        print("Validating Information")
  141.                        time.sleep(10)
  142.                        print("ERROR!")
  143.                        time.sleep(3)
  144.                        print("Missing system32 file")
  145.                        time.sleep(3)
  146.                        print("Restarting Windows...")
  147.                        time.sleep(3)
  148.                        subprocess.call(["shutdown", "/r"])
  149.             else:
  150.                 name()
  151. def ipconfig():
  152.     subprocess.call(["ipconfig", "/all"])
  153.     name()
  154. def drive():
  155.     subprocess.call(["driverquery"])
  156.     name()
  157. def getmac():
  158.     subprocess.call(["getmac"])
  159.     name()
  160. def netstat():
  161.     subprocess.call(["netstat"])
  162.     name()
  163. def powercfg():
  164.     subprocess.call(["powercfg", "/l"])
  165.     name()
  166. def tasklist():
  167.     subprocess.call(["tasklist"])
  168.     name()
  169. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement