Comments (7)
Would like to close this issue since the CLI option -shellcode
fixed it.
from pezor.
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.
[?] 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.
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.
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.
I have the same issue... any update of this topic?
from pezor.
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)
- cmd window is visible
- No such file or directory
- getting od: /tmp/shellcode.bin: No such file or directory..
- getting od: /tmp/shellcode.bin: No such file or directory..
- x86_64-w64-mingw32-clang++ is missing from $PATH. Check https://github.com/tpoechtrager/wclang to learn how to install it HOT 3
- "data" is not recognized as valid shellcode HOT 1
- SYSCALLS Type Conversion Error HOT 3
- Compilation error with -format=dotnet HOT 3
- install.sh dependency is invalid HOT 2
- Syntax error HOT 1
- question about windows HOT 1
- Cant use PEzor as "donut -i" doesnt exist HOT 2
- Can't use -syscalls HOT 2
- Error with syscalls HOT 2
- Installation issue on latest Kali Linux HOT 7
- Problem with using PEzor HOT 10
- donut: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by donut) HOT 1
- xxd instead of od?
- DONUT error + PEzor
- [bug]inject.hpp without #include<stdio.h> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pezor.