@@ -26,24 +26,25 @@ func Instrument() (*gohack.Client, error) {
26
26
if err != nil {
27
27
return nil , errors .New ("Failed to get pid csgo.exe" )
28
28
}
29
- log .WithFields (log.Fields {"pid" : process .ID }).Info ("GetFromProcessName csgo.exe" )
29
+ log .WithFields (log.Fields {"pid" : process .ID , "handle" : process . Handle }).Info ("GetOpenProcessFromName csgo.exe" )
30
30
31
31
client , err := gohack .GetClientFrom (process , offsets )
32
32
if err != nil {
33
33
return nil , err
34
34
}
35
- log .WithFields (log.Fields {"handle" : process .Handle }).Info ("OpenProcess " , process .ID )
36
- log .WithFields (log.Fields {"value" : gohack .ToHexString (client .Address )}).Info ("- Address" )
37
- log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetForceJump ())}).Info ("- OffsetForceJump" )
38
- log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetForceAttack ())}).Info ("- OffsetForceAttack" )
39
- log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetPlayer ())}).Info ("- OffsetPlayer" )
40
- log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetPlayerFlags ())}).Info ("- OffsetPlayerFlags" )
41
- log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetEntityId ())}).Info ("- OffsetEntityId" )
35
+ log .WithFields (log.Fields {"value" : gohack .ToHexString (client .Address )}).Info ("[+] Address" )
36
+ log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetForceJump ())}).Info ("[+] OffsetForceJump" )
37
+ log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetForceAttack ())}).Info ("[+] OffsetForceAttack" )
38
+ log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetPlayer ())}).Info ("[+] OffsetPlayer" )
39
+ log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetPlayerFlags ())}).Info ("[+] OffsetPlayerFlags" )
40
+ log .WithFields (log.Fields {"value" : gohack .ToHexString (client .OffsetEntityId ())}).Info ("[+] OffsetEntityId" )
42
41
43
42
return client , err
44
43
}
45
44
46
45
func Execute (c * gohack.Client ) {
47
46
go gohack .RunTrigger (c )
48
- gohack .RunBHOP (c )
47
+ go gohack .RunHop (c )
48
+
49
+ select { }
49
50
}
0 commit comments