ON ERROR GOTO trouble |
PRINT " _________ " PRINT " |_ ____ | " PRINT " |_ |____| | " PRINT " |____ ___ | " PRINT " ___ __ ___ ___ |___ | " PRINT " | _| |__| | __ |__ |___ | " PRINT " | | | | |___/ |___ |____| " PRINT " +------------------------+ " PRINT " +--------------+ TruVeiw 1.83 +----------+" PRINT " + +------------------------+ +" PRINT " + [*] Crack [] KeyGen [] Prog [] Tut [] Other +" PRINT " + +--------------------+ +" PRINT " +-----+ About: +-----------------------+" PRINT " + Allows ANY + " PRINT " + Registration Key + " PRINT " + To Be Entered. + " PRINT " +--------------------+ " |
FILES "trueview.exe" OPEN "truview.exe" FOR BINARY AS #1 |
GET #1, 213214, getbytes% GET #1, 213215, getbytess% GET #1, 213217, getbytex% GET #1, 213218, getbytexx% |
IF getbytes% <> &H850F THEN GOTO badversion IF getbytess% <> &HCC85 THEN GOTO badversion IF getbytex% <> 0 THEN GOTO badversion IF getbytexx% <> 0 THEN GOTO badversion |
byteput% = &H9090
PUT #1, 213214, byteput%
PUT #1, 213215, byteput%
PUT #1, 213217, byteput%
PUT #1, 213218, byteput%
Close #1
End
|
trouble: CLS SELECT CASE ERR CASE 53 PRINT " Can NOT find 'truveiw.exe'!" PRINT " Make sure you run this from the directory" PRINT " That it is in!" END SELECT PRINT PRINT " Patching Failed! " END |
PRINT " +-----------------------------+" PRINT " +Program Patched sucsessfully!+" PRINT " +-----------------------------+" badversion: PRINT " Bad Version!" PRINT " Make sure you have version" PRINT " 1.83!" PRINT PRINT " Patching Failed! " END |
ON ERROR GOTO trouble 'trouble is my error handler
'my intro
PRINT " _________ "
PRINT " |_ ____ | "
PRINT " |_ |____| | "
PRINT " |____ ___ | "
PRINT " ___ __ ___ ___ |___ | "
PRINT " | _| |__| | __ |__ |___ | "
PRINT " | | | | |___/ |___ |____| "
PRINT " +------------------------+ "
PRINT " +--------------+ TruVeiw 1.83 +----------+"
PRINT " + +------------------------+ +"
PRINT " + [*] Crack [] KeyGen [] Prog [] Tut [] Other +"
PRINT " + +--------------------+ +"
PRINT " +-----+ About: +-----------------------+"
PRINT " + Allows ANY + "
PRINT " + Registration Key + "
PRINT " + To Be Entered. + "
PRINT " +--------------------+ "
PRINT
FILES "truview.exe" 'Test for truview.exe"
OPEN "truview.exe" FOR BINARY AS #1 'open file for Binary
GET #1, 213214, getbytes% 'Grab 2 bytes at decimal
'position 213214 (850F)
GET #1, 213215, getbytess% 'Grab 2 bytes at decimal
'position 213215 (CC85)
GET #1, 213217, getbytex% 'Grab 2 bytes at decimal
'position 213217 (0000)
GET #1, 213218, getbytexx% 'Grab 2 bytes at decimal
'position 213218 (0000)
IF getbytes% <> &H850F THEN GOTO badversion 'make sure getbytes%
'contains 85 & OF
IF getbytess% <> &HCC85 THEN GOTO badversion 'make sure getbytess%
'contains CC & 85
IF getbytex% <> 0 THEN GOTO badversion 'make sure getbytex%
'contains 00 & 00
IF getbytexx% <> 0 THEN GOTO badversion 'make sure getbytexx%
'contains 00 & 00
byteput% = &H9090 'byteput% contains 9090(two nops, 2 bytes)
PUT #1, 213214, byteput% 'Put 90(nop) in where 0f & 85 are
PUT #1, 213215, byteput% 'Put 90(nop) in where 85 & CC are
PUT #1, 213217, byteput% 'put 90(nop) in where 00 & 00 are
PUT #1, 213218, byteput% 'put 90(nop) in where 00 & 00 are
PRINT " +-----------------------------+"
PRINT " +Program Patched sucsessfully!+" 'say it was patched
PRINT " +-----------------------------+" 'sucsessfully
CLOSE #1 'close the file
END 'end program
trouble:
SELECT CASE ERR 'get the error number
CASE 53 '53 = no such file found
PRINT " Can NOT find 'truveiw.exe'!" 'error message
PRINT " Make sure you run this from the directory"
PRINT " That it is in!"
END SELECT 'end error handler
PRINT
PRINT " Patching Failed! " 'say it failed
END 'end program
badversion:
PRINT " Bad Version!" 'say they have the
PRINT " Make sure you have version" 'wrong version
PRINT " 1.83!"
PRINT
PRINT " Patching Failed! " 'say it failed
END 'end program
|