Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[TOOL] AoB Pattern Generator (coded in VBS, OpenSource)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Tue Apr 22, 2014 7:05 am    Post subject: [TOOL] AoB Pattern Generator (coded in VBS, OpenSource) Reply with quote

Hi all

I coded an easy tool to generator patters for our AoB scan routines, the script is very simple; you only need to add some array of bytes (min 2, max infinite) and the script will generate a valid pattern, example:



Here is the script: http://pastebin.com/tQsvbSkh

Just copy&paste the script in a TXT file (notepad) and save it as whatever.vbs

Enjoy! Very Happy

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Apr 22, 2014 7:47 am    Post subject: Reply with quote

This will be pretty useful when I'm trying to make AOBs to data instead of code and so end up doing like 128 byte sigs at a time.
_________________
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Tue Apr 22, 2014 8:35 am    Post subject: Reply with quote

Rydian wrote:
This will be pretty useful when I'm trying to make AOBs to data instead of code and so end up doing like 128 byte sigs at a time.


Thanks, did you tried the script? report any bug or suggestion Smile

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Apr 22, 2014 2:43 pm    Post subject: Reply with quote

Could a mode or alternate one be developed where the entry form is bigger and takes multi-line input and then just explodes the samples by linebreaks? When I'm working on data samples I tend to have them copied into the same text file, each sample on it's own line.

It'd save copy-pasting line by line and hitting the enter key twice between each copy-paste for when there's more than just 3-4 samples.

_________________
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Tue Apr 22, 2014 3:05 pm    Post subject: Reply with quote

Rydian wrote:
Could a mode or alternate one be developed where the entry form is bigger and takes multi-line input and then just explodes the samples by linebreaks? When I'm working on data samples I tend to have them copied into the same text file, each sample on it's own line.

It'd save copy-pasting line by line and hitting the enter key twice between each copy-paste for when there's more than just 3-4 samples.


Yes, I can make a Form with a TextBox (multiline input), but no with VBS.
If you want, I can code a stand-alone EXE with that feature.

If you want to mantain de VBS Script, I can add an option to read a textfile with a specific format, something like:

Code:
aob1
aob2
aob3
aobX


This method will force you to put all data (each aob per line) without other chars/text or line-breaks.

So tell me what you want and I will code it Smile

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Wed Aug 06, 2014 7:41 am    Post subject: Reply with quote

Says error
line: 1
char: 1
invalid charactor
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Thu Aug 07, 2014 3:40 am    Post subject: Reply with quote

NanoByte wrote:
Says error
line: 1
char: 1
invalid charactor


Its easy:

Open your notepad.exe (or any text editor)
Copy and paste this code to notepad.exe

Code:
'Created by AikonCWD

Set oWSH = CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")

T = InputBox("Enter array of bytes nº 1:")
T = T & vbcrlf & InputBox("Enter array of bytes nº 2:")

X = 3
While MsgBox("Do you want to introduce another array of bytes?", vbYesNo, "AoB Pattern Generator") = vbYes
   T = T & vbcrlf & InputBox("Enter array of bytes nº " & X &":")
   X = X + 1
Wend

AoB = Split(T, vbcrlf)

F = ""
W = 0
X = 0
For i = 1 To Len(AoB(0))
   For u = 1 To UBound(AoB)
      If Mid(AoB(u), i, 1) <> Mid(AoB(0), i, 1) Then
         F = F & "?"
         W = W + 1
         X = 1
         Exit For
      End If
   Next
   If X <> 1 Then F = F & Mid(AoB(0), i, 1)
   X = 0
Next

Set File = oFSO.CreateTextFile("aob.txt")
   File.Write "Original array of bytes:" & vbcrlf & vbcrlf
   File.Write Replace(T, vbcrlf & vbcrlf, vbcrlf) & vbcrlf & vbcrlf
   File.Write "Total array of bytes: " & UBound(AoB) + 1 & vbcrlf
   File.Write "Total wildcards used: " & W & vbcrlf & vbcrlf
   File.Write "Your AoB Pattern:" & vbcrlf & vbcrlf & F
File.Close

'MsgBox F

If MsgBox("AoB Patter Generator finished" & vbcrlf & vbcrlf & "Do you want to open aob.txt file?", vbYesNo, "AoB Pattern Generator") = vbYes Then
   oWSH.Run "notepad.exe aob.txt"
End If


Save the text file, but you need to write the extension, look:



Has you can see, you need to put ".vbs" at the end of the filename, also select "All Files (*.*)" at file-type. You will see this icon:



Open the icon, the script will ask you for the 1st AoB pattern, then the 2nd pattern, at this point the script will ask you if you want to add more patterns (3, 4, 5, infinite). At the end of your input, the script will generate an aob.txt file with the wildcard.

Tell me if this works Smile

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
0vad0z3
How do I cheat?
Reputation: 0

Joined: 06 Aug 2014
Posts: 5

PostPosted: Thu Aug 07, 2014 4:55 am    Post subject: Reply with quote

http(:)//i.imgur(.)com/tZu5n6d.png?1
take the parentheses out

Doesn't work for me :(
I saved the script as .vbs then I tried to access it and this error popped up.
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Thu Aug 07, 2014 5:40 am    Post subject: Reply with quote

Ok, the code you copied have an invalid character, ensure the 1st character is an apostrophe. Copy the code excatly as I posted.

But, if you want, you can go to the pastebin link at #1 and download a copy os the raw script: http://pastebin.com/download.php?i=tQsvbSkh

Then rename the file to randomfilename.VBS and execute it.

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Thu Aug 07, 2014 8:35 am    Post subject: Reply with quote

Same error pops up.

Cant we make an exe out of it?

hmm i got time to spare so if you could help me make a exe Very Happy

but sadly i know nothing about vbs, if you could explain to me how you doing the conversion, so i could try and solve it in c#

ofc all credits goes to you Very Happy



Capture.PNG
 Description:
 Filesize:  13.88 KB
 Viewed:  37959 Time(s)

Capture.PNG


Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Thu Aug 07, 2014 9:25 am    Post subject: Reply with quote

NanoByte wrote:
Same error pops up.

Cant we make an exe out of it?

hmm i got time to spare so if you could help me make a exe Very Happy

but sadly i know nothing about vbs, if you could explain to me how you doing the conversion, so i could try and solve it in c#

ofc all credits goes to you Very Happy


Here is a compiled versión of the script:

https://www.mediafire.com/?2et7r6aqi44igas

Execute as admin

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Thu Aug 07, 2014 9:35 am    Post subject: Reply with quote

Thx man Very Happy
Back to top
View user's profile Send private message
Attack
Cheater
Reputation: 0

Joined: 21 Mar 2011
Posts: 46
Location: Canada

PostPosted: Wed Feb 04, 2015 3:28 am    Post subject: Reply with quote

Length isn't infinite. I'm trying to find whatever is responsible for jumping within the player structure and it cuts my data off.

EDIT: Length is infinite... I was just pasting into notepad first and it was adding damn new line chars every now and then.


Last edited by Attack on Thu Feb 05, 2015 9:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 942

PostPosted: Wed Feb 04, 2015 6:15 am    Post subject: Reply with quote

Is halfbyte aob work for newer ce? It is not work for 6.4.


ce-halfbyte.jpg
 Description:
ce halfbyte aob
 Filesize:  19.59 KB
 Viewed:  36381 Time(s)

ce-halfbyte.jpg


Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Feb 04, 2015 8:23 am    Post subject: Reply with quote

There's no such thing as halfbyte in CE byte array scanner.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites