View previous topic :: View next topic |
Author |
Message |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Nov 19, 2007 12:46 pm Post subject: [request] help in c# |
|
|
how do i insert an assembly scripts into a C# script?
_________________
Stylo |
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Nov 19, 2007 12:49 pm Post subject: |
|
|
You can't really do that.
Try making a C++ DLL that has an Assembly script, and call the DLL in your C# application.
|
|
Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Nov 19, 2007 12:54 pm Post subject: |
|
|
the problem is that i dont know to program in c++
maybe u can give me the program in c++ and i'll just add the assembly script and if u can to teach me how to call the dll in my c# application it'll be great =]
_________________
Stylo |
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Nov 19, 2007 12:58 pm Post subject: |
|
|
Lol, I don't know how to do the C++ DLL stuff, but I know this:
Code: |
void MyMethod(void)
{
asm
{
//Your ASM script here
}
}
|
But you should Google about that
And as for the C#
Code: |
//using System.Runtime.InteropServices
[DLLImport("DLLNAMEHERE.dll")]
private static extern MyMethod();
//Later on in the code..
MyMethod();
|
I think that's how you do that--I know you do [DLLImport] with API Calling, but I haven't done it with custom DLLs before.
|
|
Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Mon Nov 19, 2007 1:13 pm Post subject: |
|
|
When you create your dll in c++, you would have to export the function.
Code: |
_declspec (dllexport) void Something();
|
To do inline asm, it should start like this
|
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Nov 19, 2007 1:23 pm Post subject: |
|
|
Alright, I'm not too experienced with C++, thank you.
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Nov 19, 2007 4:46 pm Post subject: |
|
|
Just WPM the whole thing.
|
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Nov 19, 2007 5:08 pm Post subject: |
|
|
I don't think 1qaz means to edit something else's memory, I think he/she/it wants to do inline.
|
|
Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Nov 20, 2007 10:39 am Post subject: |
|
|
Oh, then yeah, WPM it all.
I'm going to release my framework for hacking in C# soon, so just wait a little longer.
|
|
Back to top |
|
 |
CyClonenl Newbie cheater
Reputation: 0
Joined: 12 Mar 2005 Posts: 24
|
Posted: Tue Nov 20, 2007 2:00 pm Post subject: |
|
|
I dont think it can be done.
You should check this page, it helped me a lot creating my trainer in C#
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Nov 20, 2007 2:10 pm Post subject: |
|
|
CyClonenl wrote: | I dont think it can be done.
You should check this page, it helped me a lot creating my trainer in C#  |
It can be done. Just use WriteProcessMemory to write your whole script in, the only difference is you would be writing the entire thing in bytes rather than a "script". Just look in memory view and write down what it is, then what it is after the script, and just write that all with WPM
|
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Nov 20, 2007 2:57 pm Post subject: |
|
|
I'm currently working on a framework to help out with hackers, that is lightly based off of gamesguru's C# trainer thing.
It will have the ability to convert an opcode into an array of bytes, but you'regonna have to wait on that. ;)[/quote]
|
|
Back to top |
|
 |
CyClonenl Newbie cheater
Reputation: 0
Joined: 12 Mar 2005 Posts: 24
|
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Nov 20, 2007 4:12 pm Post subject: |
|
|
Yeah, it really is quite easy to do.
Right now, the only thing you can do is use CE to find the array of bytes for an opcode, and use WPM with those.
But sometime in the future, I will have something to convert string to opcode. =)
|
|
Back to top |
|
 |
|