Java Memory Editing Lib for Windows menu

User Tag List

Results 1 to 11 of 11
  1. #1
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java Memory Editing Lib for Windows

    WGTools


    SO WHAT IS IT?
    Well as the title implies: it is a memory editing library for use with java on windows systems. It makes use of user32,win32 and kernel32 through the JNA libs.


    WHAT CAN IT DO?
    Not much other than basic memory reading and writing. Also has some input functionality to send virtual input to background windows/processes.

    BUT WHY?
    Well I recently started getting into reading and writing memory out of curiosity and found that my programming language(JAVA) of choice is less than ideal for this sort of thing. Leave it to me to keep trying anyways After all it was kind of a fun thing to learn to do. The lib was made with creating a bot program in mind and since most of the java bots presented on this sight are more of pixel readers i decided to try and go deeper than that. I know this sort of thing is easier in other lower level languages but like i said java is my language of choice(its one of the ones I started learning on) and so it still appeals to me very much.


    HOW TO USE
    Simply add the WGtools.jar to your build path and then create a WGTools Instance, simple as that.Make sure you are executing your code with admin writes so that it is able to read and write to memory. in development this can be done simply by opening your ide as admin. To make a runnable jar work you must open it with a .bat that is run as admin or pack it into an exe that requires admin.

    EXAMPLE

    simple example class
    Code:
    import com.wgtools.input.Input.Key;
    import com.wgtools.jna.JnaUtils;
    import com.wgtools.mem.WGTools;
    
    public class example {
    	public static void main(String args[]){
    		WGTools tools = new WGTools(); 	//create an instance of the tools
    		//JnaUtils.getWinHwnd() returns an array or Hwnds with the first value(0) 
    		//always being the foremost
    		tools.open(JnaUtils.getWinHwnd("Program window name").get(0));  //open the process of the given window
    		tools.input().keyDown(Key.UP);		//send keyup(hex keycode) to the specified window
    		tools.sleep(10000);					//sleep for 10 seconds
    		tools.input().keyUp(Key.UP);		//send keydown 
    		
    		tools.input.simulateKeyPress(Key.ENTER,Key.SHIFT,10);  //simulate a keypress(keytopress,modifier,timepressed)
    		
    		int exampleint = tools.readInt(0xAF00FFF);	//read an int from the given window/proccess
    		System.out.println(exampleint);				//print out the result
    		tools.close();								//close process used and dispose of tools
    	}
    }


    Any feedback is appreciated. Also feel free to post questions i will answer to the best of my ability.
    Attached Files Attached Files

    Java Memory Editing Lib for Windows
  2. Thanks Torpedoes, Miksu, Corthezz, hackerlol, jacktyme (5 members gave Thanks to kyperbelt for this useful post)
  3. #2
    Torpedoes's Avatar ★ Elder ★ Doomsayer
    Authenticator enabled
    Reputation
    1147
    Join Date
    Sep 2013
    Posts
    956
    Thanks G/R
    148/415
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like a great little project, would've come in handy when I was still developing bots with Java. It's funny though, I was actually once like you. I used Java as my go to language for almost every project. For the same reason as you in fact. Though I sorta grew out of it you could say. Went to C# before finally settling on C++ and JavaScript. Either way, best of luck to you and never stop exploring new technologies!

  4. #3
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you torpedoes!, I have done a few things in c and c# recently involving this sort of thing. I just thought it would be cool to try it in java I might be one of the few who actually like it hehe even if it is not the cleanest language.

  5. #4
    Filint's Avatar Contributor Authenticator enabled
    Reputation
    167
    Join Date
    Mar 2014
    Posts
    97
    Thanks G/R
    23/56
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very interesting! I have to use Java during the day so it's probably the language I'm most familiar with, although my favourite is probably c# because of its flexibility and friendliness

    Very nice lib, great work!

  6. #5
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice release!
    Check my blog: https://zzuks.blogspot.com

  7. #6
    sadnecc's Avatar Member
    Reputation
    1
    Join Date
    Aug 2014
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you give a example about unlock lua?

  8. #7
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by sadnecc View Post
    can you give a example about unlock lua?
    unfortunately i dont think there is an easy way to do this unless you actually know what you are doing with my lib. And i dont know how to do it myself at this moment.

    Currently the only way to inject assembly is by injecting a bytebuffer into allocated memory and this is very cumbersome since you have to manually input opcodes. Currently all you can do is do simple memory reads and writes and idk if you can unlock lua with just this.

    I will try to look into this more maybe i can whip something up.

  9. #8
    ~Unknown~'s Avatar Contributor
    Reputation
    193
    Join Date
    Jan 2009
    Posts
    211
    Thanks G/R
    0/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any chance you'd release the source code for it? I wouldn't mind playing around with this.
    ~Unknown~

    Follow me on Twitter: https://twitter.com/TheUnknownDev

  10. #9
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ~Unknown~ View Post
    Any chance you'd release the source code for it? I wouldn't mind playing around with this.
    yeah i just wiped my computer recently because of a failed windows 10 update, but i think i still have the source on a box account somewhere. Ill put up a zip soon as i can.

  11. #10
    Igzz's Avatar ✬✬✬✬✬✬✬✬✬✬ CoreCoins Purchaser
    Reputation
    908
    Join Date
    Jan 2007
    Posts
    1,897
    Thanks G/R
    59/76
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use a java de-compiler as the code isn't obfuscated.

    Java Decompiler


  12. #11
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the source for it. My commenting is very bad but the code itself is not very complicated. Any questions feel free to ask.

    wgtoolssrc.zip

  13. Thanks Igzz, charly (2 members gave Thanks to kyperbelt for this useful post)

Similar Threads

  1. [Release] SHInject - A small Memory Editing library for 3.3.5:12340
    By Blackplayer27 in forum WoW Memory Editing
    Replies: 4
    Last Post: 09-22-2020, 06:06 PM
  2. Replies: 26
    Last Post: 02-02-2020, 11:43 PM
  3. FFXIV - Memory Editing - Pointer for own bot
    By geograman in forum Final Fantasy XIV
    Replies: 7
    Last Post: 09-23-2013, 09:43 AM
  4. HadesMem - A Windows Memory Hacking Library for C++
    By Cypher in forum WoW Memory Editing
    Replies: 81
    Last Post: 02-10-2013, 03:24 PM
  5. [Request]Anty-Afk memory edit for 2.4.3
    By patrykos91 in forum WoW Memory Editing
    Replies: 3
    Last Post: 03-18-2010, 04:27 PM
All times are GMT -5. The time now is 05:10 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search