{"id":31159,"date":"2023-01-19T19:57:18","date_gmt":"2023-01-19T14:27:18","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/"},"modified":"2023-01-19T19:57:18","modified_gmt":"2023-01-19T14:27:18","slug":"solved-how-to-control-one-program-from-other","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/","title":{"rendered":"[Solved] how to control one program from other"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-18160091\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"18160091\" data-parentid=\"17770240\" data-score=\"1\" data-position-on-page=\"2\" data-highest-scored=\"0\" data-question-has-accepted-highest-score=\"0\" itemprop=\"suggestedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Well, your starting sentence was:<br \/>\n&#8220;I have seen trainers for games which can set health of player and spawn cars etc. I want to make something similar to that.&#8221;<\/p>\n<p>Here&#8217;s a very nice reference code that does what you talked about in C++<br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.codeproject.com\/Articles\/7468\/Game-Wizard\">http:\/\/www.codeproject.com\/Articles\/7468\/Game-Wizard<\/a><\/p>\n<p>First strengthen your C++ skills and then study what he does there.<\/p>\n<p>A general description would be that the &#8220;victim&#8221; process memory is search for a certain value.<br \/>\nUsually something that represents a value that you are aware of &#8211; for example, number of bullets of your character.<br \/>\nUsually a big list of location in memory is found at first.<br \/>\nBut then, you shoot a bullet, and now the list that you previously found (and only it!) is searched for the new value.<br \/>\nEach step discards the &#8220;false positive&#8221; finds, until in the end you know the location of the variable that you searched for.<br \/>\nAfter doing this you are able to change it as well.<\/p>\n<p>Now, going to the general topic &#8211; this technique is only a specific approach, and while very helpful in some cases, many times you need stronger and different tools.<\/p>\n<p>Here&#8217;s a very similar question: How can I find the data structure that represents mine layout of Minesweeper in memory?<\/p>\n<p>I personally find IDA to be an amazing tool for reverse engineering and analyzing an application (both statically and dynamically).<br \/>\nIn combination with &#8220;idapython&#8221; (ida binding for python) it feels unstoppable \ud83d\ude42<\/p>\n<p>Reverse engineering requires that you have at least basic knowledge of your target machine architecture &#8211; for example, x86 instructions.<\/p>\n<p>Search for IDA tutorials to get the hang of it.<br \/>\nThere are many &#8220;crackme&#8217;s&#8221; floating around, those are challenges to crack (for educational purposes) varying types of application protections.<br \/>\nIt will teach you a lot.<\/p>\n<p>You can also search google for &#8220;reverse engineering for beginners&#8221;.<br \/>\nThe web has tons of resources on this topic. The amount of information can be intimidating at first, so make sure you find a basic site that helps you to build your skills gradually.<\/p>\n<p>Another important term that you should know is &#8220;hooking&#8221;. While making it yourself will teach you the most, there are libraries that perform this operation for you.<br \/>\nThe idea is to gain control over a certain function.<br \/>\nWhenever anyone calls that function, the control is first passed to your code, and you can decide what to do.<br \/>\nFor example, you can decide to simply log this call to a file and call the original function,<br \/>\nor you can do more complicated things.<\/p>\n<p>I found <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/tuts4you.com\/\">http:\/\/tuts4you.com\/<\/a> to contain many useful tutorials and snippets of information.<\/p>\n<p>Oh, and as people said, Java is not your friend in this case.<br \/>\nC\/C++\/Assembly probably are.<\/p>\n<p>Starting a completely new topic, especially reverse engineering is tricky in the beginning, but I can assure you it&#8217;s very rewarding.<\/p>\n<p>Edit:<br \/>\nI have a surprise for you:<br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.uninformed.org\/?v=1&amp;a=7\">http:\/\/www.uninformed.org\/?v=1&amp;a=7<\/a><\/p>\n<p>I simply googled reverse engineering tutorial mine sweeper \ud83d\ude09<\/p>\n<p>Good luck \ud83d\ude42<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">1<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved how to control one program from other <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Well, your starting sentence was: &#8220;I have seen trainers for games which can set health of player and spawn cars etc. I want to make something similar to that.&#8221; Here&#8217;s a very nice reference code that does what you talked about in C++ http:\/\/www.codeproject.com\/Articles\/7468\/Game-Wizard First strengthen your C++ skills and then study what he &#8230; <a title=\"[Solved] how to control one program from other\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\" aria-label=\"More on [Solved] how to control one program from other\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[324,5651,5802,4009],"class_list":["post-31159","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c","tag-dll-injection","tag-ollydbg","tag-reverse-engineering"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] how to control one program from other - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] how to control one program from other - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Well, your starting sentence was: &#8220;I have seen trainers for games which can set health of player and spawn cars etc. I want to make something similar to that.&#8221; Here&#8217;s a very nice reference code that does what you talked about in C++ http:\/\/www.codeproject.com\/Articles\/7468\/Game-Wizard First strengthen your C++ skills and then study what he ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-19T14:27:18+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] how to control one program from other\",\"datePublished\":\"2023-01-19T14:27:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\"},\"wordCount\":526,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"c++\",\"dll-injection\",\"ollydbg\",\"reverse-engineering\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\",\"name\":\"[Solved] how to control one program from other - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2023-01-19T14:27:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] how to control one program from other\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] how to control one program from other - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] how to control one program from other - JassWeb","og_description":"[ad_1] Well, your starting sentence was: &#8220;I have seen trainers for games which can set health of player and spawn cars etc. I want to make something similar to that.&#8221; Here&#8217;s a very nice reference code that does what you talked about in C++ http:\/\/www.codeproject.com\/Articles\/7468\/Game-Wizard First strengthen your C++ skills and then study what he ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/","og_site_name":"JassWeb","article_published_time":"2023-01-19T14:27:18+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] how to control one program from other","datePublished":"2023-01-19T14:27:18+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/"},"wordCount":526,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["c++","dll-injection","ollydbg","reverse-engineering"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/","url":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/","name":"[Solved] how to control one program from other - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2023-01-19T14:27:18+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-control-one-program-from-other\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] how to control one program from other"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/31159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=31159"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/31159\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=31159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=31159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=31159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}