Giter VIP home page Giter VIP logo

op8t_ops_extract's People

Contributors

xiofee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

op8t_ops_extract's Issues

Syntax Error

python3 op8t_ops_extract.py kebab_15_O.12_201015.ops kebab_15_O.12_201015
File "", line 1
python3 op8t_ops_extract.py kebab_15_O.12_201015.ops kebab_15_O.12_201015
^
SyntaxError: invalid syntax

Am I doing something wrong?

OnePlus8pro extract successfully but the firehose file is not elf type

从一加论坛的帖子跟过来,大神V5,实在是太厉害了,这个都能写出来!
解包成功,但里面的prog_firehose_ddr.elf文件,qpst报错

2020-11-21 13:20:05.159 13: D:\instantnoodlep_15_O.13_200411\here\prog_firehose_ddr.elf
2020-11-21 13:20:05.160
2020-11-21 13:20:05.160 13:20:05: Requested ID 13, file: "D:\instantnoodlep_15_O.13_200411\here\prog_firehose_ddr.elf"
2020-11-21 13:20:05.161
2020-11-21 13:20:05.161 13:20:05: ERROR: function: is_ack_successful:1144 SAHARA_NAK_INVALID_ELF_HDR
2020-11-21 13:20:05.164
2020-11-21 13:20:05.164 13:20:05: ERROR: function: sahara_start:953 Exiting abruptly
2020-11-21 13:20:05.165
2020-11-21 13:20:05.166 13:20:05: ERROR: function: sahara_main:982 Sahara protocol error
2020-11-21 13:20:05.167
2020-11-21 13:20:05.168 13:20:05: ERROR: function: main:320 Uploading Image using Sahara protocol failed
2020-11-21 13:20:05.169
2020-11-21 13:20:05.170
2020-11-21 13:20:05.171 Download Fail:Sahara Fail:QSaharaServer Fail:Process fail

用winhex看了下,不是elf文件头,不懂是什么格式,我看了一加8T和一加8pro的,都是495EA97A的文件头。还要继续解密吗?又或者,是qpst不支持?

Only manifest.xml decrypted

trying to decrypt kebab_15_H.12_201015.ops from OnePlus8THydrogen_11.0.1.2.KB05_kebab_15_H.12_201015

Results: only manifest.xml decrypted

mlgmxyysd@MlgmXyysdServer:/mnt/c/Users/mlgmxyysd$ python3 op8t_ops_extract.py kebab_15_H.12_201015.ops kebab_15_H.12_201015
op8topscrypt.c: In function ‘block_crypt’:
op8topscrypt.c:577:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  577 | #define WORDn(x, n)   (*((_WORD*)&(x)+n))
      |                         ~~~~~~~~~~~~~^~~
op8topscrypt.c:583:20: note: in expansion of macro ‘WORDn’
  583 | #define LOWORD(x)  WORDn(x,LOW_IND(x,_WORD))
      |                    ^~~~~
op8topscrypt.c:756:3: note: in expansion of macro ‘LOWORD’
  756 |   LOWORD(v12) = a3a;
      |   ^~~~~~
op8topscrypt.c:577:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
  577 | #define WORDn(x, n)   (*((_WORD*)&(x)+n))
      |                         ~~~~~~~~~~~~~^~~
op8topscrypt.c:583:20: note: in expansion of macro ‘WORDn’
  583 | #define LOWORD(x)  WORDn(x,LOW_IND(x,_WORD))
      |                    ^~~~~
op8topscrypt.c:777:4: note: in expansion of macro ‘LOWORD’
  777 |    LOWORD(v12) = a3a;
      |    ^~~~~~
mlgmxyysd@MlgmXyysdServer:/mnt/c/Users/mlgmxyysd$ ls -l kebab_15_H.12_201015
total 104
-rwxrwxrwx 1 mlgmxyysd mlgmxyysd 106198 Nov 18 21:54 manifest.xml

Expected results:
image(s) and xml(s) decrypted successfully

Environment:

Windows 10 2004
WSL 2 Ubuntu 20.04.1 LTS (GNU/Linux 4.19.128-microsoft-standard x86_64)

sudo apt update
sudo apt install python3
sudo apt install gcc
sudo apt install python3-pip
pip3 install cffi

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.