Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define SHELLSCRIPT "\
- #!/system/bin/sh \n\
- FILE_NAME=flag.txt \n\
- FILE_PATH=$(find ~ -name $FILE_NAME) \n\
- mv $FILE_PATH $(pwd) \n\
- echo \"$FILE_NAME has been moved to $(pwd)\" \n\
- "
- int main()
- {
- system(SHELLSCRIPT);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement