T-vK / DellBiosUnpackerPOC

Script that unpacks a Dell XPS BIOS so that VBiosFinder can extract the vBIOS ROMs from it
10 stars 1 forks source link

Can't open input file ./unpack.sh: line 21: cd: BIOS_Inspiron.exe_decompressed.hdr.extracted: No such file or directory ##################### #1

Closed wheelloader closed 2 years ago

wheelloader commented 2 years ago

Hi, I want to extract my vbios Dell Laptop 7567. I tried using DellBiosUnpacker and come with error even using your XPS Bios file. Please see below

` fariz@fariz-Inspiron-15-7000-Gaming:~/Documents/DellBiosUnpackerPOC-master$ sudo ./unpack.sh BIOS_Inspiron.exe [sudo] password for fariz: Building native extensions. This could take a while... Successfully installed zlib-2.1.1 Parsing documentation for zlib-2.1.1 Done installing documentation for zlib after 0 seconds Successfully installed hex_string-1.0.1 Parsing documentation for hex_string-1.0.1 Done installing documentation for hex_string after 0 seconds 2 gems installed Decompressed data written to BIOS_Inspiron.exe_decompressed.hdr Cloning into 'PFSExtractor'... remote: Enumerating objects: 11, done. remote: Total 11 (delta 0), reused 0 (delta 0), pack-reused 11 Receiving objects: 100% (11/11), 5.34 KiB 5.34 MiB/s, done. Resolving deltas: 100% (2/2), done. -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/fariz/Documents/DellBiosUnpackerPOC-master/PFSExtractor Scanning dependencies of target PFSExtractor [ 50%] Building CXX object CMakeFiles/PFSExtractor.dir/pfsextractor.cpp.o /home/fariz/Documents/DellBiosUnpackerPOC-master/PFSExtractor/pfsextractor.cpp: In function ‘uint8_t pfs_extract(const void, size_t, const char)’: /home/fariz/Documents/DellBiosUnpackerPOC-master/PFSExtractor/pfsextractor.cpp:158:43: warning: format ‘%llX’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 158 printf("PFS %s Header:\nSignature: %llX\nVersion: %X\nDataSize: %X\n\n", ~~~^
long long unsigned int
%lX
159 isSubsection ? "Subsection File" : "File",
160 fileHeader->Signature,
~~~~~
long unsigned int
/home/fariz/Documents/DellBiosUnpackerPOC-master/PFSExtractor/pfsextractor.cpp:184:43: warning: format ‘%llX’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] 184 printf("PFS %s Footer:\nSignature: %llX\nChecksum: %X\nDataSize: %X\n\n", ~~~^
long long unsigned int
%lX
185 isSubsection ? "Subsection File" : "File",
186 fileFooter->Signature,
~~~~~
long unsigned int

[100%] Linking CXX executable PFSExtractor [100%] Built target PFSExtractor Can't open input file ./unpack.sh: line 21: cd: BIOS_Inspiron.exe_decompressed.hdr.extracted: No such file or directory ##################### ##################### ##################### Please adjust the path to your VBiosFinder installation otherwise the following will fail: ##################### ##################### ##################### ./unpack.sh: line 34: cd: /home/fedora/Projects/misc/VBiosFinder: No such file or directory ./unpack.sh: line 35: ./vbiosfinder: No such file or directory fariz@fariz-Inspiron-15-7000-Gaming:~/Documents/DellBiosUnpackerPOC-master$ ^C fariz@fariz-Inspiron-15-7000-Gaming:~/Documents/DellBiosUnpackerPOC-master$

` I dont know what's wrong. I use Ubuntu 21.10. It look it's fail to decompress hdr extracted file. even it's succes built hdr file. I hope you can help with my issue.

Thank you.

T-vK commented 2 years ago

Sorry, it was a path issue in unpack.sh. Should be fixed now. If not, feel free to reopen.