From nobody Fri Feb 25 17:06:00 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2908619E060B for ; Fri, 25 Feb 2022 17:06:11 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K4x4f2J43z4mml for ; Fri, 25 Feb 2022 17:06:10 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 21PH60RX061033 for ; Fri, 25 Feb 2022 10:06:00 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Subject: Re: chexedit, dhex, ghex hexcurse... output looks weird To: questions@freebsd.org References: Reply-To: freebsd@dreamchaser.org From: Gary Aitken Message-ID: <91c41c72-d5a4-7fca-ae56-ea5666096ae9@dreamchaser.org> Date: Fri, 25 Feb 2022 10:06:00 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Fri, 25 Feb 2022 10:06:00 -0700 (MST) X-Rspamd-Queue-Id: 4K4x4f2J43z4mml X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-3.29 / 15.00]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_NONE(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_NA(0.00)[dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[questions]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Duh. Turns out the "cat" (a.k.a. me) had walked on the keyboard, replaced some characters, and mistakenly saved the file. On 2/23/22 5:17 PM, Gary Aitken wrote: > So, I must be dumb...  The display of the hex editors I've checked so far > doesn't seem to match the display from hexdump. > > hexdump output: > > 00000b0  0017 f000 001e 1b00 7628 0004 007e 0000 > 00000c0  691b 0112 1402 010a b600 8100 8110 8110 > > The above looks right to me, given its little-endian order and what I know > about the contents of the file. > > here's what I see in chexedit, dhex, and ghex: > > 000000B0  20 20 20 20  72 65 73 65   74 0A 30 30  30 30 30 30       reset.000000 > 000000C0  31 64 20 20  31 62 20 20   40 20 20 20  20 20 20 20   1d  1b  @ > > Can someone enlighten me?