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