2022-04-28 23:27:22 +00:00
|
|
|
|
# Pickle Rick
|
2022-04-28 16:01:33 +00:00
|
|
|
|
|
2022-05-01 13:25:53 +00:00
|
|
|
|
## Pickle Rick
|
|
|
|
|
|
2022-04-28 16:01:33 +00:00
|
|
|
|
<details>
|
|
|
|
|
|
2023-04-25 18:35:28 +00:00
|
|
|
|
<summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks Cloud ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary>
|
2022-04-28 16:01:33 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
* 你在一个**网络安全公司**工作吗?想要在HackTricks中看到你的**公司广告**吗?或者你想要**获取PEASS的最新版本或下载HackTricks的PDF**吗?请查看[**订阅计划**](https://github.com/sponsors/carlospolop)!
|
|
|
|
|
* 发现我们的独家[**NFTs**](https://opensea.io/collection/the-peass-family)收藏品[**The PEASS Family**](https://opensea.io/collection/the-peass-family)
|
|
|
|
|
* 获取[**官方PEASS和HackTricks周边产品**](https://peass.creator-spring.com)
|
|
|
|
|
* **加入**[**💬**](https://emojipedia.org/speech-balloon/) [**Discord群组**](https://discord.gg/hRep4RUj7f)或[**电报群组**](https://t.me/peass)或**关注**我在**Twitter**上的[**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks\_live)**。**
|
|
|
|
|
* **通过向**[**hacktricks repo**](https://github.com/carlospolop/hacktricks) **和**[**hacktricks-cloud repo**](https://github.com/carlospolop/hacktricks-cloud) **提交PR来分享你的黑客技巧。**
|
2022-04-28 16:01:33 +00:00
|
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](../../.gitbook/assets/picklerick.gif)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
这台机器被归类为简单,而且很容易。
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
## 枚举
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
我开始使用我的工具[**Legion**](https://github.com/carlospolop/legion)对机器进行枚举:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-06-06 22:57:49 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (79) (2).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
如你所见,有2个端口是开放的:80(**HTTP**)和22(**SSH**)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
所以,我启动了Legion来枚举HTTP服务:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (234).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
请注意,在图像中你可以看到`robots.txt`包含字符串`Wubbalubbadubdub`
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
几秒钟后,我查看了`disearch`已经发现的内容:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (235).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (236).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
正如你在最后一张图片中看到的,发现了一个**登录**页面。
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
检查根页面的源代码,发现了一个用户名:`R1ckRul3s`
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-09-30 10:43:59 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (237) (1).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
因此,你可以使用凭据`R1ckRul3s:Wubbalubbadubdub`登录登录页面
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
## 用户
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
使用这些凭据,你将进入一个可以执行命令的门户:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (241).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
一些命令,如cat,是不允许的,但你可以使用grep来读取第一个配料(flag):
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (242).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
然后我使用了:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-09-30 10:43:59 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (243) (1).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
来获取一个反向shell:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-09-30 10:43:59 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (239) (1).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
**第二个配料**可以在`/home/rick`中找到
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (240).png>)
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 13:25:53 +00:00
|
|
|
|
## Root
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
用户**www-data可以以sudo的方式执行任何命令**:
|
2020-07-15 15:43:14 +00:00
|
|
|
|
|
2022-05-01 16:17:23 +00:00
|
|
|
|
![](<../../.gitbook/assets/image (238).png>)
|
2022-04-28 16:01:33 +00:00
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
|
2023-04-25 18:35:28 +00:00
|
|
|
|
<summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks Cloud ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary>
|
2022-04-28 16:01:33 +00:00
|
|
|
|
|
2023-08-03 19:12:22 +00:00
|
|
|
|
* 你在一个**网络安全公司**工作吗?想要在HackTricks中看到你的**公司广告**吗?或者你想要**获取PEASS的最新版本或下载HackTricks的PDF**吗?请查看[**订阅计划**](https://github.com/sponsors/carlospolop)!
|
|
|
|
|
* 发现我们的独家[**NFTs**](https://opensea.io/collection/the-peass-family)收藏品[**The PEASS Family**](https://opensea.io/collection/the-peass-family)
|
|
|
|
|
* 获取[**官方PEASS和HackTricks周边产品**](https://peass.creator-spring.com)
|
|
|
|
|
* **加入**[**💬**](https://emojipedia.org/speech-balloon/) [**Discord群组**](https://discord.gg/hRep4RUj7f)或[**电报群组**](https://t.me/peass)或**关注**我在**Twitter**上的[**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks\_live)**。**
|
|
|
|
|
* **通过向**[**hacktricks repo**](https://github.com/carlospolop/hacktricks) **和**[**hacktricks-cloud repo**](https://github.com/carlospolop/hacktricks-cloud) **提交PR来分享你的黑客技巧。**
|
2022-04-28 16:01:33 +00:00
|
|
|
|
|
|
|
|
|
</details>
|