Results 1 to 2 of 2
  1. #1
    Grooguz
    Grooguz is offline
    BanHammer Holder
    Grooguz's Avatar
    Join Date
    2010 May
    Posts
    678
    Thanks Thanks Given 
    152
    Thanks Thanks Received 
    537
    Thanked in
    167 Posts
    Rep Power
    15

    Run Process with CreateProcess

    using System;
    using System.Windows;
    using System.Diagnostics;
    using System.Runtime.InteropServices;

    public struct PROCESS_INFORMATION
    {
    public IntPtr hProcess;
    public IntPtr hThread;
    public uint dwProcessId;
    public uint dwThreadId;
    }



    public struct STARTUPINFO
    {
    public uint cb;
    public string lpReserved;
    public string lpDesktop;
    public string lpTitle;
    public uint dwX;
    public uint dwY;
    public uint dwXSize;
    public uint dwYSize;
    public uint dwXCountChars;
    public uint dwYCountChars;
    public uint dwFillAttribute;
    public uint dwFlags;
    public short wShowWindow;
    public short cbReserved2;
    public IntPtr lpReserved2;
    public IntPtr hStdInput;
    public IntPtr hStdOutput;
    public IntPtr hStdError;
    }
    public struct SECURITY_ATTRIBUTES
    {
    public int length;
    public IntPtr lpSecurityDescriptor;
    public bool bInheritHandle;
    }
    namespace CreateProcess
    {
    public partial class MainWindow : Window
    {
    public MainWindow()
    {
    InitializeComponent();

    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
    STARTUPINFO si = new STARTUPINFO();

    PROCESS_INFORMATION pi = new PROCESS_INFORMATION();

    CreateProcess("Requiem.exe", "128.241.93.161 -FromLauncher 0/0 0 0 1 3 0", IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi);
    }

    [DllImport("kernel32.dll")]
    static extern bool CreateProcess(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes,
    bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment,
    string lpCurrentDirectory, ref STARTUPINFO lpStartupInfo,out PROCESS_INFORMATION lpProcessInformation);

    }
    }

    by Dwar
    this part of code was moved from https://progamercity.net/requiem/19-...auncher-3.html

  2. #2
    pohkak
    pohkak is offline
    Member-in-training pohkak's Avatar
    Join Date
    2010 Dec
    Posts
    171
    Thanks Thanks Given 
    29
    Thanks Thanks Received 
    10
    Thanked in
    10 Posts
    Rep Power
    0
    in your code the part wich run process with "CreatProcess" like you name it you posted also a bounch useless data wich was used for somethink else .
    If anyone who is starting to learn C# going to get examples here .... he will be lost in 2 sec.

    Better help me out pls to find offsets for MOb under targed X,Y (RequiemOnline)
    Are you hackers ?...No, wee are russians!

Similar Threads

  1. Replies: 2
    Last Post: 2018-04-02, 04:48 PM
  2. [C++] Process Injection
    By Dwar in forum C/C++
    Replies: 2
    Last Post: 2014-06-29, 08:00 PM
  3. [Process, Services & Network] Process Hacker
    By wildspirit in forum Files & Tools
    Replies: 0
    Last Post: 2011-11-09, 05:00 AM
  4. Process dump files
    By explosionsinthe in forum General Talk
    Replies: 3
    Last Post: 2011-08-02, 02:19 AM
  5. [AutoIt] ASM injection into process
    By pohkak in forum AutoIt
    Replies: 2
    Last Post: 2011-07-30, 10:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •