Helpless
Description
I accidentally set my system shell to the Python help()
function! Help!!
The flag is at /home/ductf/flag.txt
.
The password for the ductf
user is ductf
.
Author: hashkitten
ssh ductf@2023.ductf.dev -p30022
Solution
Python's help is using less
command under the hood to view large files with pager.
GTFOBins -> https://gtfobins.github.io/gtfobins/less/
less /etc/profile :e file_to_read
Connect to ssh
Type something like
str
(or other method/class)Type
:e /home/ductf/flag.txt
DUCTF{sometimes_less_is_more}
Flag: DUCTF{sometimes_less_is_more}
Last updated