SteamRE / SteamKit

SteamKit2 is a .NET library designed to interoperate with Valve's Steam network. It aims to provide a simple, yet extensible, interface to perform various actions on the network.
GNU Lesser General Public License v2.1
2.63k stars 497 forks source link

nethook2 does not work on the the lastest version of dota2 #928

Closed ghost closed 4 years ago

ghost commented 4 years ago

Thanks for this great project, I would like to report a problem, nethook2 does not work on the latest version of dota2, and nothing can be dumped. when launch dota2 use x64,it prompt this: https://www.flickr.com/photos/190941432@N07/50574256458/in/dateposted-public when launch use x86,it prompt this: https://www.flickr.com/photos/190941432@N07/50574256673/in/dateposted-public

pls fix it,thank u very much.

yaakov-h commented 4 years ago

NetHook2 only supports x86, and unless you’re running a game server, needs to be injected into the Steam process, not the game process.

ghost commented 4 years ago

NetHook2 only supports x86, and unless you’re running a game server, needs to be injected into the Steam process, not the game process.

pls look at this https://github.com/SteamRE/SteamKit/tree/master/Resources/NetHook2#injecting-into-other-executables

NetHook2 supports injecting into any other process that makes use of Steam's networking library. In particular, you can inject NetHook2 into steamcmd.exe, and srcds.exe to dump traffic from those processes.

To do so, simply provide the ID or the name of the process on the command line when injecting. Ex: rundll32 "",Inject 1234 or rundll32 "",Inject srcds.exe. When ejecting, be sure to provide the same process ID or name in the command as well.