You've already forked Curso-lenguaje-python
Update forwardshell script
This commit is contained in:
29
python-ofensivo/15_hacking/12_fs/script/main.py
Normal file
29
python-ofensivo/15_hacking/12_fs/script/main.py
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Fichero principal de la aplicación.
|
||||
"""
|
||||
|
||||
import signal
|
||||
import sys
|
||||
|
||||
from forwardshell import ForwardShell
|
||||
from termcolor import colored
|
||||
|
||||
|
||||
def def_handler(sig, frame) -> None:
|
||||
|
||||
print(colored("\n[!] Exiting...", "blue"))
|
||||
|
||||
my_forward_shell.remove_data()
|
||||
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
signal.signal(signal.SIGINT, def_handler)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
my_forward_shell = ForwardShell()
|
||||
my_forward_shell.run()
|
||||
Reference in New Issue
Block a user