Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

script question


  • Please log in to reply
2 replies to this topic

#1 turtelpower

turtelpower

    Lurker

  • Members
  • 2 posts
  • Graphics Card:ATI Radeon HD 4850 512 MB
  • Operating System:Other OS/Not specified

Posted 04 September 2015 - 07:41 AM

hello all,

first so u no im new to this and like to learn.

im having some question about bit slicer i can search and change the aob's, but now i like to make a script/trainer that search the aob and change them to the new value.

i did some search on google etc but cant find any tutorial for it , i did see the wiki but it is not helping me any further on how to do it.
so do one of u have any tut or link that explains how to make one.

thanks

#2 Zorg

Zorg

    Professional Member

  • Members
  • PipPipPipPip
  • 147 posts
  • LocationSpace
  • Graphics Card:I don't know.
  • Operating System:Other OS/Not specified
  • I like to play:Arcade, Side Scrollers

Posted 05 September 2015 - 01:27 AM

Perhaps this will help you in the right direction:

#AOB Scan
#Introduction to scripting: https://github.com/zorgiepoo/Bit-Slicer/wiki/Introduction-to-Scripting
from bitslicer import VirtualMemoryError, DebuggerError
ORIGINAL_BYTES = bytes([0x0A, 0x74, 0x16, 0xA1, 0x24, 0xD0, 0x01, 0x00, 0x89])
class Script(object):
	def __init__(self):
		addresses = vm.scanBytes(ORIGINAL_BYTES)
		# Or...
		# addresses = vm.scanByteString("0A 74 16 A1 24 D0 01 00 89")
		self.address = addresses[0]
		debug.log(hex(self.address))
		vm.writeBytes(self.address, bytes([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]))
	def finish(self):
		#revert bytes back if needed
		vm.writeBytes(self.address, ORIGINAL_BYTES)

Refer to Scripting Functions for all the functions available, and also the introduction to get started. It may involve a little figuring out on your own, since a straight out tutorial won't be available for every kind of thing.

#3 turtelpower

turtelpower

    Lurker

  • Members
  • 2 posts
  • Graphics Card:ATI Radeon HD 4850 512 MB
  • Operating System:Other OS/Not specified

Posted 05 September 2015 - 10:38 AM

ok thanks will try this when i get home and do some more reading




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users