Coder Social home page Coder Social logo

extractor's People

Contributors

aidanholm avatar jakoblell avatar maksimaliabyshev avatar oznotes avatar rapperskull avatar stze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

extractor's Issues

Implement EROFS_INODE_FLAT_COMPRESSION

Today I tried to extract a EROFS image, but I got stuck since EROFS_INODE_FLAT_COMPRESSION is not implemented. I know you're probably already aware of it, I just wanted to open this issue as a reminder and ask if there's an ETA.

error extracting system_dlkm.img

erofs_tool.py extract  system_dlkm.img out
0x00000400-0x00000480: SUPER
root_nid=38
Traceback (most recent call last):
  File "/home/yu/Downloads/erofs_tool.py", line 655, in <module>
    main()
  File "/home/yu/Downloads/erofs_tool.py", line 62, in main
    args.target(args)
  File "/home/yu/Downloads/erofs_tool.py", line 77, in command_extract
    erofs = Erofs(args.erofs_image)
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yu/Downloads/erofs_tool.py", line 237, in __init__
    self.root_inode = self.get_inode(self.super.root_nid, FileType.EROFS_FT_DIR)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yu/Downloads/erofs_tool.py", line 244, in get_inode
    return DirInode(self, nid)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/yu/Downloads/erofs_tool.py", line 454, in __init__
    super(DirInode, self).__init__(erofs, nid)
  File "/home/yu/Downloads/erofs_tool.py", line 295, in __init__
    assert self.inode_header.i_advise & 0x01 == 0
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Can this issue be resolved?

ErofsHandler: Detected EROFS filesystem but self.image_type is not ImageType.SYSTEM or ImageType.VENDOR

When running extractor on a vendor.img image, it returns the error message

Traceback (most recent call last):
  File "./extractor.py", line 2363, in <module>
    main()
  File "./extractor.py", line 65, in main
    extractor.extract(output_system_tar=args.tar_output, output_system_dir=args.system_dir_output, output_boot_img_path=output_boot_img_path, output_recovery_img_path=output_recovery_img_path, allow_missing_vendor=args.allow_missing_vendor)
  File "./extractor.py", line 2126, in extract
    next_handler = handler.get_next_handler()
  File "./extractor.py", line 2061, in get_next_handler
    check_result = handler.check()
  File "./extractor.py", line 1616, in check
    raise ValueError("ErofsHandler: Detected EROFS filesystem but self.image_type is not ImageType.SYSTEM or ImageType.VENDOR")
ValueError: ErofsHandler: Detected EROFS filesystem but self.image_type is not ImageType.SYSTEM or ImageType.VENDOR

Is this an issue similar to #3?

python3.3 -c "from Crypto.Cipher import ARC4" problem

(venv) krystian@Lenovo-X240:~$ sudo ./extractor.py 8227L-8.bin --system-dir-output wyp
Traceback (most recent call last):
File "./extractor.py", line 29, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

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.