Python Forum
Archive (.7z, .zip, .rar, .tar, etc) Password Extractor
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Archive (.7z, .zip, .rar, .tar, etc) Password Extractor
#1
Hi Everyone,

I'm just new to Python. I've already learned the basics by watching videos online.

I am planning to write a script that will automatically extract password protected archives such as 7z, zip, rar, tar, etc.

What I want to happened is when I do a right click on that archive (Windows Machine), there will be an option to select to call my script to extract the archive and extract it using predefined passwords. For example, the passwords that I want to use to automatically extract the archive are the following - "1234", "password", "admin".

This is the only code that I have so far.
import zipfile
zf = zipfile.ZipFile('data.zip')
print zf.namelist()
from zipfile import ZipFile
with ZipFile('data.zip') as zf:
    zf.extractall(pwd='password')
Thank you for your help!
Reply
#2
see package: https://pypi.org/project/password/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find specific file in an archive tester_V 8 833 Feb-13-2021, 06:13 PM
Last Post: tester_V
  Windows reg extractor shappaeye 4 785 May-23-2020, 12:33 PM
Last Post: shappaeye
  Problem creating an archive trojantrojan 3 724 May-10-2020, 01:32 AM
Last Post: trojantrojan
  Invalid archive error when attempting to install dash bootstrap components meaydemi 0 3,248 Jul-11-2019, 05:49 PM
Last Post: meaydemi
  Create file archive that contains crypto hash ED209 1 880 May-29-2019, 03:05 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020