03-21-2024, 03:28 PM
Hi all-
I work with the ai.
I ran this line:
dd if=shared.disk-image.img of=shared.disk-image.iso
I get this error:
so the issue was per ai to check and see if the file is corrupted so i with the ai help came up with this:
the output is a file named:
0.Firmware (Tow-Boot)
what other outputs would i expect after unpacking the tow-boot with 7zip?
thanks for any input.
jim
I work with the ai.
I ran this line:
dd if=shared.disk-image.img of=shared.disk-image.iso
I get this error:
Code:
/c/msys64/mingw64/bin/7z x /c/Users/myuser/Downloads/is02/shared.disk-image.iso
7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
Scanning the drive for archives:
1 file, 5250048 bytes (5127 KiB)
Extracting archive: C:\Users\myuser\Downloads\is02\shared.disk-image.iso
0.Firmware (Tow-Boot).img
ERRORS:
There are data after the end of archive
--
Path = C:\Users\myuser\Downloads\is02\shared.disk-image.iso
Type = GPT
Physical Size = 5250048
ID = E0CA6E57-39B2-4482-9838-21E2785CD93D
----
Path = 0.Firmware (Tow-Boot).img
Size = 4194304
File System = 67401509-72E7-4628-B1AF-EDD128E4316A
Characteristics = Sys
Offset = 8192
ID = CE8F2026-17B1-4B5B-88F3-3E239F8BD3D8
--
Path = 0.Firmware (Tow-Boot).img
Type = gzip
ERRORS:
There are data after the end of archive
Offset = 617544
Physical Size = 3149
Tail Size = 3573611
Headers Size = 10
Streams = 1
ERROR: There are some data after the end of the payload data : 0.Firmware (Tow-Boot)
Sub items Errors: 1
Archives with Errors: 1
Open Errors: 1
Sub items Errors: 1
so the issue was per ai to check and see if the file is corrupted so i with the ai help came up with this:
Quote:python.exe test.pyso the issue then becomes 0 error code no error.
File "/c/Users/myuser/Downloads/is02/test.py", line 5
p = subprocess.Popen(["PYTHONPATH=$PYTHONPATH:/c/msys64/usr/bin", 'python", "/usr/bin/binwalk", "-e", "shared.disk-image.img"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
^
SyntaxError: unterminated string literal (detected at line 5)
mycomputer@name MSYS /c/Users/myuser/Downloads/is02
$ python.exe test.py
Traceback (most recent call last):
File "/c/Users/myuser/Downloads/is02/test.py", line 5, in <module>
p = subprocess.Popen(["PYTHONPATH=$PYTHONPATH:/c/msys64/usr/bin", "python", "/usr/bin/binwalk", "-e", "shared.disk-image.img"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1953, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'PYTHONPATH=$PYTHONPATH:/c/msys64/usr/bin'
mycomputer@name MSYS /c/Users/stealth_droid/Downloads/is02
$ python.exe test.py
Exit code: 0
#!/usr/bin
import subprocess
# Execute the Binwalk command
p = subprocess.Popen([ "python", "/usr/bin/binwalk", "-e", "shared.disk-image.img"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# Communicate with the Binwalk command and get the output and error messages
output, error = p.communicate()
# Check the exit code of the Binwalk command
exit_code = p.returncode
# Print the exit code
print("Exit code:", exit_code)
the output is a file named:
0.Firmware (Tow-Boot)
what other outputs would i expect after unpacking the tow-boot with 7zip?
thanks for any input.
jim