Madmouse

cutest shellcode tester of all time.

Sep 6th, 2014
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1. /// cutest shellcode tester of all time.
  2. ///     Written By: MadMouse
  3. /// Usage example:
  4. ///     ./shellcode $(echo -en "/xde/xad/xc0/xde")
  5. /// ----------------------------------------------------------------------------
  6. /// "THE BEER-WARE LICENSE" (Revision 43):
  7. /// <[email protected]> wrote this file. As long as you retain this notice you
  8. /// can do whatever you want with this stuff. If we meet some day, and you think
  9. /// this stuff is worth it, you can buy me a beer in return Aaron R. Yool
  10. /// ----------------------------------------------------------------------------
  11.  
  12. typedef void (*shellcode)(void);
  13. int main(int argc, char **argv)
  14. {
  15.     ((shellcode)argv[1])();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment