News for hackers. Stuff that matters.
Re:A Diablo 3 Story by readerrrr on Monday August 11, 2014 @06:13PM (#8165602)
How did the bot interact with the game? You could send key commands and text to the program, but you can't easily read the item price for example. That script at the end doesn't tell much.
Re:A Diablo 3 Story by bri3d on Tuesday August 12, 2014 @01:28AM (#8166663)
Along with the other approaches mentioned, another interesting one is to intercept the graphics library function calls before they enter the library code.

This strategy has been successfully used for a variety of game automation, including WoW auction house arbitrage and a multiplayer Starcraft II AI / bot.

This method is advantageous because it doesn't have the overhead or uncertainty of going from pixels back to information but it also does not require patching or inspecting the game's address space which is fragile and often triggers anti-cheating or anti-botting systems.

You can read a good write-up about this method here:

http://graphics.stanford.edu/~mdfisher/D3D9Interceptor.html

Re:A Diablo 3 Story by pizzeys on Tuesday August 12, 2014 @04:21AM (#8166967)
> or inspecting the game's address space which is fragile and often triggers anti-cheating or anti-botting systems

Just looking without touching rarely (never, to be honest) triggers any anti-cheating systems. It's madness enough trying to stop people touching, trying to stop them looking reliably is futile.

The graphics interception hacks are pretty neat though, but I wouldn't say it's a common method at all.

Re:A Diablo 3 Story by erikb on Tuesday August 12, 2014 @07:04AM (#8167297)
Then what is a common method?
Re:A Diablo 3 Story by arvidkahl on Monday August 11, 2014 @06:37PM (#8165691)
The most basic answer is: most bots inject some code into the running client, getting access to data structures and references. They read out the data from memory. Some do OCR, others use Library APIs to do that, some even hijack the network stack and talk to the servers themselves.

A decade ago, botting in a game called Ragnarok Online was huge. You can find a hint of how structured those communities were here: http://www.openkore.com/index.php/OpenKore

Re:A Diablo 3 Story by lost-theory on Monday August 11, 2014 @07:37PM (#8165885)
Re:A Diablo 3 Story by cheepin on Monday August 11, 2014 @06:21PM (#8165627)
You can screen scrape the screen and do some rudimentary image parsing for OCR.
Re:A Diablo 3 Story by Mandatum on Monday August 11, 2014 @07:51PM (#8165916)
WoW's botters took this one step further, disassembling the game to the point where they made WoW "clients" which could bot/gold farm at <15MB of memory - meaning you could have a hundred accounts botting on one PC.
Re:A Diablo 3 Story by virtualSatai on Monday August 11, 2014 @08:46PM (#8166085)
Do you have any more info/articles/discussions?
Re:A Diablo 3 Story by DownGoat on Monday August 11, 2014 @11:10PM (#8166430)
Here is a Defcon video about the topic https://www.youtube.com/watch?v=hABj_mrP-no
Re:A Diablo 3 Story by gre on Tuesday August 12, 2014 @01:04AM (#8166635)
Here's a Blackhat video with a complete C# WoW client from 2006. https://www.youtube.com/watch?v=bKbZdlUFAK4 11:55
Re:A Diablo 3 Story by Mandatum on Tuesday August 12, 2014 @04:08PM (#8169855)
Ah yep, it was the Defcon video I saw which mentioned it, never saw the C# code. Badass.
Re:A Diablo 3 Story by Mandatum on Monday August 11, 2014 @09:05PM (#8166140)
Trying to find it, it was a news article written as an interview with one of the original WoW Glider creators and his friend who also wrote bots.. Having trouble finding it..
Re:A Diablo 3 Story by jschmitz28 on Monday August 11, 2014 @09:50PM (#8166272)
This particular bot seems to be more advanced than that:

> Later I found out how to completely turn off the game’s graphics, making the Diablo windows look like black boxes.