Pure Python Data Mangling or Encrypting

Chris Angelico rosuav at gmail.com
Wed Jun 24 12:23:32 EDT 2015


On Thu, Jun 25, 2015 at 2:16 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> On 2015-06-24, Emile van Sebille <emile at fenx.com> wrote:
>> Mangling would at least prevent it from executing.
>
> If you don't want a file to be executed, then don't make it
> executable.  Or doesn't Windows have any way to control whether a file
> is executable or not?

Windows doesn't have the Unix file system concept of execute
permission, no. If a file has the .exe extension and the first 512
bytes look like an appropriate header (MZ etc), Windows will happily
run it. With other extensions, similarly - just create a .bat file and
double-click it, it'll run the commands.

ChrisA



More information about the Python-list mailing list