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
+30 -30
View File
@@ -1,5 +1,5 @@
/* arm64-linux.elf-fold.h
created from arm64-linux.elf-fold.bin, 2536 (0x9e8) bytes
created from arm64-linux.elf-fold.bin, 2540 (0x9ec) bytes
This file is part of the UPX executable compressor.
@@ -31,20 +31,20 @@
*/
#define STUB_ARM64_LINUX_ELF_FOLD_SIZE 2536
#define STUB_ARM64_LINUX_ELF_FOLD_ADLER32 0xc76f825d
#define STUB_ARM64_LINUX_ELF_FOLD_CRC32 0xd99a5039
#define STUB_ARM64_LINUX_ELF_FOLD_SIZE 2540
#define STUB_ARM64_LINUX_ELF_FOLD_ADLER32 0x5dfa8386
#define STUB_ARM64_LINUX_ELF_FOLD_CRC32 0x1a08abd6
unsigned char stub_arm64_linux_elf_fold[2536] = {
unsigned char stub_arm64_linux_elf_fold[2540] = {
/* 0x0000 */ 127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0010 */ 2, 0,183, 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 */ 232, 9, 0, 0, 0, 0, 0, 0,232, 9, 0, 0, 0, 0, 0, 0,
/* 0x0060 */ 236, 9, 0, 0, 0, 0, 0, 0,236, 9, 0, 0, 0, 0, 0, 0,
/* 0x0070 */ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 232, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x0080 */ 236, 9, 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, 1, 0, 0, 0, 0, 0,
/* 0x00b0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,128,146,
@@ -172,27 +172,27 @@ unsigned char stub_arm64_linux_elf_fold[2536] = {
/* 0x0850 */ 247, 99, 67,169,234, 47, 71,109,249,107, 68,169,236, 55, 72,109,
/* 0x0860 */ 251,115, 69,169, 19, 0, 0,249,238, 75, 64,253,160, 14, 64,249,
/* 0x0870 */ 245, 91, 66,169, 96, 2, 0,139,243, 83, 65,169,253,123,204,168,
/* 0x0880 */ 192, 3, 95,214,253,123,182,169,253, 3, 0,145,243, 83, 1,169,
/* 0x0890 */ 243, 3, 2,170,249, 35, 0,249,162, 63, 0,249,249, 3, 7,170,
/* 0x08a0 */ 2, 0, 64,185,116, 2, 1,145,162, 59, 0,249, 2, 4, 64,185,
/* 0x08b0 */ 247, 99, 3,169,160, 79, 0,249,247, 3, 3,170,162, 75, 0,249,
/* 0x08c0 */ 3, 0,128,210,226, 3, 4,170,160, 71, 0,249,161, 67, 0,249,
/* 0x08d0 */ 160, 67, 2,145,161,195, 1,145,165, 47, 0,249,245, 91, 2,169,
/* 0x08e0 */ 166, 55, 0,249, 22, 0,128, 82,164, 51, 0,249,167,254,255,151,
/* 0x08f0 */ 164, 51, 64,249,161, 3, 2,145,165, 47, 64,249, 2, 0,128, 82,
/* 0x0900 */ 227, 3, 23,170,166,163, 1,145,231, 3, 25,170,224, 3, 19,170,
/* 0x0910 */ 240,254,255,151,245, 3, 0,170, 33, 1,128, 82,224, 3, 23,170,
/* 0x0920 */ 226, 3, 21,170,116,254,255,151, 96,114, 64,121,223, 2, 0,107,
/* 0x0930 */ 226, 4, 0, 84,128, 2, 64,185, 31, 12, 0,113, 33, 4, 0, 84,
/* 0x0940 */ 129, 10, 64,249,160, 55, 64,249, 32, 0, 0,139, 1, 0,128, 82,
/* 0x0950 */ 226, 3, 1, 42, 92,254,255,151,248, 3, 0, 42, 96, 0,248, 54,
/* 0x0960 */ 224, 15,128, 82, 51,254,255,151,225, 3, 19,170, 2,128,128,210,
/* 0x0970 */ 50,254,255,151, 31, 0, 16,241, 65,255,255, 84, 1, 0,128,210,
/* 0x0980 */ 226, 3, 24, 42,227, 3, 1,170,228, 3, 1,170,229, 3, 1,170,
/* 0x0990 */ 166,163, 1,145,231, 3, 25,170,224, 3, 19,170,191, 55, 0,249,
/* 0x09a0 */ 204,254,255,151,245, 3, 0,170,162, 55, 64,249,224, 3, 23,170,
/* 0x09b0 */ 225, 0,128, 82, 80,254,255,151,224, 3, 24, 42, 37,254,255,151,
/* 0x09c0 */ 148,226, 0,145,214, 6, 0, 17,216,255,255, 23,224, 3, 21,170,
/* 0x09d0 */ 249, 35, 64,249,243, 83, 65,169,245, 91, 66,169,247, 99, 67,169,
/* 0x09e0 */ 253,123,202,168,192, 3, 95,214
/* 0x0880 */ 192, 3, 95,214,253,123,182,169,253, 3, 0,145,247, 99, 3,169,
/* 0x0890 */ 247, 3, 3,170, 3, 4, 64,185,243, 83, 1,169,162, 63, 0,249,
/* 0x08a0 */ 243, 3, 2,170, 99, 48, 0,145, 2, 0, 64,185,162, 59, 0,249,
/* 0x08b0 */ 226, 3, 4,170,160, 79, 0,249,116, 2, 1,145,163, 75, 0,249,
/* 0x08c0 */ 3, 0,128,210,160, 71, 0,249,160, 67, 2,145,161, 67, 0,249,
/* 0x08d0 */ 161,195, 1,145,245, 91, 2,169,249, 35, 0,249,249, 3, 7,170,
/* 0x08e0 */ 165, 47, 0,249, 22, 0,128, 82,166, 55, 0,249,164, 51, 0,249,
/* 0x08f0 */ 166,254,255,151,164, 51, 64,249,161, 3, 2,145,165, 47, 64,249,
/* 0x0900 */ 2, 0,128, 82,227, 3, 23,170,166,163, 1,145,231, 3, 25,170,
/* 0x0910 */ 224, 3, 19,170,239,254,255,151,245, 3, 0,170, 33, 1,128, 82,
/* 0x0920 */ 224, 3, 23,170,226, 3, 21,170,115,254,255,151, 96,114, 64,121,
/* 0x0930 */ 223, 2, 0,107,226, 4, 0, 84,128, 2, 64,185, 31, 12, 0,113,
/* 0x0940 */ 33, 4, 0, 84,129, 10, 64,249,160, 55, 64,249, 32, 0, 0,139,
/* 0x0950 */ 1, 0,128, 82,226, 3, 1, 42, 91,254,255,151,248, 3, 0, 42,
/* 0x0960 */ 96, 0,248, 54,224, 15,128, 82, 50,254,255,151,225, 3, 19,170,
/* 0x0970 */ 2,128,128,210, 49,254,255,151, 31, 0, 16,241, 65,255,255, 84,
/* 0x0980 */ 1, 0,128,210,226, 3, 24, 42,227, 3, 1,170,228, 3, 1,170,
/* 0x0990 */ 229, 3, 1,170,166,163, 1,145,231, 3, 25,170,224, 3, 19,170,
/* 0x09a0 */ 191, 55, 0,249,203,254,255,151,245, 3, 0,170,162, 55, 64,249,
/* 0x09b0 */ 224, 3, 23,170,225, 0,128, 82, 79,254,255,151,224, 3, 24, 42,
/* 0x09c0 */ 36,254,255,151,148,226, 0,145,214, 6, 0, 17,216,255,255, 23,
/* 0x09d0 */ 224, 3, 21,170,249, 35, 64,249,243, 83, 65,169,245, 91, 66,169,
/* 0x09e0 */ 247, 99, 67,169,253,123,202,168,192, 3, 95,214
};