Created
September 19, 2013 16:10
-
-
Save 5kg/6625769 to your computer and use it in GitHub Desktop.
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
| #include <dyninst/BPatch.h> | |
| int main (int argc, const char* argv[]) { | |
| BPatch bpatch; | |
| BPatch_process *proc = bpatch.processAttach(argv[1], atoi(argv[2])); | |
| proc->detach(true); | |
| return 0; | |
| } |
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
| #!/bin/bash | |
| g++ mutator.cpp -ldyninstAPI -o mutator | |
| gcc test.c -o mutatee | |
| ./mutatee & | |
| pid=$! | |
| ./mutator mutatee $pid |
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
| int main() | |
| { | |
| sleep(1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment