fpmurphy.comCHIPSEC v1.8.1 UEFI Shell SPI Dump Command TypeError « Musings

fpmurphy.com Profile

fpmurphy.com is a domain that was created on 2008-12-19,making it 15 years ago. It has several subdomains, such as blog.fpmurphy.com , among others.

Discover fpmurphy.com website stats, rating, details and status online.Use our online tools to find owner and admin contact info. Find out where is server located.Read and write reviews or vote to improve it ranking. Check alliedvsaxis duplicates with related css, domain relations, most used words, social networks references. Go to regular site

fpmurphy.com Information

HomePage size: 112.11 KB
Page Load Time: 0.260239 Seconds
Website IP Address: 107.180.233.158

fpmurphy.com Similar Website

CHIPSEC v1.8.1 UEFI Shell SPI Dump Command TypeError « Musings
blog.fpmurphy.com
SPI by StepStone
spi.stepstonegroup.com
Copy & Paste Dump
copy.r74n.com
Malaysia's Home Renovation & Lifestyle Portal - Turn your shell into a beautiful home
renotalk.fr.yuku.com
Five Cubits | A Command Alkon Company – Just another Command Alkon Sites site
fivecubits.commandalkon.com
Xbox Backup Creator Download - It allows you to easily dump, create/patch and burn Xbox and Xbox 360
xbox-backup-creator.software.informer.com
Online Business Courses | SPI Media
courses.smartpassiveincome.com
SDF Public Access UNIX System - Free Shell Account and Shell Access
sdf.lonestar.org
Construction Dump Trucks Training Manuals
constructiondumptrucks.tpub.com
SDF Public Access UNIX System - Free Shell Account and Shell Access
dsl.tenex.org
SDF Public Access UNIX System - Free Shell Account and Shell Access
mail.sdf.org
The Dump Entry Page
thedump.scoutscan.com
Dump Truck Secure Online Storage Golden Frog
app.dumptruck.goldenfrog.com
SPI Home
spizen.spi.com
Fast thread - Universal Java Thread Dump
blog.fastthread.io

fpmurphy.com DNS

A fpmurphy.com. 300 IN A 107.180.233.158
AAAA fpmurphy.com. 300 IN AAAA 2607:f298:5:118a::67f:168e
MX fpmurphy.com. 300 IN MX 0 mx2.mailchannels.net.
NS fpmurphy.com. 14400 IN NS ns1.dreamhost.com.
TXT fpmurphy.com. 300 IN TXT v=spf1 mx include:netblocks.dreamhost.com include:relay.mailchannels.net -all
SOA fpmurphy.com. 300 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2023110900 17421 600 1814400 300

fpmurphy.com Httpheader

Date: Sun, 12 May 2024 09:29:07 GMT
Server: Apache
Link: https://blog.fpmurphy.com/?p=2503; rel=shortlink
Strict-Transport-Security: max-age=16070400; includeSubDomains
X-Xss-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Upgrade: h2
Connection: Upgrade
Cache-Control: max-age=600
Expires: Sun, 12 May 2024 09:39:07 GMT
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

fpmurphy.com Meta Info

content="text/html; charset=utf-8" http-equiv="Content-Type"/
content="max-image-preview:large" name="robots"/

fpmurphy.com Ip Information

Ip Country: United States
Latitude: 37.751
Longitude: -97.822

fpmurphy.com Html To Plain Text

