Author Topic: How do I set password to compressed zip files in Python?  (Read 1307 times)

0 Members and 1 Guest are viewing this topic.

Offline fox12345

  • Serf
  • *
  • Posts: 25
  • Cookies: -31
    • View Profile
How do I set password to compressed zip files in Python?
« on: October 12, 2013, 06:13:04 am »
Code: [Select]

import zipfile
A = zipfile.ZipFile("A.zip", "w")
A.write("12345.txt")
A.close()

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: How do I set password to compressed zip files in Python?
« Reply #1 on: October 12, 2013, 02:55:11 pm »
You can't directly with the standard library.

You can however, open a subprocess or make a system call to a shell utility like zip, 7zip or whatever is applicable.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet