Advertisement
infodox

runsc.c

Jan 17th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. /* Quick and dirty "shellcode testing loop */
  2. /* Just insert shellcode, compile, and boom! */
  3. /* Should run on damn near anything... */
  4. /* Dont have a windows box ATM to test on, */
  5. /* but it works in linux */
  6.  
  7. char shellcode[] = "shellcode goes here"
  8.            "and here";
  9.  
  10. int main()
  11. {
  12.  
  13.   int *ret;
  14.   ret = (int *)&ret + 2;
  15.   (*ret) = (int)shellcode;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement