gdabah / distorm

Powerful Disassembler Library For x86/AMD64
Other
1.26k stars 238 forks source link

[Sample donation] distorm for C#/.NET (Distorm.cs) #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attached is a C#/.NET implementation of distorm I have made in on of my project

Hardest parts was to Marshal everything correctly so here it is attached in a 
Sample class I hope enough comprehensive

Original issue reported on code.google.com by ad@heapoverflow.com on 6 Jan 2013 at 1:39

Attachments:

GoogleCodeExporter commented 9 years ago
Let me know if any interest I can arrange you one Wiki page for this, I'm 
enough familiar in Googlecode usage, I usually commit the Wiki page directly in 
the svn, I do not use the http formatter

Original comment by ad@heapoverflow.com on 6 Jan 2013 at 2:13

GoogleCodeExporter commented 9 years ago
So if you wonder I which type of project could be useful, in my case I'm 
developing an application that injects and hooks into any directx process 
directly from C#/.NET, it loads .NET in the target process and this last uses 
distorm, distorm native for C#/.NET was best choice and works perfectly

Original comment by ad@heapoverflow.com on 6 Jan 2013 at 2:26

GoogleCodeExporter commented 9 years ago
You are the third to do diStorm in C#.
Please see: https://github.com/damageboy/distorm-net

Original comment by distorm@gmail.com on 7 Jan 2013 at 9:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes but not need of a project just for this purpose and I find it really not a 
good idea, people will look for a cs file instead to modify and bind in your 
project, I believe you rather have to build a Wiki page for this, as Im the 
third to publish this I'm sure I'm more than the third to look for this in your 
documentation, a pity that's missing, C++ sucks ;p

Original comment by ad@heapoverflow.com on 8 Jan 2013 at 6:15

GoogleCodeExporter commented 9 years ago
Well, it really depends how deep you want to go with it in C#. It's pretty new 
for diStorm. I will add it in next release.

Thanks.

Original comment by distorm@gmail.com on 8 Jan 2013 at 8:22

GoogleCodeExporter commented 9 years ago
Its pretty common today from langpop c# is nearly as used as python
Thank you for the project link anyway, the maintainer apprieciated my class
I have posted little updated version here it will be more search friendly on 
pastebin

http://pastebin.com/FjQKmXN8

Original comment by ad@heapoverflow.com on 14 Jan 2013 at 8:23

GoogleCodeExporter commented 9 years ago
Going to officially integrate distorm-net.
Sorry Arnaud, I will put a link to your code too in documentation, if some 
people prefer something simpler, though it lacks some code.

Original comment by distorm@gmail.com on 22 Jun 2013 at 8:42

GoogleCodeExporter commented 9 years ago
no problems mine is just demo purpose, had submitted the sample to the author 
of distorm net and he appreciated it so maybe he will inspire its version on 
it, haven't looked recently, anyway thank you for letting me know

Original comment by ad@heapoverflow.com on 23 Jun 2013 at 3:10