Advertisement
etk34b

findFlag_CPP

Feb 7th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. #define SHELLSCRIPT "\
  4. #!/system/bin/sh \n\
  5. FILE_NAME=flag.txt \n\
  6. FILE_PATH=$(find ~ -name $FILE_NAME) \n\
  7. mv $FILE_PATH $(pwd) \n\
  8. echo \"$FILE_NAME has been moved to $(pwd)\" \n\
  9. "
  10.  
  11. int main()
  12. {
  13.     system(SHELLSCRIPT);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement