diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-01-22 00:38:45 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-01-22 00:38:45 +0100 |
commit | 775561261732f7c87df7a8d7e61787685e7c1ab1 (patch) | |
tree | 452a1a5001738eaf2b4b0175933a46e2fe6e9721 /mempodipper.c | |
parent | Initial working ploit. (diff) | |
download | CVE-2012-0056-775561261732f7c87df7a8d7e61787685e7c1ab1.tar.xz CVE-2012-0056-775561261732f7c87df7a8d7e61787685e7c1ab1.zip |
Move around the banner.
Diffstat (limited to 'mempodipper.c')
-rw-r--r-- | mempodipper.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mempodipper.c b/mempodipper.c index f3c52d6..b5efd53 100644 --- a/mempodipper.c +++ b/mempodipper.c @@ -115,12 +115,6 @@ int recv_fd() int main(int argc, char **argv) { - printf("===============================\n"); - printf("= Mempodipper =\n"); - printf("= by zx2c4 =\n"); - printf("= Jan 21, 2012 =\n"); - printf("===============================\n\n"); - if (argc > 2 && argv[1][0] == '-' && argv[1][1] == 'c') { char parent_mem[256]; sprintf(parent_mem, "/proc/%s/mem", argv[2]); @@ -134,6 +128,13 @@ int main(int argc, char **argv) send_fd(fd); return 0; } + + printf("===============================\n"); + printf("= Mempodipper =\n"); + printf("= by zx2c4 =\n"); + printf("= Jan 21, 2012 =\n"); + printf("===============================\n\n"); + int parent_pid = getpid(); if (fork()) { printf("[+] Waiting for transferred fd in parent.\n"); |