agent icon indicating copy to clipboard operation
agent copied to clipboard

add logging in pythonw env and fix connection drops with it

Open razuz opened this issue 8 years ago • 4 comments

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.

razuz avatar Aug 08 '16 06:08 razuz

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?

jbremer avatar Aug 08 '16 15:08 jbremer

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

razuz avatar Aug 08 '16 15:08 razuz

this seems to work both ways ... haven't tested with cuckoo yet - will do that in morning

razuz avatar Aug 08 '16 18:08 razuz

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

razuz avatar Aug 09 '16 09:08 razuz