merge detect trem and creat term obj

This commit is contained in:
jeremy
2020-04-25 11:31:33 +02:00
parent ed83ddfffe
commit 314a655520
+11 -5
View File
@@ -1,16 +1,22 @@
#!/usr/bin/env python3
import os
import time
from term_utils import TermUtils
from term_utils import Term
from detect_term import DetectTerm
from command_helper import CommandHelper
print(DetectTerm.find_terminal())
print(Term.find_terminal())
time.sleep(1)
TermUtils.print("YOU HAVE BEEN HACKED.\n")
Term.print_all("YOU HAVE BEEN HACKED.\n")
term1 = Term.create_tty()
print(term1)
term2 = Term.create_tty()
print(term2)
term3 = Term.create_tty()
print(term3)
while True:
if CommandHelper.run("killall htop") == 0 or CommandHelper.run("killall top") == 0:
TermUtils.print("You tough that this will be as easy as this?\n")
Term.print("You tough that this will be as easy as this?\n")
time.sleep(1)