如何解码.wasm代码?是否有可能? [英] How to decode a .wasm code? Is it possible?
问题描述
只是想知道计算机中的代码在做什么,我想对.wasm代码进行解码-在
Just curious to know what the code is doing in a computer, I would like to decode a .wasm code - available at https://lifeinspace.org/main.wasm. Basically, from what I found in internet, .wasm is a web assembly code, which could have been:
- 从高级语言(C/C ++/etc.)的代码转换并转换为Web程序集(.wasm)-但是,由于我现在拥有.wasm代码,是否有一种方法或技术可以弄清楚高级代码是什么?
However, since I now have the .wasm code, Is there a way or technique to figure out what the high-level code was?
我只是想知道此.wasm代码的作用.当我在notepad ++中打开此代码时,它充满了符号和汇编指令,没有任何意义.
Its just that I want to know what this .wasm code does. When I open this code in notepad++, its full of symbols and assembly instructions, which does not make any sense.
我想知道的主要原因是此代码是否执行了DDoS之类的非法活动.
The main reason that I want to know is whether this code does any illegal stuffs like DDoS.
我使用其他防病毒工具扫描了文件,但没有发现任何坏东西.
I scanned the file using different antivirus tools but could not spot any bad stuffs.
快速背景: lifeinspace.org是一个网站,在外面它声称要租用我们的计算能力进行科学计算. (有关更多信息,请访问 https://money.stackexchange.com/Questions/115754/lease-computing-power-to-earn-money-lifeinspace-org ).但是,它在后台运行一个浏览器代码(lifeinspace.org/main.wasm)在后台执行其他未知的过程.知道其作用的唯一方法是对上面的main.wasm代码进行解码.因此,我对此感到好奇.
A quick background: lifeinspace.org is a website where on the outside it claims to rent our computing power for scientific calculations. (more info at https://money.stackexchange.com/questions/115754/lease-computing-power-to-earn-money-lifeinspace-org). However, its runs a browser code behind (lifeinspace.org/main.wasm) does some other process in background which we don't know. The only way to know what it does is to decode the main.wasm code above. Hence I am curious about it.
推荐答案
您的wasm编译文件可以转换为wasm文本格式 wast2wasm工具
但是,您无法获得更高级的资源(取决于语言,编译器,并且会丢失信息).
没有可以扫描wasm文件的防病毒软件. Wasm是由您的浏览器执行的,他可以很好地保护您.
监视程序的最简单方法是使用浏览器查看日志和请求.Your wasm compiled file can be converted into a wasm text format see mdn page. You can use the wast2wasm tool
However you can't get the more high level source (depends to the the langage, the compiler and there is a lost of information).
There is no antivirus wich can scan a wasm file. Wasm is executed by your browser and he protects you very well.
The simplest way to spy what the program do is to watch the logs and the requests with your browser.这篇关于如何解码.wasm代码?是否有可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!