stubs *.elf-main.c: tighten input to first decompress of ELF headers

modified:   stub/src/amd64-linux.elf-main.c
	modified:   stub/src/i386-linux.elf-main.c
	also .h, .map
This commit is contained in:
John Reiser
2017-10-14 06:21:44 -07:00
parent a3e51e6dee
commit ad3f63b5c4
12 changed files with 505 additions and 498 deletions
+23 -23
View File
@@ -1,5 +1,5 @@
/* amd64-linux.elf-fold.h
created from amd64-linux.elf-fold.bin, 2149 (0x865) bytes
created from amd64-linux.elf-fold.bin, 2153 (0x869) bytes
This file is part of the UPX executable compressor.
@@ -31,20 +31,20 @@
*/
#define STUB_AMD64_LINUX_ELF_FOLD_SIZE 2149
#define STUB_AMD64_LINUX_ELF_FOLD_ADLER32 0x3e782201
#define STUB_AMD64_LINUX_ELF_FOLD_CRC32 0x0980a7d1
#define STUB_AMD64_LINUX_ELF_FOLD_SIZE 2153
#define STUB_AMD64_LINUX_ELF_FOLD_ADLER32 0xdb502380
#define STUB_AMD64_LINUX_ELF_FOLD_CRC32 0xc1f45ed9
unsigned char stub_amd64_linux_elf_fold[2149] = {
unsigned char stub_amd64_linux_elf_fold[2153] = {
/* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0010 */ 2, 0, 62, 0, 1, 0, 0, 0,188, 0, 16, 0, 0, 0, 0, 0,
/* 0x0020 */ 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0030 */ 0, 0, 0, 0, 64, 0, 56, 0, 2, 0, 0, 0, 0, 0, 0, 0,
/* 0x0040 */ 1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0050 */ 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
/* 0x0060 */ 101, 8, 0, 0, 0, 0, 0, 0,104, 8, 0, 0, 0, 0, 0, 0,
/* 0x0060 */ 105, 8, 0, 0, 0, 0, 0, 0,108, 8, 0, 0, 0, 0, 0, 0,
/* 0x0070 */ 0, 0, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 101, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 105, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0090 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x00a0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
/* 0x00b0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,232, 89, 0, 0,
@@ -155,20 +155,20 @@ unsigned char stub_amd64_linux_elf_fold[2149] = {
/* 0x0740 */ 72,139, 7, 72,137,124, 36, 24, 72,137,124, 36, 40, 76,141,188,
/* 0x0750 */ 36,128, 0, 0, 0, 72,137,116, 36, 32, 72,141,116, 36, 48, 72,
/* 0x0760 */ 137, 84, 36, 56, 76,137,194, 72,137, 68, 36, 48,139, 71, 4, 72,
/* 0x0770 */ 141,124, 36, 16, 72,137, 68, 36, 16,232, 6,251,255,255, 65, 83,
/* 0x0780 */ 77,137,225, 49,210, 73,137,216, 76,137,241, 72,137,239, 72,141,
/* 0x0790 */ 116, 36, 40, 65, 87,232, 45,252,255,255,190, 9, 0, 0, 0, 72,
/* 0x07a0 */ 137,194, 76,137,247, 73,137,196,232,232,251,255,255, 65, 89, 65,
/* 0x07b0 */ 90,102,131,125, 56, 0,199, 68, 36, 12, 0, 0, 0, 0, 15,132,
/* 0x07c0 */ 143, 0, 0, 0, 65,131,125, 0, 3,117,114, 73,139, 63, 73, 3,
/* 0x07d0 */ 125, 16, 49,210, 49,246,232, 91,250,255,255,133,192,137,195,120,
/* 0x07e0 */ 23,186, 0, 4, 0, 0, 72,137,238,137,199,232, 86,250,255,255,
/* 0x07f0 */ 72, 61, 0, 4, 0, 0,116, 10,191,127, 0, 0, 0,232, 40,250,
/* 0x0800 */ 255,255, 73,199, 7, 0, 0, 0, 0, 65, 80, 69, 49,201, 69, 49,
/* 0x0810 */ 192, 49,201, 65, 87,137,218, 49,246, 72,137,239,232,166,251,255,
/* 0x0820 */ 255, 73,139, 23,190, 7, 0, 0, 0, 76,137,247, 73,137,196,232,
/* 0x0830 */ 97,251,255,255,137,223,232,247,249,255,255, 94, 95,255, 68, 36,
/* 0x0840 */ 12, 15,183, 69, 56, 73,131,197, 56, 57, 68, 36, 12, 15,130,113,
/* 0x0850 */ 255,255,255, 72,131,196, 72, 76,137,224, 91, 93, 65, 92, 65, 93,
/* 0x0860 */ 65, 94, 65, 95,195
/* 0x0770 */ 141,124, 36, 16, 72,131,192, 12, 72,137, 68, 36, 16,232, 2,251,
/* 0x0780 */ 255,255, 65, 83, 77,137,225, 49,210, 73,137,216, 76,137,241, 72,
/* 0x0790 */ 137,239, 72,141,116, 36, 40, 65, 87,232, 41,252,255,255,190, 9,
/* 0x07a0 */ 0, 0, 0, 72,137,194, 76,137,247, 73,137,196,232,228,251,255,
/* 0x07b0 */ 255, 65, 89, 65, 90,102,131,125, 56, 0,199, 68, 36, 12, 0, 0,
/* 0x07c0 */ 0, 0, 15,132,143, 0, 0, 0, 65,131,125, 0, 3,117,114, 73,
/* 0x07d0 */ 139, 63, 73, 3,125, 16, 49,210, 49,246,232, 87,250,255,255,133,
/* 0x07e0 */ 192,137,195,120, 23,186, 0, 4, 0, 0, 72,137,238,137,199,232,
/* 0x07f0 */ 82,250,255,255, 72, 61, 0, 4, 0, 0,116, 10,191,127, 0, 0,
/* 0x0800 */ 0,232, 36,250,255,255, 73,199, 7, 0, 0, 0, 0, 65, 80, 69,
/* 0x0810 */ 49,201, 69, 49,192, 49,201, 65, 87,137,218, 49,246, 72,137,239,
/* 0x0820 */ 232,162,251,255,255, 73,139, 23,190, 7, 0, 0, 0, 76,137,247,
/* 0x0830 */ 73,137,196,232, 93,251,255,255,137,223,232,243,249,255,255, 94,
/* 0x0840 */ 95,255, 68, 36, 12, 15,183, 69, 56, 73,131,197, 56, 57, 68, 36,
/* 0x0850 */ 12, 15,130,113,255,255,255, 72,131,196, 72, 76,137,224, 91, 93,
/* 0x0860 */ 65, 92, 65, 93, 65, 94, 65, 95,195
};