agent
agent copied to clipboard
add logging in pythonw env and fix connection drops with it
Long debugged error which caused much misery :)
Anyways stderr (and also stdout) needs some sort of env which is set to None
in pythonw.exe ... this however causes weird anomalies while talking to agent :/
This is one solution to fix this issue - there are probably more ways to handle that but as far as I tested then this works.
Furthermore, this doesn't work if people rename pythonw.exe
. What do you think about doing this at all times - no matter python.exe
or pythonw.exe
?
sure why not ... the only downside would be that log will be written to file not console
I'll test this later today on vmcloak and cuckoo - just to be safe
this seems to work both ways ... haven't tested with cuckoo yet - will do that in morning
works in cuckoo aswell :) I don't see any more connection drops on cuckoo which probably solves the file download anomaly we were looking at earlier ;)
so I guess it's good for merge