GithubHelp home page GithubHelp logo

linux_heap_exploitation_intro_series's People

Contributors

n30m1nd 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

Watchers

 avatar  avatar  avatar

linux_heap_exploitation_intro_series's Issues

Changes in challenge-uaf.c to send bytes via netcat

Attention: SPOILER

Thank you @n30m1nd for sharing these UAF examples.
Tho goal in the challenge is to get the "SP{nottheflag_d000000000000000000d}" string when pressing 4, right?

My approach:
Run the server locally and connect with "netcat localhost port".
[...]
Then I wanted to set contents of a new allocated chunk by pressing 3.
I had problems sending the raw bytes (e.g. 563547cd46e8) back to the server.

So I changed your code:

//case 3 
		/*...*/				
//if (recv(clientfd, buffer, 8, 0) > 0)
if (recv(clientfd, buffer, 16, 0) > 0){
    long c = strtol(buffer,NULL,16);
    memcpy(strchunks[chunkpos], &c, 8 );
    //memmcpy(strchunks[chunkpos], (char*)buffer, 8);
    } 
send(clientfd, memcpymessage, strlen(memcpymessage), 0);

This leads to success (if success is really the return of the flag string).

Question: Is there some other way to send these bytes? What is your solution?

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.