Dataset creation fails with some packers
smarbal opened this issue · comments
For the packers yoda_crypter
and mew
, the following error occurs when trying to create a dataset, for every file :
$ dataset -v make test-dataset -f PE -p Yoda_Crypter -n 10
00:00:03.860 [INFO ] dataset - Source directories: ~/.wine64/drive_c/windows,~/.wine32/drive_c/windows
00:00:03.860 [INFO ] dataset - Considered formats: PE32
00:00:03.860 [INFO ] dataset - Selected packers: Yoda_Crypter
00:00:03.860 [INFO ] dataset - Searching for executables...
00:00:14.335 [DEBUG ] dataset - handling /home/user/.wine32/drive_c/windows/system32/winefile.exe...
0%| | 0/100 [00:00<?, ?executable/s]00:00:14.350
[DEBUG ] yoda-crypter - yoda-crypter '/home/user/.packing-box/datasets/test-dataset/files/7dc7697b23a35cc0cd867ff1d702a566096ccd98078638f367ac4322d44e3602.exe'
00:00:19.833 [ERROR ] yoda-crypter - cp: cannot create regular file '~/.wine/drive_c/users~/Temp/7dc7697b23a35cc0cd867ff1d702a566096ccd98078638f367ac4322d44e3602.exe': No such file or directory
mv: cannot stat '~/.wine/drive_c/users~/Temp/7dc7697b23a35cc0cd867ff1d702a566096ccd98078638f367ac4322d44e3602.exe': No such file or directory
00:00:19.834 [DEBUG ] yoda-crypter - not packed (cp: cannot create regular file '~/.wine/drive_c/users~/Temp/7dc7697b23a35cc0cd867ff1d702a566096ccd98078638f367ac4322d44e3602.exe': No such file or directory
mv: cannot stat '~/.wine/drive_c/users~/Temp/7dc7697b23a35cc0cd867ff1d702a566096ccd98078638f367ac4322d44e3602.exe': No such file or directory)
Hi @smarbal
This comes from a bug I'm currently fixing with GUI-based packers ; the file to be packed has its path within Wine's scope incorrectly set starting with "~/.wine/drive_c/users~/Temp
".
I'll fix this very soon.
@dhondta
The error seems to persist, here's the traceback :
00:00:19.151 [DEBUG ] dataset - handling /home/user/.wine32/drive_c/windows/system32/cryptui.dll...
0%| | 0/10 [00:00<?, ?executable/s]00:00:19.176 [DEBUG ] yoda-crypter - yoda-crypter '/home/user/.packing-box/datasets/test-dataset/files/028ef3f294fadadc923ef55562bbdac19ae53eff50888d5e43bd0c874e9e88da.dll'
00:00:24.497 [ERROR ] yoda-crypter - cp: cannot create regular file '~/.wine/drive_c/users~/Temp/028ef3f294fadadc923ef55562bbdac19ae53eff50888d5e43bd0c874e9e88da.dll': No such file or directory
015c:fixme:imm:ImeSetActiveContext (0x25ca50, 0): stub
015c:fixme:imm:ImmReleaseContext (0000000000030060, 000000000025CA50): stub
0154:fixme:imm:ImeSetActiveContext (0x4375d0, 1): stub
0154:fixme:imm:ImmReleaseContext (00020086, 004375D0): stub
mv: cannot stat '~/.wine/drive_c/users~/Temp/028ef3f294fadadc923ef55562bbdac19ae53eff50888d5e43bd0c874e9e88da.dll': No such file or directory