cursed Show more
.......can you mmap in python?
re: cursed Show more
@munin yes https://docs.python.org/3/library/mmap.html#module-mmap
@atax1a
*sigh*
yeah. was afraid of that.
@munin i mean even if there wasn't in the stdlib, there's cffi
cffi
yeah no this is.....enough to make some assumptions about the behavior of a very badly behaved tool in python.
@munin do I want to know which tool
@demize
The behavior we're looking at is certain malware's use of mmap to avoid doing normal file write ops, but then a coworker noted that amazon's cli does other things that are -documented- as "don't do this shit" so it might throw falsepos
@munin @demize
I wouldn't expect doing mmap to write to a file to be more convenient from Python ~ever. Do you know why people (other than malware authors) do that?
@robryk @demize
People do all -kinds- of horseshit that looks entirely unreasonable and counterproductive outside of very specific internal contexts.
This is only a problem for the work I do if it's someone in FAANG doing it.
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.
re: cursed
@robryk @demize
People do all -kinds- of horseshit that looks entirely unreasonable and counterproductive outside of very specific internal contexts.
This is only a problem for the work I do if it's someone in FAANG doing it.