We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
使用 Metasploit 将文件压缩为 zip 格式非常容易. 大多数情况下, 你可以使用 Msf::Util::EXE.to_zip() 将数据压缩到 zip 文件中.
Msf::Util::EXE.to_zip()
请注意, 不应再使用以前的 Rex::Zip::Archive().
Rex::Zip::Archive()
files = [ {data: 'AAAA', fname: 'test1.txt', comment: 'my comment'}, {data: 'BBBB', fname: 'test2.txt'} ] zip = Msf::Util::EXE.to_zip(files)
保存为文件, 上面的例子会解压成以下内容:
$ unzip test.zip Archive: test.zip extracting: test1.txt extracting: test2.txt