smcutil 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f888b0c5238040b34d5681534b546df39e3f747f
4
- data.tar.gz: c609059a876a0612ff6737a4ad21553a92c07e93
3
+ metadata.gz: c81a96ad69c1a007ef5a1929e1f5813c6212ba1f
4
+ data.tar.gz: 06777d51015caf57fcd7d9623609b75e1ec30b64
5
5
  SHA512:
6
- metadata.gz: 8c6ac4e48067b13a4523b8822981d4c163e2b9dc950e6024cb66bc24d42da8a15eb02e0e0362dcde1224d63d8db4040dc90b0d2674aaf202432fcb66a3654743
7
- data.tar.gz: ce33cd9e3d8d4a18025d4d63d0099a653314afc47876df8c98aaa20f28918ca12b6f4ee7c3977a042ba5bd3d461dc1d7c5daae8d5a80da46d64c3972eac8440d
6
+ metadata.gz: a0b4d06b698a0ccc71557d8e00dfba1c717902a7d4d991ca4d4d359b0ccad6e412f729b45642104f15a70fb7de2de4704d5bde2eacde492e42b847a13b86a650
7
+ data.tar.gz: 5f5837a04fe67355207f597b2a71b66f4e807f06d898815238a25f16caf438ba79e1bde702fe00ec8b680d8ccd35f673faa89ea29624f79ecabfb715db2561dd
data/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  `smcutil` is a command line tool for reading Apple's SMC payloads, validating them, fingerprinting them and extracting the contents for disassembly.
4
4
 
5
+ ## Progress
6
+
7
+ Currently looking for a number of MacBooks with good SMCs that may be offered as tribute for `save`
8
+ and waiting on Stellaris development hardware. Anyone have a sub-micron wealder out there?
9
+
5
10
  ## Installation
6
11
 
7
12
  Install it yourself as:
@@ -22,11 +27,16 @@ Install it yourself as:
22
27
  info {file.smc}:
23
28
  Prints information about the SMC update file.
24
29
 
25
- flashfile {file.smc} {output.bin}:
30
+ decode {file.smc} {output.bin}:
26
31
  Pretends to execute an update of the SMC flash as though the output.bin file is the SMC flash ROM.
27
32
 
33
+ shred {file.smc} {output_dir}:
34
+ Pulls apart each flash region, so that multiple passes can be examined
35
+
28
36
  save {output.bin}:
29
- Has magical cow powers. Assuming I can make this work: GOLDEN TICKET
37
+ (IN PROGRESS)
38
+ Has magical bear powers. Loads SMC update payload to capture the contents of the application partition.
39
+ No warrently, may bork hardware.
30
40
 
31
41
  ## Development
32
42
 
@@ -26,7 +26,7 @@ class SmcUtil::FileExtractor
26
26
  pass += 1 if region.offset < position
27
27
  position = region.offset
28
28
 
29
- filename = File.join(path, "#{region.offset.to_s(16)}_pass#{pass}.bin")
29
+ filename = File.join(path, "pass#{pass}_#{region.offset.to_s(16)}.bin")
30
30
 
31
31
  File.open(filename, OUTPUT_FILE_FLAGS) do |file|
32
32
  file.write region.data
@@ -1,3 +1,3 @@
1
1
  module SmcUtil
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smcutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Mark
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-16 00:00:00.000000000 Z
11
+ date: 2017-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler