Shellcode validation via C pointer

C snippet to test the shellcode replace your shellcode with your custom payload  

Get Environment Variable memory Address

some time u put the shellcode inside  the environment and u will need the address of it to build ur payload here is a simple C code to get the address