精华内容
下载资源
问答
  • zlib

    千次阅读 2016-11-22 00:58:38
    在分析样本的网络行为时候,遇到了将信息用zlib压缩的 zlib的开头是789c 下面写个python小脚本方便大家进行学习 可以将二进制数据复制进去然后 解密这里写代码片 ! /usr/bin/env pythonimportzlib import...

    在分析样本的网络行为时候,遇到了将信息用zlib压缩的
    zlib的开头是789c
    下面写个python小脚本方便大家进行学习
    可以将二进制数据复制进去然后
    解密

    这里写代码片
    

    ! /usr/bin/env python

    importzlib
    importbinascii
    IDAT =”加密数据”.decode(‘hex’)

    print IDAT

    result =binascii.hexlify(zlib.decompress(IDAT))
    print result

    print result.decode(‘hex’)

    “`

    展开全文
  • ZLIB

    千次阅读 2013-09-01 23:01:05
    Minizip: Zip and UnZip additionnal library ...Click to download Minizip (zip/unzip) package for zLib version 1.01h, with minor bugfixes, or, better, 1.1 (with zip64 support). This package enables

    Minizip: Zip and UnZip additionnal library

    --

    Click to download Minizip (zip/unzip) package for zLib version 1.01h, with minor bugfixes, or, better, 1.1 (with zip64 support).

    This package enables to extract files from a .zip archive file. It is compatible with PKZip 2.04g, WinZip, InfoZip, MimarSinan Codex Suite 2002 tools, and compatible sofware.
    It runs both under Linux and Windows, and probably other systems too. Encryption, multi-volume Zip files (span), and old compression methods used by old PKZip 1.x are not supported.
    See appnote-011203-iz.zip or appnote-iz-latest.zip for the specification of ZIP format (or appnote-981119-iz.zip for older versions). Pkware provides also probdesc.zip and an HTML page with the specification.

    What is Minizip (Zip/Unzip)?

    The Zlib library allows to deflate compressed files and to create gzip (.gz) files. Zlib is free software and small.

    An archive in ZIP format can contain several files compressed with this method, while a .gz archive can containt only one file. It is a very popular format, that is why I have written a package for reading files compressed within a Zip archive.

    Zlib库可以压缩文件形成.gz文件。Zlib是一个小型的免费软件。ZIP格式的文件包含多个压缩的文件,当是.gz格式的文件只包含一个文件。ZIP是一个非常流行的格式,这就是为什么我在这里提供一个工具包来读ZIP文件。

    How to get the Minizip package

    You need the source code of Zlib (zlib125.zip or zlib-1.2.5.tar.gz. For previous version, get zlib114.zip, or by FTP zlib114.zip).
    Now, with version 1.23,1.24,1.25 and 1.14 of zLib, the Minizip library is inlucded in the contrib/minizip directory.

    In zlib125dll.zip there is the Win32 Windows DLL of my Windows DLL named Zlibwapi.dll that contains both zLib and Minilib.
    For previous version, in zlib114dll.zip you will find Windows DLL (Win16 and Win32) and static library (Win32) of Zlib 1.14 WITH zip/unzip package.
    Please note I have added in buildzlib114dll.zip the version of zip.c/unzip.c (0.21).
    You must read zip.h and unzip.h, which contains the documentation of the zip and unzip functions.

    March 2003: you can get version 0.21 with support of custom I/O functions to read and write zip files, and raw I/O (in order to duplicate files from one zip archive to another without uncompressing nor compressing). There is also a modified version of unzip with uncrypting, written by Terry Thorsen).
    You can also get version 0.22e with crypting/uncrypting (do a #define NOCRYPT if you don't need it) and adding a file to an existing Zip archive.

    15 March 2010: You can now download version 1.01h, with minor bugfixes, or, better, 1.1 with zip64 support.
    Justin Fletcher wrote a very simple implementation of a memory access method for the ioapi code (ioapi_mem_c.zip). Ivan A. Krestinin wrote a small example of how delete a file from zip archive. This example is not fully tested (memory leaks are possible if the source archive is corrupt), but it might help you.

    Unzipping files

    The source code is made of only two files: unzip.h and unzip.c (plus ioapi.c and a few other include files). It uses the Zlib library.

    miniunz.c is a very simple, but real unzip program. It can display files contained in a Zip archive or extract them.

    源代码由两个部分组成:unzip.h和unzip.c(加入ioapi.c和一些其它文件),将会依赖Zlib库。miniunz.c是一个非常小解压缩实例程序,通过这个程序可以显示ZIP格式中的文件并解压缩。

    Zipping files

    The source code is made of only two files: zip.h and zip.c (plus ioapi.c and a few other include files). It uses the Zlib library.

    minizip.c is a very simple, but real zip program.

    源代码由两个部分组成:unzip.h和unzip.c(加入ioapi.c和一些其它文件),将会依赖Zlib库。miniunz.c是一个非常小解压缩实例程序。

    A C++ Wrapper

    Daniel Godson made a C++ wrapper to the zip/unzip library. Another can be found at Troels page.

    A full MFC sample

    In the CodeGuru developers site, there is an excellent example, 'Implementing a "Send as ZIP-File" command in Scribble' written by Stefan Kuhr. Unfortunately, this example is not built with the good, standard zLib DLL (see the DLL page). Download mapizip_demo_gooddll.zip for a fixed project which uses the good DLL.

    Extension to Minizip

    Troels K. worked hard on the Minizip library. He has made several add-on, including a proposal for unzAttach/unzDetach.

    Other examples

    Jukka Pihl wrote mod_ziplook Apache module. It enables to view zip archive files directly in Apache without extracting them to the filesystem. It also uses HTTP compression (supported by W3C, like Microsoft IIS, Apache mod_deflate and examples in python and jython. Bashuman Deb wrote a FTP paging Support for miniunz.

    Miscellaneous

    The Gilles vollant software forum contain a section about Minizip.

    Please also email me for feedback.

    Future of ZIP file format

    It seems that the ZIP file format will changes. The web sites PCWorld (and this new article), IDG, SlashDot contain information about ZIP's future. PkWare site contains a new specification, InfoZip has also a ZIP specification. WinZip specifies also new encryption. The PKWare specification mentions a new BZip2 compression method (there is a "zlib-like" library for BZip2 compression).

    展开全文
  • zlibzlib-devel

    2018-04-03 12:16:39
    安装编译Python、nginx,apache依赖包,zlibzlib-devel
  • zlib.zip zlib.so

    2020-08-10 19:53:14
    openresty中使用的gzlib文件,编译后的zlib.so文件,使用机器环境为32bit和64位都支持
  • zlib1.2.11

    2018-03-28 11:37:43
    ubuntu zlib1.2.11安装包 .deb文件,如果报错说是未定义zlib1.2.9 可以试试安装这个
  • zlib 1.2.11

    2019-03-27 17:25:39
    zlib 1.2.11 is a general purpose data compression library.
  • mysql zlib_Zlib介绍

    2021-02-01 19:39:21
    1. 如何获得zlibzlib的主页是:http://www.zlib.net/2. 用VC++6.0... 双击zlib.dsw, 可以在VC++6.0中看到里面有3个工程: zlib 是库文件(编译设置选中 win32 lib debug / release), 工程example 是如何使用 zlib.li...

    1. 如何获得zlib

    zlib的主页是:http://www.zlib.net/

    2. 用VC++6.0打开

    把下载的源代码解压打开,VC6.0的工程已经建好了,在projectsvisualc6. 双击zlib.dsw, 可以在VC++6.0中看到里面有3个工程: zlib 是库文件(编译设置选中 win32 lib debug / release), 工程example 是如何使用 zlib.lib 的示例, 工程minigzip 是如何用 zlib 提供的函数读写.gz文件的示例(*.gz的文件一般Linux下比较常用).

    3. 如何加入到我的工程

    编译好 zlib.lib 后, 你就得到了调用一个静态库所需要的所有文件了(zlib.lib, zlib.h, zconf.h). 如何调用静态库不用我说了吧.

    4. 用zlib能干什么

    先来看看 zlib 都提供了那些函数, 都在zlib.h中,看到一堆宏不要晕,其实都是为了兼容各种编译器和一些类型定义.死死抓住那些主要的函数的原型声明就不会受到这些东西的影响了.

    关键的函数有那么几个:

    (1)int compress (Bytef *dest,  uLongf *destLen, const Bytef *source, uLong sourceLen);

    把源缓冲压缩成目的缓冲, 就那么简单, 一个函数搞定

    (2) int compress2 (Bytef *dest,  uLongf *destLen,const Bytef *source, uLong sourceLen,int level);

    功能和上一个函数一样,都一个参数可以指定压缩质量和压缩数度之间的关系(0-9)不敢肯定这个参数的话不用太在意它,明白一个道理就好了: 要想得到高的压缩比就要多花时间

    (3) uLong compressBound (uLong sourceLen);

    计算需要的缓冲区长度. 假设你在压缩之前就想知道你的产度为 sourcelen 的数据压缩后有多大, 可调用这个函数计算一下,这个函数并不能得到精确的结果,但是它可以保证实际输出长度肯定小于它计算出来的长度

    (4) int uncompress (Bytef *dest,  uLongf *destLen,const Bytef *source, uLong sourceLen);

    解压缩(看名字就知道了:)

    (5) deflateInit() + deflate() + deflateEnd()

    3个函数结合使用完成压缩功能,具体用法看 example.c 的 test_deflate()函数. 其实 compress() 函数内部就是用这3个函数实现的(工程 zlib 的 compress.c 文件)

    (6) inflateInit() + inflate() + inflateEnd()

    和(5)类似,完成解压缩功能.

    (7) gz开头的函数. 用来操作*.gz的文件,和文件stdio调用方式类似. 想知道怎么用的话看example.c 的 test_gzio() 函数,很easy.

    (8) 其他诸如获得版本等函数就不说了.

    总结: 其实只要有了compress() 和uncompress() 两个函数,在大多数应用中就足够了.

    题外话: 我最初看到zlib的源代码时被好多宏吓倒了,呵呵,后来仔细看下去才发现原来接口那么简单. 至于那些英文说明也没想象中的那么难懂.只要有尝试的勇气,总能有些收获.

    展开全文
  • zlib:用于Windows版本的ImageMagick的zlib
  • <div><p>This pull requests adds PREFIX() to certain functions to allow for dual linking both zlib & zlib-ng.</p><p>该提问来源于开源项目:zlib-ng/zlib-ng</p></div>
  • zlib.NET_104 zlib C#版

    2015-08-10 23:46:53
    zlib.NET_104 zlib C#版
  • fast_zlib:高度优化的zlib压缩算法
  • zlib1.2.5源码

    2019-02-18 17:16:33
    zlib1.2.5源码
  • zconf.h,zlib.h,zlib.dll,ZLib.lib 解压 压缩需要的
  • ZLIB应用实例ZLIB应用实例

    热门讨论 2011-04-21 16:03:09
    ZLIB应用实例ZLIB应用实例ZLIB应用实例ZLIB应用实例ZLIB应用实例ZLIB应用实例ZLIB应用实例
  • <div><p>For users who want to go all-in in switching from zlib to zlib-ng (i.e. don't use zlib-compat), I don't yet see a guide for porting to the new API.</p><p>该提问来源于开源项目:...
  • zlib-quazip

    2019-01-16 16:43:17
    其中包括quazip源码、zlib源码以及编译后的quazip与zlib文件
  • 升级zlib

    2019-09-29 20:59:35
    查看当前zlib版本 find /usr/ -name zlib.pc cat /usr/lib64/pkgconfig/zlib.pc 编译安装 tar xf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure --prefix=/usr/local/zlib1.2.5 make make install echo ...

    查看当前zlib版本

    find /usr/ -name zlib.pc

    cat /usr/lib64/pkgconfig/zlib.pc 

     

    编译安装

    tar xf zlib-1.2.11.tar.gz

    cd zlib-1.2.11

    ./configure --prefix=/usr/local/zlib1.2.5
    make
    make install
    echo /usr/local/zlib1.2.5/lib >>/etc/ld.so.confldconfig -v
     

    展开全文
  • java解压zlib和压缩zlib的jar
  • zlib安装包

    2013-07-08 16:10:46
    linux环境下android sdk工具缺少lib.so.1依赖。安装zlib.rpm及zlib-devel.rpm即可解决此问题。此版本为zlib-1.2.5版本。Redhat6.0环境可行
  • zlib zlib 压缩算法示例

    2009-05-23 21:05:23
    zlib 压缩算法示例zlib 压缩算法示例zlib 压缩算法示例
  • Zlib模块.ec+Zlib模块.dll

    2019-02-18 09:38:01
    Zlib模块.ec 易语言压对文件或数据进行 解压 压缩的模块
  • ubuntu安装zlibzlib-dev

    千次阅读 2019-11-22 15:11:11
    在ubuntu软件源里zlibzlib-dev叫做zlib1g zlib1g.dev,安装命令如下所示: 【sudo apt-get install zlib1g】 【sudo apt-get install zlib1g.dev】
  • FAQ Frequently Asked Questions about zlib INDEX this file Makefile dummy Makefile that tells you to ./configure Makefile.in template for Unix Makefile README guess what configure configure script for ...
  • Zlib介绍

    2019-10-06 12:58:09
    1. 如何获得zlib  zlib的主页是:http://www.zlib.net/  2. 用VC++6.0打开  把下载的源代码解压打开,VC6.0的工程已经建好了,在projectsvisualc6. 双击zlib.dsw, 可以在VC++6.0中看到里面有3个工程: zlib 是库...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 39,395
精华内容 15,758
关键字:

zlib