Skip to content

Instantly share code, notes, and snippets.

@0x0dea

0x0dea/c0m0.c Secret

Created August 19, 2015 08:35
Show Gist options
  • Save 0x0dea/fe6363fccbc5e3664e06 to your computer and use it in GitHub Desktop.
Save 0x0dea/fe6363fccbc5e3664e06 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, char **argv, char **environ)
{
FILE *f;
**environ = '=';
f = fopen("/proc/self/environ", "r");
printf("%c\n", getc(f));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment