Results 1 to 3 of 3
  1. #1
    keving's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    31
    My Mood
    Relaxed

    [Java] Killstreak Class1 for example.

    Sorry for my bad english.

    You can make a Hack while coding in java using JNA (Java Native Access).
    Here is an Wrapper for the methods i used in my Test Hack wich works fine.
    Credits goes to JNA and me.

    Code:
    package de.keving;
    
    import com.sun.jna.*;
    import com.sun.jna.ptr.*;
    
    public class W32Api {
        public static final int PROCESS_QUERY_INFORMATION = 0x0400;
        public static final int PROCESS_VM_READ = 0x0010;
        public static final int PROCESS_VM_WRITE = 0x0020;
        public static final int PROCESS_VM_OPERATION = 0x0008;
        public static final int PROCESS_ACCESS_FLAG = 0x0439;
    	
        private interface User32 extends Library {
        	
    		User32 INSTANCE = (User32) Native.loadLibrary("user32", User32.class);
    		
    		Pointer FindWindowA(String winClass, String title);
    		Pointer FindWindowByCaptionA(Pointer ZeroOnly, String lpWindowName);
    		String GetWindowTextA(Pointer hwnd);
    	
    	}
        
        private interface Psapi extends Library
        {
    	    Psapi INSTANCE = (Psapi) Native.loadLibrary("Psapi", Psapi.class);
    	    boolean EnumProcesses(int []ProcessIDsOut,int size , int[] BytesReturned);
    	    int GetProcessImageFileNameW(Pointer Process, char[] outputname, int lenght);
    	    int GetModuleFileNameExA (Pointer process, Pointer hModule, byte[] lpString, int nMaxCount);
        }
    	
        private interface Kernel32 extends Library {
        	
            Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
    
            Pointer OpenProcess(int dwDesiredAccess, boolean bInheritHandle, int dwProcessId);
            boolean ReadProcessMemory(Pointer hProcess, int inBaseAddress, Pointer outputBuffer, int nSize, IntByReference outNumberOfBytesRead);
            boolean WriteProcessMemory(Pointer hProcess, Pointer pAddress, Pointer inputBuffer, int nSize, IntByReference outNumberOfBytesWritten);
            int WriteProcessMemory(Pointer hProcess, int lpBaseAddress, int[] lpBuffer, int nSize, int[] lpNumberOfBytesWritten);
            int GetLastError();
            boolean EnumProcesses(int []ProcessIDsOut,int size , int[] BytesReturned);
            int GetProcessImageFileNameW(Pointer Process, char[] outputname, int lenght);
        }
        
        public static boolean EnumProcesses(int []ProcessIDsOut,int size , int[] BytesReturned)
        {
        	return Psapi.INSTANCE.EnumProcesses(ProcessIDsOut, size, BytesReturned);
        }
        
        public static int GetProcessImageFileNameW(Pointer Process, char[] outputname, int lenght)
        {
        	return Psapi.INSTANCE.GetProcessImageFileNameW(Process, outputname, lenght);
        }
        
        public static Pointer OpenProcess(int dwDesiredAccess, boolean bInheritHandle, int dwProcessId)
        {
        	return Kernel32.INSTANCE.OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId);
        }
    
    	public static boolean ReadProcessMemory(Pointer process, int offset, Pointer outputBuffer, int size, IntByReference BytesRead)
    	{
    		return Kernel32.INSTANCE.ReadProcessMemory(process, offset, outputBuffer, size, BytesRead);
    	}
    	
    	public static int WriteProcessMemory(Pointer hProcess, int lpBaseAddress, int[] lpBuffer, int nSize, int[] lpNumberOfBytesWritten)
    	{
    		return Kernel32.INSTANCE.WriteProcessMemory(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten);
    	}
    	
    	public static boolean WriteProcessMemory(Pointer hProcess, Pointer pAddress, Pointer inputBuffer, int nSize, IntByReference outNumberOfBytesWritten)
    	{
    		return Kernel32.INSTANCE.WriteProcessMemory(hProcess, pAddress, inputBuffer, nSize, outNumberOfBytesWritten);
    	}
    	
    	public static int GetModuleFileNameEx (Pointer process, Pointer hModule, byte[] lpString, int nMaxCount)
    	{
    		return Psapi.INSTANCE.GetModuleFileNameExA(process, hModule, lpString, nMaxCount);
    	}
    }
    To set a Killstreak i use the following peace of code:
    Code:
    int offset = 30209969; // 01CCF7B3
    int[] killstreak = { 1 }; // UAV
    W32Api.WriteProcessMemory(process, offset, killstreak, 1, null);
    process = The Pointer (handle) to the Game.
    offset = The Address to write the bytes.
    1 = the size of bytes we want to write.

    Maybe some could use it.

  2. #2
    jikkie10's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    TheHackingDutchLand
    Posts
    21
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    Good job boy!
    I am Everything proof, but when it comes to homework, it fails

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,540
    My Mood
    Angelic
    Quote Originally Posted by keving View Post
    Sorry for my bad english.

    You can make a Hack while coding in java using JNA (Java Native Access).
    Here is an Wrapper for the methods i used in my Test Hack wich works fine.
    Credits goes to JNA and me.

    Code:
    package de.keving;
    
    import com.sun.jna.*;
    import com.sun.jna.ptr.*;
    
    public class W32Api {
        public static final int PROCESS_QUERY_INFORMATION = 0x0400;
        public static final int PROCESS_VM_READ = 0x0010;
        public static final int PROCESS_VM_WRITE = 0x0020;
        public static final int PROCESS_VM_OPERATION = 0x0008;
        public static final int PROCESS_ACCESS_FLAG = 0x0439;
    	
        private interface User32 extends Library {
        	
    		User32 INSTANCE = (User32) Native.loadLibrary("user32", User32.class);
    		
    		Pointer FindWindowA(String winClass, String title);
    		Pointer FindWindowByCaptionA(Pointer ZeroOnly, String lpWindowName);
    		String GetWindowTextA(Pointer hwnd);
    	
    	}
        
        private interface Psapi extends Library
        {
    	    Psapi INSTANCE = (Psapi) Native.loadLibrary("Psapi", Psapi.class);
    	    boolean EnumProcesses(int []ProcessIDsOut,int size , int[] BytesReturned);
    	    int GetProcessImageFileNameW(Pointer Process, char[] outputname, int lenght);
    	    int GetModuleFileNameExA (Pointer process, Pointer hModule, byte[] lpString, int nMaxCount);
        }
    	
        private interface Kernel32 extends Library {
        	
            Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
    
            Pointer OpenProcess(int dwDesiredAccess, boolean bInheritHandle, int dwProcessId);
            boolean ReadProcessMemory(Pointer hProcess, int inBaseAddress, Pointer outputBuffer, int nSize, IntByReference outNumberOfBytesRead);
            boolean WriteProcessMemory(Pointer hProcess, Pointer pAddress, Pointer inputBuffer, int nSize, IntByReference outNumberOfBytesWritten);
            int WriteProcessMemory(Pointer hProcess, int lpBaseAddress, int[] lpBuffer, int nSize, int[] lpNumberOfBytesWritten);
            int GetLastError();
            boolean EnumProcesses(int []ProcessIDsOut,int size , int[] BytesReturned);
            int GetProcessImageFileNameW(Pointer Process, char[] outputname, int lenght);
        }
        
        public static boolean EnumProcesses(int []ProcessIDsOut,int size , int[] BytesReturned)
        {
        	return Psapi.INSTANCE.EnumProcesses(ProcessIDsOut, size, BytesReturned);
        }
        
        public static int GetProcessImageFileNameW(Pointer Process, char[] outputname, int lenght)
        {
        	return Psapi.INSTANCE.GetProcessImageFileNameW(Process, outputname, lenght);
        }
        
        public static Pointer OpenProcess(int dwDesiredAccess, boolean bInheritHandle, int dwProcessId)
        {
        	return Kernel32.INSTANCE.OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId);
        }
    
    	public static boolean ReadProcessMemory(Pointer process, int offset, Pointer outputBuffer, int size, IntByReference BytesRead)
    	{
    		return Kernel32.INSTANCE.ReadProcessMemory(process, offset, outputBuffer, size, BytesRead);
    	}
    	
    	public static int WriteProcessMemory(Pointer hProcess, int lpBaseAddress, int[] lpBuffer, int nSize, int[] lpNumberOfBytesWritten)
    	{
    		return Kernel32.INSTANCE.WriteProcessMemory(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten);
    	}
    	
    	public static boolean WriteProcessMemory(Pointer hProcess, Pointer pAddress, Pointer inputBuffer, int nSize, IntByReference outNumberOfBytesWritten)
    	{
    		return Kernel32.INSTANCE.WriteProcessMemory(hProcess, pAddress, inputBuffer, nSize, outNumberOfBytesWritten);
    	}
    	
    	public static int GetModuleFileNameEx (Pointer process, Pointer hModule, byte[] lpString, int nMaxCount)
    	{
    		return Psapi.INSTANCE.GetModuleFileNameExA(process, hModule, lpString, nMaxCount);
    	}
    }
    To set a Killstreak i use the following peace of code:
    Code:
    int offset = 30209969; // 01CCF7B3
    int[] killstreak = { 1 }; // UAV
    W32Api.WriteProcessMemory(process, offset, killstreak, 1, null);
    process = The Pointer (handle) to the Game.
    offset = The Address to write the bytes.
    1 = the size of bytes we want to write.

    Maybe some could use it.
    Shock.
    Is Java so simulate to C# ?!
    Shit, it should be easy to learn. (If I need it OFC :P)

    Nice work BTW.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

Similar Threads

  1. Experienced Java Coder Looking for Work!
    By Icøn in forum RuneScape Discussions
    Replies: 30
    Last Post: 08-05-2011, 07:38 AM
  2. [Solved]any killstreak hack for alteriwnet?
    By speedman89 in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 01-20-2011, 03:10 AM
  3. [Release] CoD: Black Ops - Killstreaks & Classes for Cracked MP!
    By Shucker in forum Call of Duty 7 - Black Ops Hacks & Cheats
    Replies: 81
    Last Post: 12-05-2010, 09:34 PM
  4. (TUTORIAL) ComboBox For Example TELEPORT
    By apezwijn in forum Visual Basic Programming
    Replies: 9
    Last Post: 06-26-2008, 03:22 AM
  5. killing drivers in ohara for example
    By papiopo in forum WarRock - International Hacks
    Replies: 6
    Last Post: 07-09-2006, 11:26 PM