Giter VIP home page Giter VIP logo

dump_avb_signature's Issues

about re-sign image

once i dumped the official signature,like this:
Boot Signature Tool v1.6 (c) B.Kerler 2017-2019

Kernel=0x00001000, length=0x0222B000
Ramdisk=0x0222C000, length=0x0023E000
Second=0x0246A000, length=0x00000000
QCDT=0x0246A000, length=0x00000000
Signature start=0x0246A000

ID: 867fb6a41ab2ae4d60accaa331289be9d94eb108000000000000000000000000
Image-Target: b'/boot'
Image-Size: 0x246a000
Signature-Size: 0x246a000

Calced Image-Hash: f586d1acc84cc1b9cec0307433808aa623eb6b3ba5daa54312355de85c1b23c0
Signature-Hash: f586d1acc84cc1b9cec0307433808aa623eb6b3ba5daa54312355de85c1b23c0
AVB-Status: VERIFIED, 0

Signature-RSA-Modulus (n): ee6953a810e208a71441e2c963d31b8a4fbb76cabbc3cef1d084e02533cbf3fab9d1fffea2989f844f4eff74
cbc013cf7714ce4b9c540b35c509f856081a36d8773142552604adf553abde9edfbfecc554fce99bb3dfddaaf0e064638505ce935dc30cd6aba27ed2
d02c132bbbefc10221388f71e4c982897b231ce32258c771c2b77df3fd7507f5173881e8105339004a8f6e89d8a0aab529973372a4e06795d3074231
951472e5971abb745239ab0fec476bc8d28fdf9845bec159ef917d8097b6aac06ab79efd0db81809b89d2ce70e37d21f84f9d0988d06469e39ff5867
042587aec9b4565bb9e50fe69ae54377979ae6dd7687670342dd0e4389a28047
Signature-RSA-Exponent (e): 010001

TZ Root of trust (locked): d0d15653e0bb7a0b0d043dfcc56b36933377747fef9be05fd024219cc16a4bf2
TZ Root of trust (unlocked): 936f536a504a515bcf4a2b8324f426989b04f35c6dbc03d0b36530df960cbfb5

and then i unpack->edit->repack; is there anyway to re-sign wtih the official singature or replace the signature with official.
now i just use AIK signature by google test-key

My result

@francko76

Boot Signature Tool (c) B.Kerler 2017-2018

Kernel=0x00001000, length=0x00C2A000
Ramdisk=0x00C2B000, length=0x00893000
Second=0x014BE000, length=0x00000000
QCDT=0x014BE000, length=0x00000000
Signature start=0x014BE000
Traceback (most recent call last):
File "verify_signature.py", line 171, in
main(sys.argv[1:])
File "verify_signature.py", line 120, in main
target,siglength,hash,pub_key,flag=dump_signature(signature)
TypeError: 'NoneType' object is not iterable

Image seems to be signed by google test keys

Boot Signature Tool v1.6 (c) B.Kerler 2017-2019
----------------------------------------------
Kernel=0x00000800,	length=0x00677000
Ramdisk=0x00677800,	length=0x000FE800
Second=0x00776000,	length=0x00000000
QCDT=0x00776000,	length=0x00000000
Signature start=0x00776000

ID: 38f9bf8418d5066b191b1806269d80d9dd9fc59a000000000000000000000000
Image-Target: b'/boot'
Image-Size: 0x776000
Signature-Size: 0x776000

Calced Image-Hash:	278ae206bb998e267f1782ecd9b50fa0173689ef141f2c69f4170820fffd16c0
Signature-Hash:		1bbfe7fb13f634ebafd401840732b578a54fb32b10ae1fdd412ea5d0902f23e7
AVB-Status: RED, 3 or ORANGE, 1

Signature-RSA-Modulus (n):	e8eb784d2f4d54917a7bb33bdbe76967e4d1e43361a6f482aa62eb10338ba7660feba0a0428999b3e2b84e43c1fdb58ac67dba1514bb4750338e9d2b8a1c2b1311adc9e61b1c9d167ea87ecdce0c93173a4bf680a5cbfc575b10f7436f1cddbbccf7ca4f96ebbb9d33f7d6ed66da4370ced249eefa2cca6a4ff74f8d5ce6ea17990f3550db40cd11b319c84d5573265ae4c63a483a53ed08d9377b2bccaf50c5a10163cfa4a2ed547f6b00be53ce360d47dda2cdd29ccf702346c2370938eda62540046797d13723452b9907b2bd10ae7a1d5f8e14d4ba23534f8dd0fb1484a1c8696aa997543a40146586a76e981e4f937b40beaebaa706a684ce91a96eea49
Signature-RSA-Exponent (e):	010001

!!!! Image seems to be signed by google test keys, yay !!!!

TZ Root of trust (locked):		3bd07d4fc1cea0698c699c8f3a167a80dbd96affc402a6fc924ea46edc2e8381
TZ Root of trust (unlocked):	80d72c4aafdd168c9bb44be519124ea518d79c18ac030d99f13343f595ee18a4

´´´

what is that, and what can i do with it?

Samsung boot image sign

Can u fix signature grab for Samsung boot images?

Boot Signature Tool v1.5 (c) B.Kerler 2017-2019

Kernel=0x00000800, length=0x00861800
Ramdisk=0x00862000, length=0x00123000
Second=0x00985000, length=0x00000000
QCDT=0x00985000, length=0x00055800
Signature start=0x009DA800
No signature found :/

boot.img.tar.gz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.