Giter VIP home page Giter VIP logo

ddexec's Introduction


This may not be much, so please note that I also (almost) got a patch into the glibc XD

ddexec's People

Contributors

arget13 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

ddexec's Issues

Android?

Hi, can this be used on android? I'm guessing yes?...

Possibility to make the stack executable

Hello:

Sometimes we would like to run code on the stack. For example, a msfvenom reverse shell in C that is written and executed from the stack.

Right now the code does not support stack execution but it could be an option for the future.

Greetings.

Not working with static binaries

I was trying to run CDK tool with DDExec but it fails to get system page size.

base64 -w0 /dev/shm/cdk | bash ddexec.sh eva --full
fatal error: failed to get system page size
runtime: panic before malloc heap initialized

runtime stack:
runtime.throw(0xa4fb42, 0x1e)
        /opt/hostedtoolcache/go/1.15.15/x64/src/runtime/panic.go:1116 +0x72 fp=0x7ffda32a1ea0 sp=0x7ffda32a1e70 pc=0x435b72
runtime.mallocinit()
        /opt/hostedtoolcache/go/1.15.15/x64/src/runtime/malloc.go:438 +0x385 fp=0x7ffda32a1ec8 sp=0x7ffda32a1ea0 pc=0x40c6c5
runtime.schedinit()
        /opt/hostedtoolcache/go/1.15.15/x64/src/runtime/proc.go:563 +0x65 fp=0x7ffda32a1f20 sp=0x7ffda32a1ec8 pc=0x4394c5
runtime.rt0_go(0x7ffda32a1f4f, 0x1, 0x7ffda32a1f4f, 0x169622f6f672f3d, 0xf100000000000000, 0x7ffda32a1f, 0x0, 0x300000000000000, 0x4000000000000000, 0x400000000004000, ...)
        /opt/hostedtoolcache/go/1.15.15/x64/src/runtime/asm_amd64.s:214 +0x125 fp=0x7ffda32a1f28 sp=0x7ffda32a1f20 pc=0x4691c5

Are golang bin impossible to run with this technique ?

how to work in sh?

Hello, my environment do not have bash but only sh(just like sh in ubuntu), and sh do not support command:

exec 0< <(printf $data)

It will say:Syntax error: redirection unexpected

What should I do? Thanks for your help.

Problem with static binaries

Hello:

I noticed that the ddexec.sh module does not work correctly with static binaries:

Inconsistency detected by ld.so: rtld.c: 1619: dl_main: Assertion GL(dl_rtld_map).l_libname' failed!

Regards

Use "ld" to exec "dd" without file system's exec permission

Hi...
As described in the README.md, making dd executable only by root WILL NOT prevent this technique being executed by the filesystem: you could call "ld" before calling "dd".
Please, add $loader variable to your script to use the "ld" and "dd" together.
Thanks in advance.

Problem with NO-PIE Binaries

Hello:

After testing the tool I noticed that it does not respond correctly with binaries generated by msfvenom (and probably with some others).

image

As we discussed by mail, one of the errors was due to the .bss section but after fixing that bug, it still responds incorrectly.

I am still investigating why this is happening.

Regards,
J.

Error with go binaries

Error trying to run go binaries.

fatal error: failed to get system page size
runtime: panic before malloc heap initialized

runtime stack:
runtime.throw({0x499fc4, 0x0})
	/usr/lib/go/src/runtime/panic.go:1198 +0x71 fp=0x7fffffffee98 sp=0x7fffffffee68 pc=0x42f991
runtime.mallocinit()
	/usr/lib/go/src/runtime/malloc.go:445 +0x2fd fp=0x7fffffffeec0 sp=0x7fffffffee98 pc=0x40a7bd
runtime.schedinit()
	/usr/lib/go/src/runtime/proc.go:689 +0x55 fp=0x7fffffffef20 sp=0x7fffffffeec0 pc=0x4331d5
runtime.rt0_go()
	/usr/lib/go/src/runtime/asm_amd64.s:212 +0x125 fp=0x7fffffffef28 sp=0x7fffffffef20 pc=0x4589a5

Probably the internal golang functions use the auxv entry AT_PAGESZ to obtain the page size.

Problem with msfvenom reverse shell shellcodes

Hello:

If I try to run a msfvenom shellcode that executes an action, it works perfectly with the ddsc.sh module.
image

But if I generate a msfvenom reverse shell shellcode, the program is not working.
image

Regards

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.