Last active
January 28, 2018 08:18
-
-
Save salrashid123/b11fc3958289472b054defed311d13a3 to your computer and use it in GitHub Desktop.
exercc.cc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const char bin[] = "./bin/mainapp"; | |
char *envp[] = | |
{ | |
"LD_LIBRARY_PATH=/user_code/lib:$LD_LIBRARY_PATH", | |
NULL | |
}; | |
execve(bin, const_cast<char* const*>(&args[0]), envp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment