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
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int main(int argc, char *argv[])
5 {
6 char *nix = getenv("NIX");
7 printf("%p\n", nix);
8 return 0;
9 }



Leave a Comment