Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > Wolfteam
You last visited: Today at 16:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# - Hack

Discussion on C# - Hack within the Wolfteam forum part of the Shooter category.

Reply
 
Old   #1
 
elite*gold: 237
Join Date: May 2013
Posts: 336
Received Thanks: 89
C# - Hack

Hi,

habe gerade mal ein nützliches Tutorial gefunden, welches ich auch befolgt habe und mir einen Test-InvHack machen wollte.

Program.cs:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using WindowsFormsApplication1;

namespace 
{
    static class Program
    {
        /// <summary>
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
Form1.cs:

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        [DllImport("kernel32.dll", SetLastError = true)]
        static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, uint nSize, out int lpNumberOfBytesWritten);
        [DllImport("kernel32.dll")]
        public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);

        public Form1()
        {
            InitializeComponent();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            IntPtr Addr = (IntPtr)0x34239FD7;
            if ((string)listBox1.SelectedItem == "AAA12GL")
            {
                WriteIntegr(Addr, 7101);
            }
            
        }

        private void WriteIntegr(IntPtr Address, int Value)
        {
            var array = BitConverter.GetBytes(Value);
            int bytesWritten;
            int WolfId = Process.GetProcessesByName("Wolfteam.bin")[0].Id;
            IntPtr hProc = OpenProcess([U][B]ADRESSE[/B][/U], false, WolfId);
            WriteProcessMemory(hProc, Address, array, (uint)array.Length, out bytesWritten);
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
So, nur funktioniert das ganze nicht bzw. kann auch gar nicht funktionieren, da mir die ProcessID fehlt.
Für Softnyx lautet diese ja anscheinend 0x1F0FF.
Und für AERIA DE? Da einfach nach dem Prozess in CE schauen und die Nummer da einbauen?

Und btw, kann der Hack überhaupt in diesem Zustand laufen?
X3enox is offline  
Old 06/14/2013, 16:35   #2
 
C0RE''s Avatar
 
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
Mach das am besten in Visual Basic.
dazu brauchst du auch nur WriteInteger("Wolfteam.bin","Adresse","Value","Byt e")
Das machst du in nen Timer und fertig!
C0RE' is offline  
Old 06/14/2013, 16:53   #3
 
elite*gold: 237
Join Date: May 2013
Posts: 336
Received Thanks: 89
Ja, aber brauche ich noch die ProcessID?
Also das was da fett markiert ist.
Und hast du zufällig die für DE? Wäre dir dankbar.

Edit: Fehler 1 "WriteInteger" wurde nicht deklariert. Auf das Objekt kann aufgrund seiner Schutzstufe möglicherweise nicht zugegriffen werden.
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WriteInteger("wolfteam.bin", "&34398900", "3")
    End Sub
End Class
X3enox is offline  
Old 06/14/2013, 20:54   #4
 
C0RE''s Avatar
 
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
Quote:
Originally Posted by X3enox View Post
Ja, aber brauche ich noch die ProcessID?
Also das was da fett markiert ist.
Und hast du zufällig die für DE? Wäre dir dankbar.

Edit: Fehler 1 "WriteInteger" wurde nicht deklariert. Auf das Objekt kann aufgrund seiner Schutzstufe möglicherweise nicht zugegriffen werden.
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WriteInteger("wolfteam.bin", "&34398900", "3")
    End Sub
End Class

Du brauchst die WriteMemory Class. -> Google
C0RE' is offline  
Thanks
1 User
Old 06/14/2013, 22:38   #5
 
3DProgrammer's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 133
Received Thanks: 98
I will explain it to you, 0x1F0FF is the memory access rights which means MEMORY ALL ACCESS.
The ProcessID which you need is here:
Quote:
int WolfId = Process.GetProcessesByName("Wolfteam.bin")[0].Id;
But that should work, i don't know why you want to edit it, you just need an address and you are done.

BTW: Your error:

Quote:
Edit: Fehler 1 "WriteInteger" wurde nicht deklariert. Auf das Objekt kann aufgrund seiner Schutzstufe möglicherweise nicht zugegriffen werden.
Is because i wrote the function name wrongly "WriteIntegr" it should be "WriteInteger", also his parameters is wrong if you gonna use my function:
Quote:
WriteIntegr("Wolfteam.bin","Adresse","Value","Byt e")
It should be:
Quote:
WriteIntegr(Address, value)

Final: I have edited it & made it easier, should work.

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        [DllImport("kernel32.dll", SetLastError = true)]
        static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, uint nSize, out int lpNumberOfBytesWritten);

        public Form1()
        {
            InitializeComponent();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            IntPtr Addr = (IntPtr)0x34239FD7;
            if ((string)listBox1.SelectedItem == "AAA12GL")
            {
                WriteInteger(Addr, 7101);
            }
            
        }

        private void WriteInteger(IntPtr Address, int Value)
        {
            var array = BitConverter.GetBytes(Value);
            int bytesWritten;
            IntPtr hProc = Process.GetProcessesByName("Wolfteam.bin")[0].Handle;
            WriteProcessMemory(hProc, Address, array, (uint)array.Length, out bytesWritten);
        }
    }
}
3DProgrammer is offline  
Thanks
2 Users
Old 06/15/2013, 14:21   #6
 
elite*gold: 237
Join Date: May 2013
Posts: 336
Received Thanks: 89
First of all, thank you.

My problem with "WrinteInteger" was this in my VB-Code, not in the C#-Code ^^

I will test both, thanks.


Edit: Hm, es kommt "Failed to open Wolfteam.bin", obwohl es offen ist...als Administrator ausgeführt, erledigt.
X3enox is offline  
Old 06/16/2013, 01:10   #7
 
elite*gold: 0
Join Date: Nov 2009
Posts: 307
Received Thanks: 8
Und jetzt funktioniert er?
Das ist ja mal ziemlich easy.. :/
timi257 is offline  
Old 06/18/2013, 20:21   #8
 
C0RE''s Avatar
 
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
Release doch nicht alles. Umso schnell wird es wieder gepatcht!
C0RE' is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Release] Vac Hack, Zoom hack, auto pot hack, Speed hack me+ mobs, shop hack...
04/02/2011 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 25 Replies
Deleted people must learn to do it by them self from now off ! :)



All times are GMT +1. The time now is 16:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.