Musings of an OS plumber Translate See Also GitHub Repositories Archives February 2022 January 2022 December 2021 February 2021 August 2019 April 2019 March 2019 February 2019 January 2019 December 2018 October 2018 September 2018 August 2018 July 2018 June 2018 May 2018 April 2018 March 2018 February 2018 January 2018 December 2017 November 2017 October 2017 September 2017 August 2017 July 2017 June 2017 May 2017 April 2017 March 2017 February 2017 January 2017 December 2016 November 2016 October 2016 September 2016 August 2016 July 2016 June 2016 May 2016 April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December 2011 November 2011 October 2011 September 2011 August 2011 July 2011 June 2011 May 2011 April 2011 March 2011 February 2011 January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 August 2007 July 2007 June 2007 May 2007 Exploring Lenovo T480 NVRAM Variables With CHIPSEC » CHIPSEC v1.8.1 UEFI Shell SPI Dump Command Error CHIPSEC is a extensible framework for analyzing platform level security of hardware, devices, system firmware, low-level protection mechanisms, and the configuration of various platform components. It contains a set of modules, including simple tests for hardware protections and correct configuration, tests for vulnerabilities in firmware and platform components, security assessment and fuzzing tools for various platform devices and interfaces, and tools acquiring critical firmware and device artifacts”. CHIPSEC is mostly written in Python for portability and can run on Linux, Windows, Mac OSX, DAL, and the UEFI shell. It is Intel-centric at this time. The recent update from Python 2 from Python 3 broke a couple of commands. For example, in version 1.8.1, I am getting a TypeError: argument 3 must be str, not bytes exception when I invoke chipsec_util.py spi dump rom.bin from a UEFI shell. Here is the full error details: ################################################################ CHIPSEC: Platform Hardware Security Assessment Framework ################################################################ [CHIPSEC] Version : 1.8.0 [CHIPSEC] OS : uefi [CHIPSEC] Python : 3.6.8 (64-bit) [CHIPSEC] API mode: using CHIPSEC kernel module API [CHIPSEC] Helper : EfiHelper (None) [CHIPSEC] Platform: Mobile 8th Generation Core Processor (Kabylake U-Quad Core) [CHIPSEC] VID: 8086 [CHIPSEC] DID: 5914 [CHIPSEC] RID: 08 [CHIPSEC] PCH : PCH-U with iHDCP 2.2 Premium [CHIPSEC] VID: 8086 [CHIPSEC] DID: 9D4E [CHIPSEC] RID: 21 [CHIPSEC] Executing command ’spi’ with args [’dump’, ’rom.bin’] [CHIPSEC] Dumping entire SPI flash memory to ’rom.bin’ [CHIPSEC] it may take a few minutes (use DEBUG or VERBOSE logger options to see progress) [CHIPSEC] BIOS region: base = 0x00700000, limit = 0x00FFFFFF [CHIPSEC] Dumping 0x01000000 bytes (to the end of BIOS region) [spi] reading 0x1000000 bytes from SPI at FLA = 0x0 (in 262144 0x40-byte chunks + 0x0-byte remainder) Traceback (most recent call last): File "chipsec_util.py", line 218, in sys.exit( main() ) File "chipsec_util.py", line 214, in main return chipsecUtil.main() File "chipsec_util.py", line 189, in main comm.run() File "FS1:\chipsec\chipsec\utilcmd\spi_cmd.py", line 182, in run self.func() File "FS1:\chipsec\chipsec\utilcmd\spi_cmd.py", line 108, in spi_dump buf = self._spi.read_spi_to_file( 0, spi_size, self.out_file ) File "FS1:\chipsec\chipsec\hal\spi.py", line 564, in read_spi_to_file buf = self.read_spi( spi_fla, data_byte_count ) File "FS1:\chipsec\chipsec\hal\spi.py", line 592, in read_spi cycle_done = self._wait_SPI_flash_cycle_done() File "FS1:\chipsec\chipsec\hal\spi.py", line 507, in _wait_SPI_flash_cycle_done self.spi_reg_write( self.hsfs_off, HSFSTS_CLEAR, 1 ) File "FS1:\chipsec\chipsec\hal\spi.py", line 243, in spi_reg_write return self.mmio.write_MMIO_reg(self.rcba_spi_base, reg, value, size) File "FS1:\chipsec\chipsec\hal\mmio.py", line 112, in write_MMIO_reg self.cs.helper.write_mmio_reg( bar_base, size, value, offset, bar_size ) File "FS1:\chipsec\chipsec\helper\oshelper.py", line 192, in write_mmio_reg ret = self.helper.write_mmio_reg(bar_base +offset, size, value ) File "FS1:\chipsec\chipsec\helper\efi\efihelper.py", line 166, in write_mmio_reg edk2.writemem(phys_address_lo, phys_address_hi, buf, size) TypeError: argument 3 must be str, not bytes The fix was simple. All that was required was to modify one line of code in write_mmio_reg() which is in …/chipsec/helper/efi/efihelper.py , and also import bytestostring from chipsec.defines in the same file. Here is the existing version 1.8.1 code for write_mmio_reg : def write_mmio_reg(self, phys_address, size, value): phys_address_lo = phys_address & 0xFFFFFFFF phys_address_hi = (phys_address32) & 0xFFFFFFFF if size == 4: return edk2.writemem_dword(phys_address_lo, phys_address_hi, value) else: buf = struct.pack(size * "B", value) edk2.writemem(phys_address_lo, phys_address_hi, buf, size) Here is the modified code that works: def write_mmio_reg(self, phys_address, size, value): phys_address_lo = phys_address & 0xFFFFFFFF phys_address_hi = (phys_address32) & 0xFFFFFFFF if size == 4: return edk2.writemem_dword(phys_address_lo, phys_address_hi, value) else: buf = bytestostring( struct.pack(size * "B", value) ) edk2.writemem(phys_address_lo, phys_address_hi, buf, size) What is bytestostring you may ask and why is the change necessary? Here is the definition of bytestostring from …/chipsec/defines.py : def bytestostring(mbytes): if isinstance(mbytes, bytes): return mbytes.decode("latin_1") else: return mbytes Note that the real work is done by the mbytes object’s mbytes.decode method. As an aside, I am not sure why latin_1 was chosen by the developers of CHIPSEC as the decoded string format but it works. For completeness, some notes about Python 3 TypeError follow. As you are probably aware, Python 3 is a much stricter object-orientated programming language than Python 2. It always checks the type of object you are passing and whether a particular object type supports the operation. If there is a mismatch, Python 3 will throw a TypeError exception error. Note that type constraints are not checked at compile time; therefore operations on an object may fail at runtime if the given object is not of a suitable type. Looking back at the defective source code, you can see that the line struct.pack(size * B”, value) returns a bytes object in buf . struct.pack is part of the struct.py module which performs conversions between Python values and C structs represented as Python bytes objects. In this case, B” is the format character for unsigned char C type (Python – integer type) whose size is 1 byte. However edk2.writemem expects a string for the third argument – not a bytes object. This mismatch of types causes the TypeError exception. Enjoy! February 10th, 2022 Comments are closed. Tags ACPI Bash C Cinnamon D-Bus DBus EFI Extension Fedora Fedora 16 Fedora 18 Fedora 19 FireFox GCC GNOME GNOME Shell GPT GRUB GRUB2 Java JavaScript kernel Korn Shell ksh...

fpmurphy.com Whois

Domain Name: FPMURPHY.COM Registry Domain ID: 1533790901_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.dreamhost.com Registrar URL: http://www.DreamHost.com Updated Date: 2023-11-17T09:08:00Z Creation Date: 2008-12-19T05:08:34Z Registry Expiry Date: 2024-12-19T05:08:34Z Registrar: DreamHost, LLC Registrar IANA ID: 431 Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Name Server: NS1.DREAMHOST.COM Name Server: NS2.DREAMHOST.COM Name Server: NS3.DREAMHOST.COM DNSSEC: unsigned >>> Last update of whois database: 2024-05-17T15:05:13Z <<<