dd if=/dev/sdX of=./dump.bin bs=1M
qemu: fatal: Trying to execute code outside RAM or ROM at 0xa5ff00d8
1 βββ [4.0K] game β βββ [ 25G] _00000.BIN βββ [4.3M] i βββ [ 16K] lost+found βββ [ 0] n βββ [8.5M] p βββ [7.8M] u βββ [ 22M] x game/_00000.BIN: data i: data n: empty p: data u: data x: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped 2: βββ [ 16K] lost+found βββ [144K] PIUFESTAEX.INI
00000000 fa 33 c0 8e d0 bc 00 7c 8b f4 50 07 50 1f fb fc |.3.....|..PP..| 00000010 bf 00 06 b9 00 01 f3 a5 ea 1d 06 00 00 b6 00 b9 |................| 00000020 02 00 bf 05 00 bb 00 07 b8 01 02 57 cd 13 5f 73 |...........W.._s| 00000030 0c 33 c0 cd 13 4f 75 ed be 8a 06 eb 3b b9 03 00 |.3...Ou.....;...| 00000040 bf 05 00 bb 00 20 53 07 bb 00 00 b8 20 02 57 cd |..... S..... .W.| 00000050 13 5f 73 0c 33 c0 cd 13 4f 75 e8 be 8a 06 eb 18 |._s.3...Ou......| 00000060 b9 ff 3f be 00 08 33 ff ad 83 e6 bf 26 33 05 ab |..?...3.....&3..| 00000070 49 75 f5 ea 00 00 00 20 ac 3c 00 74 0b 56 bb 07 |Iu..... .<.tV.| 00000080 00 b4 0e cd 10 5e eb f0 eb fe 44 69 73 6b 20 49 |.....^....Disk I| 00000090 2f 4f 20 45 72 72 6f 72 00 00 00 00 00 00 00 00 |/O Error........| 000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000180 28 43 29 32 30 30 34 20 41 4e 44 41 4d 49 52 4f |(C)2004 XXXXXXXX| 00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000001b0 00 00 00 00 00 00 00 00 9b f6 31 c9 00 00 00 00 |..........1.....| 000001c0 41 8f 83 fe ff ff cf ce 61 00 b1 a1 a9 03 00 fe |A.......a.......| 000001d0 ff ff 83 fe ff ff 6f 56 36 04 80 60 1f 00 00 00 |......oV6..`....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.| 00000200 50 75 6d 70 20 49 74 20 55 70 3a 20 46 69 65 73 |Xxxx Xx Xx: Xxxx| 00000210 74 61 45 78 00 00 00 00 00 00 00 00 00 00 00 00 |xxXx............| 00000220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000300 20 20 20 20 20 20 20 20 20 20 20 20 36 56 4d 51 | 6VMQ| 00000310 57 54 34 37 43 43 34 36 20 20 20 20 53 54 33 31 |WT47CC46 ST31| 00000320 36 30 33 31 38 41 53 20 20 20 20 20 20 20 20 20 |60318AS | 00000330 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000400 0e a8 36 bd 22 ac ea 0e a9 36 bb 22 82 66 80 70 |..6."....6.".fp| 00000410 dc 7a 36 37 c8 5d 18 36 ae fa 83 3a 74 d8 35 29 |.z67.].6...:t.5)| 00000420 11 b9 2d 25 1f c8 7d 10 07 c8 7d 21 81 34 07 ae |..-%..}...}!.4..| ...
Description | Data |
Serial number (20 bytes) | (12 spaces) 6VMQWT47 |
Firmware version (8 bytes) | CC46 (4 spaces) |
Model name (40 bytes) | ST3160318AS (29 spaces) |
valdikss@valaptop:~/ % DRIVE_SERIAL=" 6VMQWT47" DRIVE_VERSION="CC46 " DRIVE_MODEL="ST3160318AS" qemu-system-i386 disk.img -monitor stdio QEMU 1.4.1 monitor - type 'help' for more information (qemu) dump-guest-memory mem.bin (qemu) quit
DECIMAL HEX DESCRIPTION ------------------------------------------------------------------------------------------------------------------- 0 0x0 ELF 32-bit LSB core file Intel 80386, version 1 (SYSV) 141888 0x22A40 Copyright string: " 1999-2003 XXXXXXXXxxx" 1649782 0x192C76 CramFS filesystem, little endian size 279239 CRC 0x42c70000, edition 20, 141723904 blocks, 1589959 files 3848752 0x3ABA30 CramFS filesystem, little endian size 4947968 version #2 sorted_dirs CRC 0x9c99ddde, edition 0, 2433 blocks, 235 files 17648271 0x10D4A8F mcrypt 2.2 encrypted data, algorithm: blowfish-448, mode: CBC, keymode: 8bit 17752783 0x10EE2CF mcrypt 2.2 encrypted data, algorithm: blowfish-448, mode: CBC, keymode: 8bit 17773455 0x10F338F mcrypt 2.2 encrypted data, algorithm: blowfish-448, mode: CBC, keymode: 8bit 17966760 0x11226A8 Copyright string: " (C) 1996-2009 the UPX Team. All Rights Reserved. $l Rights Reserved. $" 18179243 0x11564AB Copyright string: " (C) 2009 Free Software Foundation, Inc.ion, Inc." 18236316 0x116439C ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV) 18261064 0x116A448 LZMA compressed data, properties: 0xBD, dictionary size: 16777216 bytes, uncompressed size: 33554432 bytes 18261104 0x116A470 LZMA compressed data, properties: 0xB8, dictionary size: 16777216 bytes, uncompressed size: 33554432 bytes 21033884 0x140F39C ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV) 21061669 0x1416025 ELF 32-bit LSB no file type, no machine, (GNU/Linux) 21088103 0x141C767 ELF 21152544 0x142C320 LZMA compressed data, properties: 0x6C, dictionary size: 16777216 bytes, uncompressed size: 838860800 bytes 21435292 0x147139C ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV) 21525404 0x148739C ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV) 21537692 0x148A39C ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV) 21554076 0x148E39C ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV) 21615281 0x149D2B1 Copyright string: " (C) 2006 Free Software Foundation, Inc.ion, Inc." 21672860 0x14AB39C ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV) 21926836 0x14E93B4 ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV) 110031566 0x68EF2CE gzip compressed data, was "cursor.pcf", from Unix, last modified: Fri Feb 13 07:15:31 2004 116417852 0x6F0653C CramFS filesystem, little endian size 4947968 version #2 CRC 0x86f06160, edition 16777216, 18 blocks, 0 files 121710143 0x741263F LZMA compressed data, properties: 0x87, dictionary size: 1048576 bytes, uncompressed size: 256 bytes 121721756 0x741539C ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV) 122005647 0x745A88F LZMA compressed data, properties: 0x87, dictionary size: 1048576 bytes, uncompressed size: 256 bytes 122594740 0x74EA5B4 LZMA compressed data, properties: 0x7E, dictionary size: 16777216 bytes, uncompressed size: 33554432 bytes 122614684 0x74EF39C CramFS filesystem, little endian size 4947968 version #2 sorted_dirs CRC 0x9c99ddde, edition 0, 2433 blocks, 235 files 129803164 0x7BCA39C CramFS filesystem, little endian size 4947968 version #2 sorted_dirs CRC 0x9c99ddde, edition 0, 2433 blocks, 235 files
valdikss@valaptop:~/ % cramfsck -x root cram1.bin cramfsck: crc error
βββ [4.0K] bin β βββ [ 7] ash -> busybox β βββ [130K] busybox β βββ [ 7] cat -> busybox β βββ [ 7] chmod -> busybox β βββ [ 7] cp -> busybox β βββ [ 7] df -> busybox β βββ [ 7] dnsdomainname -> busybox β βββ [ 7] echo -> busybox β βββ [ 7] false -> busybox β βββ [ 7] hostname -> busybox β βββ [ 7] kill -> busybox β βββ [ 7] ln -> busybox β βββ [ 7] ls -> busybox β βββ [ 7] mkdir -> busybox β βββ [ 7] mknod -> busybox β βββ [ 7] mount -> busybox β βββ [ 7] mv -> busybox β βββ [ 7] netstat -> busybox β βββ [ 7] ping -> busybox β βββ [ 7] ps -> busybox β βββ [ 7] pwd -> busybox β βββ [ 7] rm -> busybox β βββ [ 7] sh -> busybox β βββ [ 7] sleep -> busybox β βββ [ 7] sync -> busybox β βββ [ 7] true -> busybox β βββ [ 7] umount -> busybox β βββ [ 7] uname -> busybox β βββ [ 7] vi -> busybox βββ [4.0K] dev β βββ [ 0] console β βββ [ 0] null β βββ [ 0] tty1 β βββ [ 0] tty2 βββ [4.0K] etc β βββ [4.0K] init.d β β βββ [ 90] mnttab β β βββ [ 754] once β β βββ [ 412] rcS β β βββ [ 244] run β βββ [ 151] inittab β βββ [4.0K] X11 β βββ [ 23] xorg.conf -> /usr/lib/xorg/xorg.conf βββ [4.0K] lib β βββ [111K] ld-2.10.1.so β βββ [ 12] ld-linux.so.2 -> ld-2.10.1.so ... β βββ [ 78K] libz.so.1.2.3 β βββ [4.0K] modules β βββ [ 25K] atkbd.ko βββ [4.0K] mnt β βββ [4.0K] 0 β β βββ [ 0] invalid β βββ [4.0K] 1 β β βββ [ 0] invalid β βββ [4.0K] hd βββ [1.1M] piu βββ [4.0K] proc βββ [4.0K] sbin β βββ [ 14] halt -> ../bin/busybox β βββ [ 14] ifconfig -> ../bin/busybox β βββ [ 14] init -> ../bin/busybox β βββ [ 14] insmod -> ../bin/busybox β βββ [ 14] lsmod -> ../bin/busybox β βββ [ 14] mdev -> ../bin/busybox β βββ [ 14] poweroff -> ../bin/busybox β βββ [ 14] reboot -> ../bin/busybox β βββ [ 14] route -> ../bin/busybox βββ [4.0K] SETTINGS βββ [4.0K] sys βββ [ 4] tmp -> /var βββ [4.0K] usr β βββ [4.0K] bin β β βββ [ 18K] amixer β β βββ [ 17] du -> ../../bin/busybox β β βββ [ 17] env -> ../../bin/busybox β β βββ [ 17] free -> ../../bin/busybox β β βββ [ 17] less -> ../../bin/busybox β β βββ [4.4K] mountrd β β βββ [4.6K] mount_tab β β βββ [ 17] telnet -> ../../bin/busybox β β βββ [ 25K] usbdaemon β β βββ [ 4] X -> Xorg β β βββ [ 14K] xinit β β βββ [1.7M] Xorg β βββ [4.0K] lib β βββ [4.0K] sbin β β βββ [ 17] setlogcons -> ../../bin/busybox β βββ [4.0K] share β β βββ [4.0K] alsa β β β βββ [8.8K] alsa.conf β β β βββ [4.0K] cards β β β β βββ [ 669] AACI.conf β β β β βββ [ 687] aliases.alisp β... β β β β βββ [ 839] VXPocket.conf β β β β βββ [1.3K] YMF744.conf β β β βββ [4.0K] init β β β β βββ [1.8K] 00main β β β β βββ [6.9K] default β β β β βββ [1.4K] hda β β β β βββ [ 391] help β β β β βββ [ 932] info β β β β βββ [ 11K] test β β β βββ [4.0K] pcm β β β βββ [ 805] center_lfe.conf ... β β β βββ [ 978] surround71.conf β β βββ [4.0K] X11 β β βββ [4.0K] xkb β β βββ [4.0K] compiled β β β βββ [ 11K] server.xkm β β βββ [4.0K] rules β β βββ [ 34K] base β β βββ [ 31K] evdev β β βββ [ 4] xorg -> base β βββ [ 4] var -> /var βββ [4.0K] var
echo run export __GL_SYNC_TO_VBLANK=1 export force_s3tc_enable=true export LD_LIBRARY_PATH=/lib:/usr/lib:/mnt/hd/lib cd /mnt/hd/game xinit /piu /mnt/hd/game/ -- -br -quiet -logverbose 0 -verbose 0 -depth 24 -audit 0 -bs -tst -xinerama #/bin/sh
until /usr/bin/mount_tab /etc/init.d/mnttab; do sleep 1; done /usr/bin/mountrd insmod /usr/lib/modules/nvidia.ko insmod /usr/lib/modules/drm.ko insmod /usr/lib/modules/fb.ko insmod /usr/lib/modules/font.ko insmod /usr/lib/modules/softcursor.ko insmod /usr/lib/modules/bitblit.ko insmod /usr/lib/modules/fbcon.ko insmod /usr/lib/modules/drm_kms_helper.ko insmod /usr/lib/modules/cfbcopyarea.ko insmod /usr/lib/modules/cfbimgblt.ko insmod /usr/lib/modules/cfbfillrect.ko insmod /usr/lib/modules/i915.ko mkdir /dev/dri ln -s /dev/card0 /dev/dri/card0 /usr/bin/usbdaemon amixer set Master 80% unmute amixer set PCM 75% unmute amixer set Front 90% unmute insmod /lib/modules/atkbd.ko
setlogcons 2 mount -n -t tmpfs -o size=128k var /var mkdir /var/log mkdir /var/run mkdir /var/run/microdog mount -t sysfs sysfs /sys mount -t proc proc /proc mount -t usbfs none /proc/bus/usb mount -t tmpfs mdev /dev mkdir /dev/pts mount -t devpts devpts /dev/pts echo /sbin/mdev > /proc/sys/kernel/hotplug mdev -s mkdir /dev/snd cp -a /dev/controlC* /dev/snd cp -a /dev/pcmC* /dev/snd cp -a /dev/timer /dev/snd
Source: https://habr.com/ru/post/179067/
All Articles