Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
pip install allz
allz -d -q -f src_path -o dest_path
src_path The input source path.
dest_path The output destination path.
-d Decompress normal or split compressed files.
-q Run in quiet mode.
-f Always overwrite files when a file to be unpacked already exists on disk. By default, the program will skips the file.
-p Output regular expressions for both regular compressed files and slice compressed files successively: the first line is for the normal compressed file, the second line is for the split volumn compressed file.
allz --version
allz -h
or
allz --help
allz check
allz -d MNIST.7z
In default, if the compressed file have already decompress before, it will skip the same file. You can use option -f to overwrite the files.
allz -d -f MNIST.7z
You can also mask screen log output by use option -q.
allz -d -q MNIST.7z
allz -d MNIST.7z -o /tmp
You can also use the relative destination path.
allz -d MNIST.7z -o ..
allz -d MNIST.tar.7z.001
Decompress the split volumn file to specified directory by use option -o.
allz -d MNIST.tar.7z.001 -o /tmp
Methods of using escapes
allz -d 20220101\ todo/MNIST.7z -o /tmp/20220101\ done/MNIST.7z
Methods of using quotation marks
allz -d "20220101 todo/MNIST.7z" -o "/tmp/20220101 done/MNIST.7z"
It will automatically create folders that do not exist.
allz -d MNIST.7z -o /tmp/today/fruit/apple/
Source code: allz/libs/file_type_tester
FileTypeTester.get_compressed_files_classify_lst(file_lst)
A short usage example:
from allz.libs.file_type_tester import FileTypeTester
file_lst = ["MNIST.tar.0000", "MNIST.tar.0001", "MNIST.tar.0002", "MNIST.tar.0003", "MNIST.tar.0004", "MNIST.tar.7z.001", "MNIST.tar.7z.002", "MNIST.part1.rar", "MNIST.part2.rar", "MNIST.part3.rar", "MNIST.part4.rar", "MNIST.7z.001", "MNIST.7z.002", "123.rar", "abc.zip", "abc", "000", "0000.tar", "02287.txt"]
tester = FileTypeTester()
res_lst = tester.get_compressed_files_classify_lst(file_lst)
print(res_lst)
Output:
[['/home/work/srccode/github/allz/allz/libs/MNIST.tar.0000', '/home/work/srccode/github/allz/allz/libs/MNIST.tar.0002', '/home/work/srccode/github/allz/allz/libs/MNIST.tar.0004', '/home/work/srccode/github/allz/allz/libs/MNIST.tar.0003', '/home/work/srccode/github/allz/allz/libs/MNIST.tar.0001'], ['/home/work/srccode/github/allz/allz/libs/MNIST.tar.7z.002', '/home/work/srccode/github/allz/allz/libs/MNIST.tar.7z.001'], ['/home/work/srccode/github/allz/allz/libs/MNIST.part4.rar', '/home/work/srccode/github/allz/allz/libs/MNIST.part1.rar', '/home/work/srccode/github/allz/allz/libs/MNIST.part2.rar', '/home/work/srccode/github/allz/allz/libs/MNIST.part3.rar'], ['/home/work/srccode/github/allz/allz/libs/MNIST.7z.001', '/home/work/srccode/github/allz/allz/libs/MNIST.7z.002'], ['/home/work/srccode/github/allz/allz/libs/123.rar'], ['/home/work/srccode/github/allz/allz/libs/000.tar']]
FAQs
A universal command line tool for compression and decompression
We found that allz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.