Create wintermux.py
Browse files- wintermux.py +45 -0
wintermux.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
#Do not copy or edit code read LICENSE First.
|
| 3 |
+
#This Script is coded by Termux Professor (Youtuber)
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import time
|
| 7 |
+
import sys
|
| 8 |
+
|
| 9 |
+
#banner
|
| 10 |
+
def clear():
|
| 11 |
+
os.system("clear")
|
| 12 |
+
|
| 13 |
+
clear()
|
| 14 |
+
print("\033[1;92m β¦ β¦β¬βββ \033[1;91mββ¦βββββ¬ββββ¬ββ¬ β¬ββ β¬")
|
| 15 |
+
print("\033[1;92m βββββββ \033[1;91mβ ββ€ ββ¬βββββ βββ΄β¬β")
|
| 16 |
+
print("\033[1;92m ββ©ββ΄βββ \033[1;91mβ© ββββ΄βββ΄ β΄ββββ΄ ββ")
|
| 17 |
+
print("\033[1;92m [+] YouTube: \033[1;91mTermuxProfessor")
|
| 18 |
+
print("\033[1;92m [+] Github: \033[1;91mtermuxprofessor\033[1;97m")
|
| 19 |
+
print("")
|
| 20 |
+
|
| 21 |
+
#isocheaker
|
| 22 |
+
input_val = input("Does WIN10TP.iso File In Your Download Folder?(Yes/No) : ")
|
| 23 |
+
if input_val in ['Yes', 'yes', 'y', 'Y']:
|
| 24 |
+
clear()
|
| 25 |
+
os.chdir(os.path.expanduser("~"))
|
| 26 |
+
os.system("termux-wake-lock")
|
| 27 |
+
os.system("pkg install x11-repo -y")
|
| 28 |
+
os.system("pkg install qemu-system-x86-64 -y")
|
| 29 |
+
clear()
|
| 30 |
+
print("\033[1;92m1] Allow Storage Permission To Termux.")
|
| 31 |
+
time.sleep(3)
|
| 32 |
+
os.system("termux-setup-storage")
|
| 33 |
+
clear()
|
| 34 |
+
ram = input("Select RAM size in MB (Ex: 2048) : ")
|
| 35 |
+
print("[+] Server Is Running....")
|
| 36 |
+
print("\033[1;91mYour Server IP is: localhost:1\033[0m")
|
| 37 |
+
os.system(f"qemu-system-x86_64 -m {ram} -cdrom storage/downloads/WIN10TP.iso -vnc localhost:1")
|
| 38 |
+
|
| 39 |
+
elif input_val in ['No', 'no', 'n', 'N']:
|
| 40 |
+
print("\033[1;91m1. First Download WIN10TP.iso file from this Link: \033[1;92mhttp://bit.ly/wintermux") #pastedownload link here
|
| 41 |
+
print("2. Put WIN10TP.iso file into download folder.")
|
| 42 |
+
sys.exit(2)
|
| 43 |
+
else:
|
| 44 |
+
print("\033[1;91mInvalid Option")
|
| 45 |
+
sys.exit(1)
|