Does anyone use -t ? #31
-
I'm trying to figure out why it's not working. |
Beta Was this translation helpful? Give feedback.
Answered by
Marshall-Hallenbeck
Sep 23, 2023
Replies: 2 comments 3 replies
-
How do you know its not working? By default it's already pretty high @ 100. That argument is passed directly into the ThreadPoolExecutor https://github.com/Pennyw0rth/NetExec/blob/main/nxc/netexec.py#L58 & line 63 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmm... Interesting. I've tried setting different -t and did not observe any difference. Still goes thru the hosts slowly, one at a time. when using smb |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We create a ThreadPooler task for each thread that is defined (by default it's 100, which is plenty): https://github.com/Pennyw0rth/NetExec/blob/main/nxc/netexec.py#L55
There are default timeouts and network connection timing that we can't help - what specifically makes you think that the threads aren't being properly created? If it wasn't multi-threaded, you would see each host 1 by 1, but you see results randomly (that is, sometimes you see them slightly out of order).