//
// main.c
// c4pture
//
// Created by Sam Marshall on 12/22/13.
// Copyright (c) 2013 Sam Marshall. All rights reserved.
//
#include <stdio.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, const char * argv[]) {
if (argc == 0x2) {
struct stat fs;
char *path = (char *)argv[0x1];
int statResult = stat(path, &fs);
if (statResult == 0x0) {
int fd = open(path, O_RDWR);
// going after taig
lseek(fd, 0x8faeac, SEEK_SET);
uint32_t taigLength = 0xd134f5;
uint32_t *zero = calloc(0x1, taigLength);
write(fd, zero, taigLength);
// replacing with cydia
lseek(fd, 0x1a842d, SEEK_SET);
uint32_t cydiaLength = 0x6d24ff;
char *cydiaBuffer = calloc(0x1, cydiaLength);
read(fd, cydiaBuffer, cydiaLength);
lseek(fd, 0x8faeac, SEEK_SET);
size_t length = write(fd, cydiaBuffer, cydiaLength);
if (length == -1) {
printf("error: (%i) %s\n",errno,strerror(errno));
} else {
printf("successfully patched evasi0n7!");
}
free(zero);
close(fd);
}
}
return 0x0;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.