Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On Windows one can compile a DLL or EXE in such way that you can overwrite the executable while it's still running.

With the Microsoft Linker this is achieved by adding /SWAPRUN:CD,NET - it means that the image might be running of CD-ROM or Network - and both can lose media connection, so copy the image in memory beforehand.

This could be useful, only if it wasn't for certain Anti-viruses that treat a lot of my executables as viruses once any of these two flags are on (CD, NET or both).

You can actually edit the flags on existing executable, using EDITBIN (or LINK /edit - it's the same - linker is a bit like "busybox" here).

Another reason is that the antivirus we currently have installed at work slows down copying off the shared network. And because it's off the network, the antivirus has to check it everytime (unlike HDD, where it can keep some cache of what was checked).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: