Re: [Win32] Remotely execute functions of a D program

2012-09-16 Thread alex
Ah sorry that I've forgotten to post a link to the final project - I was just too excited by the fact that it worked ;) https://github.com/aBothe/monodevelop-win32-debugger/tree/master/DInject (The most interesting part is located in Inject.cs)

Re: [Win32] Remotely execute functions of a D program

2012-09-16 Thread Chang Long
It is a problem cause by snn.lib , you can edit it with a hex editor find : 83 C4 04 83 7B 1C 00 74 09 FF 73 1C FF 15 00 00 00 00 53 e8 replace to : 83 C4 04 83 7B 1C 00 74 09 FF 73 1C FF 15 00 00 00 00 eb 07 On Friday, 14 September 2012 at 17:34:37 UTC, alex wrote: Hi everyone, To keeps

Re: [Win32] Remotely execute functions of a D program

2012-09-16 Thread alex
On Sunday, 16 September 2012 at 16:13:18 UTC, Chang Long wrote: It is a problem cause by snn.lib , you can edit it with a hex editor find : 83 C4 04 83 7B 1C 00 74 09 FF 73 1C FF 15 00 00 00 00 53 e8 replace to : 83 C4 04 83 7B 1C 00 74 09 FF 73 1C FF 15 00 00 00 00 eb 07 That's the cause

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread Jacob Carlborg
On 2012-09-14 20:53, alex wrote: The primary injection routine and how it works is not the problem - I can successfully insert a MSVC++ Dll without any problems into a D program. (I've used this https://github.com/jeffora/extemory library btw - it's for c# :-)) Anyway, on a DLL built with dmc

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread Rainer Schuetze
On 14.09.2012 20:53, alex wrote: On Friday, 14 September 2012 at 18:35:53 UTC, Sean Kelly wrote: On Sep 14, 2012, at 10:34 AM, alex i...@alexanderbothe.com wrote: 1) So to anyone who's got richer experiences in programming assembler and hacking/'debugging' programs than I - how would you do

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread Denis Shelomovskij
15.09.2012 16:03, Jacob Carlborg пишет: On 2012-09-14 20:53, alex wrote: The primary injection routine and how it works is not the problem - I can successfully insert a MSVC++ Dll without any problems into a D program. (I've used this https://github.com/jeffora/extemory library btw - it's for

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread alex
On Saturday, 15 September 2012 at 13:02:32 UTC, Denis Shelomovskij wrote: Again, Digital Mars C runtime library is the problem for everything in D language including DLL-s. Lol okay I think I've also seen it. I've tried to build a hybrid dll with mixed C and D code (just compiled with

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread alex
On Saturday, 15 September 2012 at 13:34:02 UTC, alex wrote: On Saturday, 15 September 2012 at 13:02:32 UTC, Denis Shelomovskij wrote: Again, Digital Mars C runtime library is the problem for everything in D language including DLL-s. Lol okay I think I've also seen it. I've tried to

[Win32] Remotely execute functions of a D program

2012-09-14 Thread alex
Hi everyone, To keeps things short: There shall be a extended debugging feature integrated into Mono-D / VisualD later on. As you may see on http://mono-d.alexanderbothe.com/wordpress/wp-content/uploads/2012/09/2ylpkqg.jpg , there already is debugging functionality possible for windows

Re: [Win32] Remotely execute functions of a D program

2012-09-14 Thread Sean Kelly
On Sep 14, 2012, at 10:34 AM, alex i...@alexanderbothe.com wrote: 1) So to anyone who's got richer experiences in programming assembler and hacking/'debugging' programs than I - how would you do it? 2) And why can't I inject a D DLL right into the program? I tried it with a C DLL, it's

Re: [Win32] Remotely execute functions of a D program

2012-09-14 Thread alex
On Friday, 14 September 2012 at 18:35:53 UTC, Sean Kelly wrote: On Sep 14, 2012, at 10:34 AM, alex i...@alexanderbothe.com wrote: 1) So to anyone who's got richer experiences in programming assembler and hacking/'debugging' programs than I - how would you do it? 2) And why can't I inject a D