Scan-n-Patch


Rendering Error in layout Widget/Social: Call to a member function exists() on null. Please enable debug mode for more information.
More
8 years 1 month ago - 8 years 1 month ago #2935 by Dark_Rye
Scan-n-Patch was created by Dark_Rye
Salutations!

I'm running on a RPi and Macbook Pro (dump EFIs on the Pi and edit them on the MBP for speed). I'm having trouble using the new automated patcher (version 0-2beta).

The script successfully identities the regions, but then returns the following as both root and admin:
MacBook-Pro:~ user$ /Users/user/Desktop/scan-n-patch/scan-n-patch.0-2beta\ \(1\)/scan-n-patch.pl /Users/user/Desktop/scan-n-patch/Hacked.bin 
System byteorder: Little Endian
Mode: Only scanning = 0, Silent = 0
ROM: /Users/user/Desktop/scan-n-patch/Hacked.bin
Intel BIOS signature found
Apple Specific Data block start found at:       0x00610000  
Scanner should find first var within 2048 bytes of data... 
'PchInit' usually... or 'Setup'
	Variable at:  0x00610060 RFT: 2, Sizes (Key: 16 Value: 4)
	GUID: 0af7c2e604b6774885badeec89e117eb  at: 0x00610070 (6357104)
	Key: PchInit 	Value: 00f0fd8c 
====                                                       
File size: 0x007fffff (8388608) bytes. Record format type 2 detected
Image for 8 Mbytes flash chip

= Calculated SVS start offset: 0x00632050 (6496336)=
SVS: 24535653b01f00005afefe0100000000
==		Match stamp type: 2
= Calculated SVS end offset: 0x00634050 (6504528)=
SVS: 24535653b01f00005afefe0100000000
==		Match stamp type: 2
Password area looks fine...  Password is set or was set. 
Password record parsing... 
GUID: 5ea78df6551b704eb41ba7b7a5b758ea offset: 0x00632070 (6496368)
	State: 7f00, Key: 3E6D568B, Value Size: 4
	Value: 02000500
GUID: 5ea78df6551b704eb41ba7b7a5b758ea offset: 0x006320aa (6496426)
	State: 7c00, Key: , Value Size: 8
	Value: 0000000000000000
GUID: 5ea78df6551b704eb41ba7b7a5b758ea offset: 0x006320e8 (6496488)
	State: 7f00, Key: CBF2CC32, Value Size: 69
	Value: ff23804e9aa7d147a3427524cfc96dc482ef849ffb98d1b83ab76510bb3bb9365bc843c34e3777974dbfa56213ce1ce95dbc839c91515b68007bbf0000f67e010001000000
GUID: 5ea78df6551b704eb41ba7b7a5b758ea offset: 0x00632163 (6496611)
	State: 7f00, Key: BC9772C5, Value Size: 8
	Value: 9a5887adacd740c1

==
RFT: 2, SVS offset: 0x00632050, password set 1 time(s) and ACTIVE
Ready for pathing...	[confirm]
FireUp
Output to: /Users/user/Desktop/scan-n-patch/Hacked.bin.modified
SVS area cleaner: SVS_Type2.bin at offset: 0x00632050
Layout file for 'flashrom':
-----
00000000:0063204f UpperZone
00632050:0063404f SVS
00634050:007fffff LowerZone
-----
UpperZone end at: 0x0063204f, 6496335 bytes
LowerZone end at: 0x007fffff, 1884080 bytes
Error opening file SVS_Type2.bin: No such file or directory

This error occurs no matter how I configure the directory where Script, SVG_Type1, SVG_Type2, and Hacked.bin share a directory and also when Hacked.bin in a separate directory.

I've parsed the script itself and see nothing overly wrong. Any ideas?

Libertatis Ingeniarius - Motivacion, Doctrina, soshite Jonetsu.
Last edit: 8 years 1 month ago by Dark_Rye. Reason: Autocorrect changed "Patch" to "Path" in title.

Please Log in or Create an account to join the conversation.

More
8 years 3 weeks ago #2952 by thaGH05T
Replied by thaGH05T on topic Scan-n-Patch
it seems you do not have the type files in the same folder as the script.

Please Log in or Create an account to join the conversation.

More
8 years 3 weeks ago #2956 by Dark_Rye
Replied by Dark_Rye on topic Scan-n-Patch
They are.

I specified that all files shared the same directory.

Libertatis Ingeniarius - Motivacion, Doctrina, soshite Jonetsu.

Please Log in or Create an account to join the conversation.

More
8 years 3 weeks ago #2958 by thaGH05T
Replied by thaGH05T on topic Scan-n-Patch
Well, that system error is specifically shown when either you do not have access or the exact file name (and case) cannot be found. I suggest you run the script using sudo as well as making sure your type files are named correctly and are of .bin file type.

Please Log in or Create an account to join the conversation.

More
8 years 3 weeks ago #2960 by Dark_Rye
Replied by Dark_Rye on topic Scan-n-Patch
RESOLVED

The solution is to navigate to the directory (Cd /path-to-directory/) and then run the script (./script-name.pl /path-to-bin/efi-dump.bin) and press return.

It is important that the working directory is the same directory as the script (to check, type "ls" on mac/linux or "dir" on PC and make sure the script and 2 Type files are listed).

Best of luck.

- Rye

Libertatis Ingeniarius - Motivacion, Doctrina, soshite Jonetsu.

Please Log in or Create an account to join the conversation.

Moderators: token.paul

Who's Online

We have 304 guests and no members online

N00BZ

  • ljamal
  • ljamal74
  • mikeg2atest
  • ducchinhbui
  • anjarezt

Cookies