GithubHelp home page GithubHelp logo

Comments (7)

zanemendoza123 avatar zanemendoza123 commented on May 20, 2024 1

Would like to close this issue since the CLI option -shellcode fixed it.

from pezor.

zanemendoza123 avatar zanemendoza123 commented on May 20, 2024

Managed to make it work by setting the IS_SHELLCODE variable to true. I'm not sure if this is the right fixed for my issue though. I'm not knowledgeable enough to debug all codes. I might I have broke something.

from pezor.

phra avatar phra commented on May 20, 2024

[?] PE detected: beacon.bin: PE32+ executable (DLL) (GUI) x86-64, for MS Windows

it seems that file, used by PEzor, recognizes your input as a PE file instead of raw shellcode. can you check why file believes that?

from pezor.

zanemendoza123 avatar zanemendoza123 commented on May 20, 2024

Here's the output of file command on the raw shellcode

# file beacon.bin    
beacon.bin: PE32+ executable (DLL) (GUI) x86-64, for MS Windows

from pezor.

phra avatar phra commented on May 20, 2024

based on https://malware.news/t/cobaltstrike-beacon-dll-your-no-ordinary-mz-header/34458 it seems that cobalt strike generates a shellcode that starts with a specially crafted DOS header and file reports it as a full PE based on that header. (https://github.com/phra/PEzor/blob/master/PEzor.sh#L222)

if confirmed, a solution would be to add a new command-line option to force the payload to be treated as raw shellcode despite the file output. anyway this issue doesn't appear when using hooks to customize generated artifacts.

from pezor.

c14dd49h avatar c14dd49h commented on May 20, 2024

I have the same issue... any update of this topic?

from pezor.

phra avatar phra commented on May 20, 2024

a workaround was posted by @zanemendoza123 above and a long-term solution was suggested by me. unfortunately i haven't worked on it, does someone mind to send a PR with the proposed fix? (i.e. add -shellcode command line option)

from pezor.

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.