[pico-CTF]Operation Orchid
原題地址:https://play.picoctf.org/practice/challenge/285
原解答網(wǎng)頁:https://ctftime.org/writeup/33194 (需要科學上網(wǎng))
原標題:Operation Orchid
原作者:by?Mateja?/?1753c
思路:
1、使用kpartx將img文件掛在至真實磁盤中
2、查看.ash_history中歷史命令
3、使用openssl解密
關(guān)鍵指令:
[user@host Operation Orchid]$ sudo kpartx -a -v disk.flag.img
[user@host Operation Orchid]$ sudo -s
root@host:/home/user/Hacking/ctf/PicoCTF2022/Operation Orchid# cd mnt/root/
root@host:/home/user/Hacking/ctf/PicoCTF2022/Operation Orchid/mnt/root# ls -la
root@host:/home/user/Hacking/ctf/PicoCTF2022/Operation Orchid/mnt/root# cat .ash_history
root@host:/home/user/Hacking/ctf/PicoCTF2022/Operation Orchid/mnt/root# openssl aes256 -d --in flag.txt.enc -k unbreakablepassword1234567
有時候一個人玩linux挺絕望的,是真他喵難用阿,以及b站專欄這弱智編輯功能太逆天了。
標簽: