Git Product home page Git Product logo

cybertruckchallenge19's People

Contributors

enovella avatar user1342 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cybertruckchallenge19's Issues

Buffer over-read when generating the native secret

char data[] = {0x4e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x30, 0x64, 0x33, 0x5f, 0x31, 0x73, 0x5f, 0x68, 0x34, 0x72, 0x64, 0x33, 0x72, 0x5f, 0x54, 0x6f, 0x5f, 0x72, 0x33, 0x76, 0x65, 0x72, 0x73, 0x33};
char key[] = {0x2c, 0x00, 0x17, 0x02, 0x12, 0x55, 0x6f, 0x11, 0x14, 0x29, 0x46, 0x7b, 0x45, 0x32, 0x33, 0x1f, 0x00, 0x0b, 0x17, 0x71, 0x17, 0x19, 0x64, 0x1d, 0x3d, 0x43, 0x57, 0x12, 0x56, 0x1c, 0x57, 0x17};
int n = strlen(data);
int i;
char out[n];
for (i = 0; i < n; i++)
{
out[i] = data[i] ^ key[i];
}

Is it intended to not have any null-termination on the data array to make the challenge harder? strlen() reads data until it finds the first null character, which with this implementation is somewhere past the end of the data array. When I'm running this on an x86_64 emulator strlen returns 38 while the data array is 32 characters long. This also means that the last characters of the out array will be based on data read from past the end of the data and key arrays.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.