服务器弱口令修改,中国移动某服务器多个服务弱口令可Getshell

中国移动某个服务器:

221.176.36.5

先来看下开放端口吧:

imgpxy.php?url=gpj.027390053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

1.经过测试,80、443端口:可列目录

imgpxy.php?url=gpj.712601053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

2.看8083端口:弱口令 admin/123 (默认用户名密码)

OneCMDB Desktop,完全不晓得什么东西。。不过貌似很高大上的样子

imgpxy.php?url=gpj.820911053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

imgpxy.php?url=gpj.957721053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

imgpxy.php?url=gpj.912631053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

对这东西不熟悉,,就没敢动

3.看8080端口,很熟悉嘛。。tomcat,可惜刚开始一直没猜出用户名密码(其实后面getshell之后,翻出tomcat的配置文件,发现其实也算是弱口令 manager/manager@ 密码就多加了个@。。。。)

imgpxy.php?url=gpj.869841053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

可以看到已经有好多前人进来的痕迹了。。。某个前辈的shell

imgpxy.php?url=gpj.961741053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

4.看4848端口,Glassfish让我看到了希望

imgpxy.php?url=gpj.204651053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

又是弱口令 admin/admin

关于Glassfish的Getshell,乌云知识库早就有方法了http://drops.wooyun.org/tips/604,直接war马上去

imgpxy.php?url=gpj.140961053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

imgpxy.php?url=gpj.497271053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

漏洞证明:

故事还没讲完。。。

上面提到猜tomcat的弱口令没猜出来,去tomcat的配置文件看看

imgpxy.php?url=gpj.700171053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

在GlassFish中发现了另一个高大上的东西“UniEAP”,不知道好不好吃,各种看不懂啊,未做任何访问限制,直接对外

imgpxy.php?url=gpj.851981053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

继续翻啊翻,终于翻到了mysql数据库密码,又是弱口令。。。

imgpxy.php?url=gpj.373791053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

可惜的是直接菜刀连Mysql,报找不到com.mysql.jdbc.Driver,各种尝试无解。。上传个mysql-connection-XXX.jar,又没敢重启tomcat。。

经大牛指点,可以直接在非交互式shell下使用mysql console!!!

echo "show databases;" | mysql -u root -p123456

imgpxy.php?url=gpj.080102053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

echo "use nj_bcec2.0;select * from user_table limit 0,1;" | mysql -u root -p123456

imgpxy.php?url=gpj.657302053051504102%2F5041_htnom%2Fserutcip%2Fmoc.gidkcah.1cip%2F%2F%3Aptth

就到这吧。。。修复方案:

修改弱口令

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值