⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upx.html

📁 压缩exe,dll,不错啊 压缩exe,dll,不错啊 压缩exe,dll,不错啊
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>upx - compress or expand executable files</title><link rev="made" href="mailto:root@localhost" /></head><body style="background-color: white"><p><a name="__index__"></a></p><!-- INDEX BEGIN --><!--<ul>	<li><a href="#name">NAME</a></li>	<li><a href="#synopsis">SYNOPSIS</a></li>	<li><a href="#abstract">ABSTRACT</a></li>	<li><a href="#disclaimer">DISCLAIMER</a></li>	<li><a href="#description">DESCRIPTION</a></li>	<li><a href="#commands">COMMANDS</a></li>	<ul>		<li><a href="#compress">Compress</a></li>		<li><a href="#decompress">Decompress</a></li>		<li><a href="#test">Test</a></li>		<li><a href="#list">List</a></li>	</ul>	<li><a href="#options">OPTIONS</a></li>	<li><a href="#compression_levels___tuning">COMPRESSION LEVELS &amp; TUNING</a></li>	<li><a href="#overlay_handling_options">OVERLAY HANDLING OPTIONS</a></li>	<li><a href="#environment">ENVIRONMENT</a></li>	<li><a href="#notes_for_the_supported_executable_formats">NOTES FOR THE SUPPORTED EXECUTABLE FORMATS</a></li>	<ul>		<li><a href="#notes_for_atari_tos">NOTES FOR ATARI/TOS</a></li>		<li><a href="#notes_for_bvmlinuz_i386">NOTES FOR BVMLINUZ/I386</a></li>		<li><a href="#notes_for_dos_com">NOTES FOR DOS/COM</a></li>		<li><a href="#notes_for_dos_exe">NOTES FOR DOS/EXE</a></li>		<li><a href="#notes_for_dos_sys">NOTES FOR DOS/SYS</a></li>		<li><a href="#notes_for_djgpp2_coff">NOTES FOR DJGPP2/COFF</a></li>		<li><a href="#notes_for_linux__general_">NOTES FOR LINUX [general]</a></li>		<li><a href="#notes_for_linux_elf386">NOTES FOR LINUX/ELF386</a></li>		<li><a href="#notes_for_linux_sh386">NOTES FOR LINUX/SH386</a></li>		<li><a href="#notes_for_linux_386">NOTES FOR LINUX/386</a></li>		<li><a href="#notes_for_ps1_exe">NOTES FOR PS1/EXE</a></li>		<li><a href="#notes_for_rtm32_pe">NOTES FOR RTM32/PE</a></li>		<li><a href="#notes_for_tmt_adam">NOTES FOR TMT/ADAM</a></li>		<li><a href="#notes_for_vmlinuz_386">NOTES FOR VMLINUZ/386</a></li>		<li><a href="#notes_for_watcom_le">NOTES FOR WATCOM/LE</a></li>		<li><a href="#notes_for_win32_pe">NOTES FOR WIN32/PE</a></li>	</ul>	<li><a href="#diagnostics">DIAGNOSTICS</a></li>	<li><a href="#bugs">BUGS</a></li>	<li><a href="#authors">AUTHORS</a></li>	<li><a href="#copyright">COPYRIGHT</a></li></ul>--><!-- INDEX END --><p></p><h1><a name="name">NAME</a></h1><p>upx - compress or expand executable files</p><p></p><hr /><h1><a name="synopsis">SYNOPSIS</a></h1><p><strong>upx</strong> [&nbsp;<em>command</em>&nbsp;] [&nbsp;<em>options</em>&nbsp;] <em>filename</em>...</p><p></p><hr /><h1><a name="abstract">ABSTRACT</a></h1><pre>            The Ultimate Packer for eXecutables  Copyright (c) 1996-2004 Markus Oberhumer &amp; Laszlo Molnar               <a href="http://upx.sourceforge.net">http://upx.sourceforge.net</a></pre><p><strong>UPX</strong> is a portable, extendable, high-performance executable packer forseveral different executable formats. It achieves an excellent compressionratio and offers <em>*very*</em> fast decompression. Your executables sufferno memory overhead or other drawbacks for most of the formats supported,because of in-place decompression.</p><p>While you may use <strong>UPX</strong> freely for both non-commercial and commercialexecutables (for details see the file LICENSE), we would highlyappreciate if you credit <strong>UPX</strong> and ourselves in the documentation,possibly including a reference to the <strong>UPX</strong> home page. Thanks.</p><p>[ Using <strong>UPX</strong> in non-OpenSource applications without proper creditsis considered not politically correct ;-) ]</p><p></p><hr /><h1><a name="disclaimer">DISCLAIMER</a></h1><p><strong>UPX</strong> comes with ABSOLUTELY NO WARRANTY; for details see the file LICENSE.</p><p>This is the first production quality release, and we plan that future 1.xxreleases will be backward compatible with this version.</p><p>Please report all problems or suggestions to the authors. Thanks.</p><p></p><hr /><h1><a name="description">DESCRIPTION</a></h1><p><strong>UPX</strong> is a versatile executable packer with the following features:</p><pre>  - excellent compression ratio: compresses better than zip/gzip,      use UPX to decrease the size of your distribution !</pre><pre>  - very fast decompression: about 10 MB/sec on an ancient Pentium 133,      about 200 MB/sec on an Athlon XP 2000+.</pre><pre>  - no memory overhead for your compressed executables for most of the      supported formats</pre><pre>  - safe: you can list, test and unpack your executables      Also, a checksum of both the compressed and uncompressed file is      maintained internally.</pre><pre>  - universal: UPX can pack a number of executable formats:      * atari/tos      * bvmlinuz/386    [bootable Linux kernel]      * djgpp2/coff      * dos/com      * dos/exe      * dos/sys      * linux/386      * linux/elf386      * linux/sh386      * ps1/exe      * rtm32/pe      * tmt/adam      * vmlinuz/386     [bootable Linux kernel]      * watcom/le (supporting DOS4G, PMODE/W, DOS32a and CauseWay)      * win32/pe</pre><pre>  - portable: UPX is written in portable endian-neutral C++</pre><pre>  - extendable: because of the class layout it's very easy to support      new executable formats or add new compression algorithms</pre><pre>  - free: UPX can be distributed and used freely. And from version 0.99      the full source code of UPX is released under the GNU General Public      License (GPL) !</pre><p>You probably understand now why we call <strong>UPX</strong> the ``<em>ultimate</em>''executable packer.</p><p></p><hr /><h1><a name="commands">COMMANDS</a></h1><p></p><h2><a name="compress">Compress</a></h2><p>This is the default operation, eg. <strong>upx yourfile.exe</strong> will compress the filespecified on the command line.</p><p></p><h2><a name="decompress">Decompress</a></h2><p>All <strong>UPX</strong> supported file formats can be unpacked using the <strong>-d</strong> switch, eg.<strong>upx -d yourfile.exe</strong> will uncompress the file you've just compressed.</p><p></p><h2><a name="test">Test</a></h2><p>The <strong>-t</strong> command tests the integrity of the compressed and uncompresseddata, eg. <strong>upx -t yourfile.exe</strong> check whether your file can be safelydecompressed. Note, that this command doesn't check the whole file, onlythe part that will be uncompressed during program execution. This meansthat you should not use this command instead of a virus checker.</p><p></p><h2><a name="list">List</a></h2><p>The <strong>-l</strong> command prints out some information about the compressed filesspecified on the command line as parameters, eg <strong>upx -l yourfile.exe</strong>shows the compressed / uncompressed size and the compression ratio of<em>yourfile.exe</em>.</p><p></p><hr /><h1><a name="options">OPTIONS</a></h1><p><strong>-q</strong>: be quiet, suppress warnings</p><p><strong>-q -q</strong> (or <strong>-qq</strong>): be very quiet, suppress errors</p><p><strong>-q -q -q</strong> (or <strong>-qqq</strong>): produce no output at all</p><p><strong>--help</strong>: prints the help</p><p><strong>--version</strong>: print the version of <strong>UPX</strong></p><p>[ ...to be written... - type `<strong>upx --help</strong>' for now ]</p><p></p><hr /><h1><a name="compression_levels___tuning">COMPRESSION LEVELS &amp; TUNING</a></h1><p><strong>UPX</strong> offers ten different compression levels from <strong>-1</strong> to <strong>-9</strong>,and <strong>--best</strong>.  The default compression level is <strong>-8</strong> for filessmaller than 512 kB, and <strong>-7</strong> otherwise.</p><ul><li></li>Compression levels 1, 2 and 3 are pretty fast.<p></p><li></li>Compression levels 4, 5 and 6 achieve a good time/ratio performance.<p></p><li></li>Compression levels 7, 8 and 9 favor compression ratio over speed.<p></p><li></li>Compression level <strong>--best</strong> may take a long time.<p></p></ul><p>Note that compression level <strong>--best</strong> can be somewhat slow for largefiles, but you definitely should use it when releasing a final versionof your program.</p><p>Quick start for achieving the best compression ratio:</p><p>Try <strong>upx --brute myfile.exe</strong>.</p><p>Details for achieving the best compression ratio:</p><ul><li></li>Use the compression level <strong>--best</strong>.<p></p><li></li>Try one or both of the options <strong>--all-methods</strong> and <strong>--all-filters</strong>.<p></p><li></li>Try the option <strong>--crp-ms=NUMBER</strong>. This uses more memory during compressionto achieve a (slightly) better compression ratio.<p>NUMBER must be a decimal value from 10000 to 999999, inclusive.The default value is 10000 (ten thousand).</p><p></p><li></li>Info: the option <strong>--brute</strong> is an abbrevation for the options<strong>--best --all-methods --all-filters --crp-ms=999999</strong>.<p></p><li></li>Try if <strong>--overlay=strip</strong> works.<p></p><li></li>For win32/pe programs there's <strong>--strip-relocs=0</strong>. See notes below.<p></p></ul><p></p><hr /><h1><a name="overlay_handling_options">OVERLAY HANDLING OPTIONS</a></h1><p>Info: An ``overlay'' means auxillary data atached after the logical end ofan executable, and it often contains application specific data(this is a common practice to avoid an extra data file, thoughit would be better to use resource sections).</p><p><strong>UPX</strong> handles overlays like many other executable packers do: it simplycopies the overlay after the compressed image. This works with somefiles, but doesn't work with others, depending on how an applicationactually accesses this overlayed data.</p><p>Since version 0.90 UPX defaults to <strong>--overlay=copy</strong> forall executable formats.</p><pre>  --overlay=copy    Copy any extra data attached to the file. [DEFAULT]</pre><pre>  --overlay=strip   Strip any overlay from the program instead of                    copying it. Be warned, this may make the compressed                    program crash or otherwise unusable.</pre><pre>  --overlay=skip    Refuse to compress any program which has an overlay.</pre><p></p><hr /><h1><a name="environment">ENVIRONMENT</a></h1><p>The environment variable <strong>UPX</strong> can hold a set of defaultoptions for <strong>UPX</strong>. These options are interpreted first andcan be overwritten by explicit command line parameters.For example:</p><pre>    for DOS/Windows:   set UPX=-9 --compress-icons#0    for sh/ksh/zsh:    UPX=&quot;-9 --compress-icons=0&quot;; export UPX    for csh/tcsh:      setenv UPX &quot;-9 --compress-icons=0&quot;</pre><p>Under DOS/Windows you must use '#' instead of '=' when setting theenvironment variable because of a COMMAND.COM limitation.</p><p>Not all of the options are valid in the environment variable -<strong>UPX</strong> will tell you.</p><p>You can explicitly use the <strong>--no-env</strong> option to ignore theenvironment variable.</p><p></p><hr /><h1><a name="notes_for_the_supported_executable_formats">NOTES FOR THE SUPPORTED EXECUTABLE FORMATS</a></h1><p></p><h2><a name="notes_for_atari_tos">NOTES FOR ATARI/TOS</a></h2><p>This is the executable format used by the Atari ST/TT, a Motorola 68000based personal computer which was popular in the late '80s. Supportof this format is only because of nostalgic feelings of one ofthe authors and serves no practical purpose :-).See <a href="http://www.freemint.de">http://www.freemint.de</a> for more info.</p><p>Packed programs will be byte-identical to the original after uncompression.All debug information will be stripped, though.</p><p>Extra options available for this executable format:</p><pre>  --all-methods       Compress the program several times, using all

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -