Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.