| View previous topic :: View next topic |
| Author |
Message |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Sat Sep 01, 2007 9:30 pm Post subject: Few C# Code requests |
|
|
Close another running app
And Also, how to inject the process of a program into another programs process _________________
CEF Moderator since 2007 ^_^
ZenX-Engine |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Sep 01, 2007 9:37 pm Post subject: |
|
|
1. TerminateProcess
2. You're not being clear enough |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Sep 01, 2007 9:41 pm Post subject: Re: Few C# Code requests |
|
|
| ZenXChaos wrote: | | And Also, how to inject the process of a program into another programs process |
Google for .dll injection. |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Sep 01, 2007 9:44 pm Post subject: |
|
|
| that's not "injecting a process into another program" |
|
| Back to top |
|
 |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Sat Sep 01, 2007 9:46 pm Post subject: |
|
|
Like, Inject MZBot.exe into MapleStory.exe. _________________
CEF Moderator since 2007 ^_^
ZenX-Engine |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Sep 01, 2007 10:20 pm Post subject: |
|
|
| appalsap wrote: | | that's not "injecting a process into another program" |
I assumed thats what he wanted. He wasn't too clear. It sounded like he wanted his code to be ran in the context of another process, hence dll injection. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Sep 01, 2007 10:22 pm Post subject: |
|
|
| 1. Pretty sure you can use the System.Diagnostics.Process class as well. |
|
| Back to top |
|
 |
the_undead Expert Cheater
Reputation: 1
Joined: 12 Nov 2006 Posts: 235 Location: Johannesburg, South Africa
|
|
| Back to top |
|
 |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Sun Sep 02, 2007 6:40 am Post subject: |
|
|
| the_undead wrote: | | http://somebastardstolemyname.wordpress.com/2007/03/09/killing-processes-in-c/ |
Nice, for a second i thought you were being sarcastic.
+Rep for j00
in 4584 seconds:( _________________
CEF Moderator since 2007 ^_^
ZenX-Engine |
|
| Back to top |
|
 |
gamesguru Grandmaster Cheater
Reputation: 0
Joined: 22 Mar 2006 Posts: 926 Location: detroit
|
Posted: Mon Sep 03, 2007 5:29 pm Post subject: Re: Few C# Code requests |
|
|
| ZenXChaos wrote: | Close another running app
And Also, how to inject the process of a program into another programs process |
The first is easy:
| Code: |
foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcesses())
{
if (p.MainWindowTitle.ToLower().Contains("notepad")) //use whatever methodology you want, i just used the mainwindow title, there's also ProcessName
p.Kill();
}
|
The second isn't so easy...and I'm not exactly sure how to do it right now. _________________
|
|
| Back to top |
|
 |
|