Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Dfxml report of disk image with fiwalk results in AttributeError

Đang mở
#39 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start in dfxml/fiwalk.py around line 138 and inspect fiwalk_xml_stream together with E01_glob to determine the expected imagefile input type. Reproduce the reported call with a disk image, then add or update a focused regression test. Done means the documented disk-image use case no longer raises AttributeError and the expected invocation is documented.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I'm trying to use the module to generate dfxml reports of disk images. I can't find any examples of this in either the documentation or in the examples, but after digging a bit into the code I came up with this:

#! /usr/bin/env python3

import os
from dfxml import fiwalk

imageFile = os.path.abspath("1a330188-23d0-11ed-a1cf-3dad24cfc09f.img")
test = fiwalk.fiwalk_xml_stream(imagefile=imageFile)
print(test)

But this results in:

Traceback (most recent call last):
  File "./test-fiwalk.py", line 7, in <module>
    test = fiwalk.fiwalk_xml_stream(imagefile=imageFile)
  File "/home/johan/.local/lib/python3.8/site-packages/dfxml/fiwalk.py", line 138, in fiwalk_xml_stream
    p = Popen(cmd + E01_glob(imagefile.name),stdout=PIPE)
AttributeError: 'str' object has no attribute 'name'

Not sure if this is some bug, or perhaps I'm just doing something completely wrong here myself? In any case, as this seems one of the most obvious use cases for this software, it would be helpful to provide some documentation or example.

Ngôn ngữ chính
Python
Star
20
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dfxml-working-group/dfxml_python

Tất cả issue của dfxml-working-group/dfxml_python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.