← Back
vortex6 | Avishai’s CTF Writeups

Avishai's CTF Writeups

Yalla Balagan! A collection of my CTF writeups and solutions.

View on GitHub

using basic reversing, we can see that it runs the argument we give it.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#define PATH "/vortex/vortex6"


int main() {
    char *args[] = {"/bin/sh", NULL};
    execv(PATH, args);

    // If execve fails, print an error message
    perror("execve");
    return 1;
}

.

image

Flag: p4ZfutGrw