Skip to main content
Cmd2
  1. Ctfs/
  2. Pwnable.Kr/

Cmd2

1 min· ·
sigchill
Author
sigchill
Welcome to my study blog. Here I document my CTF writeups and security research.
Table of Contents

Cmd2 challenge
#

This challenge is very similar to cmd1, this time all PATH variables are erased and there is a similar blacklist the key to solving this challenge is to bypass the “path poisoning” entirely by using the “command -p” key which default to the regular PATH

So in order to solve it ; “./cmd2 “command -p cat fl?g”” gets us the flag

Related