[pwnable.kr] Toddler's Bottle - cmd2 문제
2019. 11. 28.
문제 https://pwnable.kr/play.php https://pwnable.kr/play.php pwnable.kr 문제 풀이 접속 ssh cmd2@pwnable.kr -p2222 코드 확인 #include #include int filter(char* cmd){ int r=0; r += strstr(cmd, "=")!=0; r += strstr(cmd, "PATH")!=0; r += strstr(cmd, "export")!=0; r += strstr(cmd, "/")!=0; r += strstr(cmd, "`")!=0; r += strstr(cmd, "flag")!=0; return r; } extern char** environ; void delete_env(){ char** p; for(p..