Protostar x86-64: Heap 1

April 2, 2019, 2:59 pm

So let's look at the vulnerable code:

Source Code

#include 
#include 
#include 
#include 
#include 

struct internet {
  int priority;
  char *name;
};

void winner()
{
  printf("and we have a winner @ %d\n", time(NULL));
}

int main(int argc...

Continue Reading...

Protostar x86-64: Heap 0

September 4, 2018, 11:30 pm

So let's look at the vulnerable code:

Source Code

#include 
#include 
#include 
#include 
#include 

struct data {
 char name[64];
};

struct fp {
 int (*fp)();
};

void winner()
{
 printf("level passed\n");
}

void nowinner()
{
 printf("leve...

Continue Reading...

Protostar x86-64: Stack 7

August 7, 2018, 5:52 pm

So let's look at the vulnerable code:

Source Code

#include 
#include 
#include 
#include 

char *getpath()
{
  char buffer[64];
  unsigned int ret;

  printf("input path please: "); fflush(stdout);

  gets(buffer);

  ret = __builtin_return_address(0);...

Continue Reading...

Protostar x86-64: Stack 6

August 7, 2018, 5:51 pm

So let's look at the vulnerable code:

Source Code

#include 
#include 
#include 
#include 

void getpath()
{
  char buffer[64];
  unsigned int ret;

  printf("input path please: "); fflush(stdout);

  gets(buffer);

  ret = __builtin_return_address(0);...

Continue Reading...

Protostar x86-64: Stack 5

August 7, 2018, 5:50 pm

So let's look at the vulnerable code:

Source Code

#include 
#include 
#include 
#include 

int main(int argc, char **argv)
{
  char buffer[64];

  gets(buffer);
}

Explanation of the source code

As for the previous exercice, we will exploit the weaknes...

Continue Reading...