Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9377

In computer security, a shellcode is a small piece of code used as the payload in the exploitation of a software vulnerability. It is called "shellcode" because it typically starts a command shell from which the attacker can control the compromised machine, but any piece of code that performs a similar task can be called shellcode.

8 votes
Accepted

NX bit causes segfault on NOP slide?

You should be able to see your nop sled, shellcode, and return address repeatedly afterwards. … Another note that just came to mind; the return address has to be aligned properly, usually this means putting 1-3 nops after your shellcode to shove it into place. …
lynks's user avatar
  • 10.7k
19 votes

Is it possible to write shellcode in C++?

It is perfectly valid to write shellcode in any language that gets compiled down to machine code instructions. … However, it is almost never the case that directly compiled code (even from just C) is a valid, injectable shellcode. …
lynks's user avatar
  • 10.7k