Writing Shellcode


SUBMITTED BY: Guest

DATE: June 12, 2014, 11:57 a.m.

FORMAT: Text only

SIZE: 792 Bytes

HITS: 552862

  1. Shellcode is machine code that when executed spawns a shell, sometimes.
  2. Shellcode cannot have any null's in it because it is (usually) treated as a C
  3. string and a null will stop the reading of the string, as it is the string
  4. delimiter. Not all "shellcode" spawns a shell, this has become a more generic
  5. name for a bit of position independant machine readable code that can be directly
  6. executed by the cpu. Shellcode must always be position independant - you cannot
  7. access any values through static addresses, as these address will not be static
  8. in the program that is executing your shellcode - environment variables are the
  9. execption to this rule. Remember to always use the smallest part of a register
  10. possible to avoid null's, and xor is your friend.

comments powered by Disqus