Comments (9)
I actually haven't tested for max command length. I know I haven't tried one much over 1200 chars. 3847 works? I'll take a look tonight to see what's going on with longer commands.
from invoke-thehash.
yes, i tried now. 3863 worked. but 3864 failed.
from invoke-thehash.
Okay cool, thanks, I'll go through and replicate that.
from invoke-thehash.
Comparing the behavior to Invoke-WMIMethod, it looks like another packet is employed once a command hits a certain length. I haven't checked the protocol specs yet for details. I should be able add some code in to handle the longer commands though.
from invoke-thehash.
hey, i working on this code since from 2 day. but still dont work.
Maybe problem is from BitConverter line 199.
What's your idea?
from invoke-thehash.
It's more down around the line 1220 section. Logic will need to be added to split the RPC request over multiple packets (using the appropriate first and last flags) for longer commands.
from invoke-thehash.
kevin, its rly perfect code.
me and our friends still waitting for fix.
can u look code, when u r available?
Thx.
from invoke-thehash.
Yeah, I'll be working on it more this weekend. There is a similar issue with Invoke-SMBExec and Inveigh-Relay that I need to fix so they work with the longer Empire 2 launchers.
from invoke-thehash.
Added support for longer commands to both Invoke-WMIExec and Invoke-SMBExec.
from invoke-thehash.
Related Issues (11)
- Question: Mapping an SMB drive HOT 4
- Customize the pipe name HOT 2
- "Sleep" does not work when using Invoke-thehash HOT 2
- local Pass The Hash
- Question: use Invoke-WMIExec to query stuff HOT 2
- User is not local administrator HOT 3
- SMB-Finger in powershell HOT 1
- WriteAndX Offset HOT 1
- Run command in the context of User
- SMB enumeration exception then ran with Invoke-TheHash HOT 3
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 invoke-thehash.