Comments (4)
@whydee86, thanks a lot for the detailed issue description. Looks like one of the 3 arguments when calling read
is null:
$stream.Read($bytes, 0, $bytes.Length)
Possibly the initialization of the $bytes
byte array from the previous command did not complete in time, so when it gets to read it errors out? I'm kind of speculating for now. If that's true, then you can probably append this line (or similar) before the "read" command: while ($? -ne $true){sleep 0.5};
.
I will have a closer look and get back to you.
Cheers
from villain.
Based on the error I see it seems that the remote host as closed the connection mean that it stopped listening to the port. Also it could be a connection issues. Make the connection your connecting to "Victim" there no connection timeout ....
from villain.
@whydee86, thanks a lot for the detailed issue description. Looks like one of the 3 arguments when calling
read
is null:$stream.Read($bytes, 0, $bytes.Length)
Possibly the initialization of the$bytes
byte array from the previous command did not complete in time, so when it gets to read it errors out? I'm kind of speculating for now. If that's true, then you can probably append this line (or similar) before the "read" command:while ($? -ne $true){sleep 0.5};
.I will have a closer look and get back to you.
Cheers
Great, if I can help with something or provide more information, please let me know. We should also add to the agent reconnect mechanism in case of network failure. For example, try stopping the server for 5 seconds and then start it again.
from villain.
@whydee86 by the way, you can probably use nishang as an agent to connect to Villain via tcp which is more sophisticated.
from villain.
Related Issues (20)
- A BUG, a suggestion HOT 1
- [FeatureRequest] Have payloads be able to output to file HOT 1
- having some issue with update ? please help HOT 2
- ModuleNotFoundError when trying to run Villain.py HOT 1
- port taken HOT 1
- Help me with nohup = "nohup.out" :( HOT 6
- I tried as you told me and it says "bash: line 1: curl: order not found HOT 1
- Python library error HOT 5
- Using villain with Local tunnel or ngrok HOT 1
- help dns? HOT 2
- VM using local IP address instead of public for LHOST HOT 1
- I have a problem HOT 1
- [Cannot "cd" in shell] This session is unstable. Consider running a socket-based rshell process in it. HOT 1
- Villain --- Gets Stuck Updating HOT 4
- trying to create backdoor generate fails HOT 2
- invalid escape sequence HOT 2
- New feature for security HOT 1
- hoaxshell not working.
- Alias not working for exec command
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 villain.