Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
n132 committed Sep 26, 2024
1 parent ff19419 commit a788a4a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions kaslr.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ uint64_t leak_phys(void)
min = data[i];
addr = SCAN_START_PHYS + i * STEP_PHYS;
idxxx = i;
// printf("%p %p pre: %p\n",addr,min,data[i-1]);
}
}

Expand All @@ -148,16 +147,11 @@ uint64_t leak_phys(void)
//outliner
continue;
}
// Find the `dent`
// printf("[X] MIN: %p\n",min);
// if(idxxx==i){
// printf("%d %d %d",data[i]< previous_data,(double)previous_data*0.95 > (double)data[i],data[i] < min*1.0625);
// }

if( data[i]< previous_data && \
(double)previous_data*0.9375 > (double)data[i] && \
data[i] < min*1.0625 )
{
// printf("[X] pre: %p cur: %p min: %p\n",previous_data,data[i],min);
addr = SCAN_START_PHYS + i * STEP_PHYS;
break;
}
Expand Down

0 comments on commit a788a4a

Please sign in to comment.