Hello! Thanks for this fantastic project! It's pretty cool to be able to obfuscate at the binary/text level without the need of altering the source code.
I stumbled upon this issue while trying to obfuscate the attached file: mem.wasm.zip. This has been compiled from Rust.
python main.py mem.wasm
type start=8
type end=214
('malformed value type: 111',)
=================================
Traceback (most recent call last):
File "/home/ubuntu/WASMixer/cli/main.py", line 128, in
main()
File "/home/ubuntu/WASMixer/cli/main.py", line 125, in main
obfuscate_wasm(args.wasm, output_path, args)
File "/home/ubuntu/WASMixer/cli/main.py", line 51, in obfuscate_wasm
obfuscator = WASMixer(obf_input)
File "/home/ubuntu/WASMixer/WASMixer/init.py", line 14, in init
self.wasm_binary = ModifyBinary(wasm_path)
File "/home/ubuntu/WASMixer/WASMixer/rewriter/modify_binary.py", line 21, in init
raise Exception("Failed to read the wasm file! " + err.args)
TypeError: can only concatenate str (not "tuple") to str
I had problems with multiple files, not just the attached one. For example, another file (not attached) had problems with section 12. Even converting to WAT and back to WASM yield the same issue. Thanks for taking a look!
type start=8
type end=60
func start=60
func end=96
mem start=96
mem end=101
global start=101
global end=109
export start=109
export end=132
start start=132
start end=135
('malformed section id: 12',)
=================================
Traceback (most recent call last):
File "/home/ubuntu/WASMixer/cli/main.py", line 128, in
main()
File "/home/ubuntu/WASMixer/cli/main.py", line 125, in main
obfuscate_wasm(args.wasm, output_path, args)
File "/home/ubuntu/WASMixer/cli/main.py", line 51, in obfuscate_wasm
obfuscator = WASMixer(obf_input)
File "/home/ubuntu/WASMixer/WASMixer/init.py", line 14, in init
self.wasm_binary = ModifyBinary(wasm_path)
File "/home/ubuntu/WASMixer/WASMixer/rewriter/modify_binary.py", line 21, in init
raise Exception("Failed to read the wasm file! " + err.args)
TypeError: can only concatenate str (not "tuple") to str
Hello! Thanks for this fantastic project! It's pretty cool to be able to obfuscate at the binary/text level without the need of altering the source code.
I stumbled upon this issue while trying to obfuscate the attached file: mem.wasm.zip. This has been compiled from Rust.
=================================
Traceback (most recent call last):
File "/home/ubuntu/WASMixer/cli/main.py", line 128, in
main()
File "/home/ubuntu/WASMixer/cli/main.py", line 125, in main
obfuscate_wasm(args.wasm, output_path, args)
File "/home/ubuntu/WASMixer/cli/main.py", line 51, in obfuscate_wasm
obfuscator = WASMixer(obf_input)
File "/home/ubuntu/WASMixer/WASMixer/init.py", line 14, in init
self.wasm_binary = ModifyBinary(wasm_path)
File "/home/ubuntu/WASMixer/WASMixer/rewriter/modify_binary.py", line 21, in init
raise Exception("Failed to read the wasm file! " + err.args)
TypeError: can only concatenate str (not "tuple") to str
I had problems with multiple files, not just the attached one. For example, another file (not attached) had problems with section 12. Even converting to WAT and back to WASM yield the same issue. Thanks for taking a look!
=================================
Traceback (most recent call last):
File "/home/ubuntu/WASMixer/cli/main.py", line 128, in
main()
File "/home/ubuntu/WASMixer/cli/main.py", line 125, in main
obfuscate_wasm(args.wasm, output_path, args)
File "/home/ubuntu/WASMixer/cli/main.py", line 51, in obfuscate_wasm
obfuscator = WASMixer(obf_input)
File "/home/ubuntu/WASMixer/WASMixer/init.py", line 14, in init
self.wasm_binary = ModifyBinary(wasm_path)
File "/home/ubuntu/WASMixer/WASMixer/rewriter/modify_binary.py", line 21, in init
raise Exception("Failed to read the wasm file! " + err.args)
TypeError: can only concatenate str (not "tuple") to str