OutdatedApB's AutoHexer
Yea, I'm sure the file size is due to, like you said, it being self contained. The rabcdasm exe's are not embedded though. Asianpolarbear makes use of .bat files to decompile/recompile with the external rabcdasm exes.
My swf has the rotmg swf embedded inside that's why it errors out.
My swf has the rotmg swf embedded inside that's why it errors out.
Bumping to let guys know that this a thing, No need to spam hexed clients errywhere
-Won't work if the .swf has a space in it's name
-Won't work with Nillys client
-Won't work if the .swf has a space in it's name
-Won't work with Nillys client
When I try to open the program I get the error of this 16f659b30912d8ae210ccf32b3c4064c.png and I also I don't know what shit I'm trying to open, That screenshot is me opening The .exe.
Edit: My SONAR detected virus for every file I'm just gonna delete I don't wana go through the process of restoring every god damn file.
Edit: My SONAR detected virus for every file I'm just gonna delete I don't wana go through the process of restoring every god damn file.
It flags up's as a virus?
You can inspect the source, But my theory is that it flags because it creates a .bat file which has the possiblity to add/delete files.
I don't understand what you mean by restoring every file though.
You can inspect the source, But my theory is that it flags because it creates a .bat file which has the possiblity to add/delete files.
procedure TForm1.BrowseButtonClick(Sender: TObject);
begin
if OpenDialog1.Execute=true then
begin
DirectoryName:=OpenDialog1.FileName;
Filename:=ExtractFileName(DirectoryName);
FileNameV2:=ExtractFileNameOnly(DirectoryName);
end;
SWFLocationString.Caption:=DirectoryName;
end;
procedure FindAndReplace(SearchFor, ReplaceWith, FileName: string);
var
FileContents: TStringList;
begin
FileContents:=TStringList.Create;
try
FileContents.LoadFromFile(FileName);
FileContents.Text:=StringReplace(FileContents.Text , SearchFor, ReplaceWith, [rfReplaceAll,rfIgnoreCase]);
FileContents.SaveToFile(FileName);
finally
FileContents.Free;
end;
end;
procedure TForm1.HexButtonClick(Sender: TObject);
var
NewDirectory:string;
ParamDirectory:String;
begin
AssignFile(BatFile,'Hex.bat');
NewDirectory:=GetCurrentDir+'\'+Filename;
Begin RenameFile(DirectoryName,NewDirectory) end;
Rewrite(BatFile); //Opening with permissions
DeBugger.Caption:='Status:Locating File';
Writeln(BatFile,'SWFDecompress ',Filename);
DeBugger.Caption:='Status
ecompressing File';
writeln(BatFile,'abcexport ',Filename);
DeBugger.Caption:='Status:ExportingFile';
writeln(BatFile,'rabcdasm ',FileNameV2+'-1.abc');
CloseFile(batFile);
DeBugger.Caption:='Status:Saving .Bat file';
SysUtils.ExecuteProcess(UTF8ToSys('Hex.Bat'), '', []);
DeBugger.Caption:='Status:Executing .Bat file';
ParamDirectory:=GetCurrentDir+'\'+FileNameV2+'-1\com\company\assembleegameclient\parameters';
FindAndReplace('"'+OldVersionString.Caption+'"', '"'+NewVersionString.Caption+'"',ParamDirectory+'\ Parameters.class.asasm');
DeBugger.Caption:='Status:Replacing client version with specified';
Assignfile(Reassemble,'Hex2.bat');
rewrite(Reassemble);
writeln(Reassemble,'rabcasm '+filenameV2+'-1\'+FileNameV2+'-1.main.asasm');
writeln(Reassemble,'abcreplace '+filenameV2+'.swf 1 '+FileNameV2+'-1\'+FileNameV2+'-1.main.abc');
closefile(Reassemble);
SysUtils.ExecuteProcess(UTF8ToSys('Hex2.Bat'), '', []);
DeBugger.Caption:='Status:Reassembling .Swf';
RenameFile(NewDirectory,DirectoryName);
DeBugger.Caption:='Status:Moving file back to original location';
ShowMessage('Hex Completed, Enjoy!');
DeBugger.Caption:='Status:';
//Delete the temp files!
DelTree(GetCurrentDir+'\'+FileNameV2+'-1',True,True,True);
DeleteFile(FilenameV"+'-0.abc');
DeleteFile(FilenameV"+'-1.abc');
Erase(TempFile);
Erase(BatFile); //Goes @ end
end;
begin
if OpenDialog1.Execute=true then
begin
DirectoryName:=OpenDialog1.FileName;
Filename:=ExtractFileName(DirectoryName);
FileNameV2:=ExtractFileNameOnly(DirectoryName);
end;
SWFLocationString.Caption:=DirectoryName;
end;
procedure FindAndReplace(SearchFor, ReplaceWith, FileName: string);
var
FileContents: TStringList;
begin
FileContents:=TStringList.Create;
try
FileContents.LoadFromFile(FileName);
FileContents.Text:=StringReplace(FileContents.Text , SearchFor, ReplaceWith, [rfReplaceAll,rfIgnoreCase]);
FileContents.SaveToFile(FileName);
finally
FileContents.Free;
end;
end;
procedure TForm1.HexButtonClick(Sender: TObject);
var
NewDirectory:string;
ParamDirectory:String;
begin
AssignFile(BatFile,'Hex.bat');
NewDirectory:=GetCurrentDir+'\'+Filename;
Begin RenameFile(DirectoryName,NewDirectory) end;
Rewrite(BatFile); //Opening with permissions
DeBugger.Caption:='Status:Locating File';
Writeln(BatFile,'SWFDecompress ',Filename);
DeBugger.Caption:='Status
ecompressing File';writeln(BatFile,'abcexport ',Filename);
DeBugger.Caption:='Status:ExportingFile';
writeln(BatFile,'rabcdasm ',FileNameV2+'-1.abc');
CloseFile(batFile);
DeBugger.Caption:='Status:Saving .Bat file';
SysUtils.ExecuteProcess(UTF8ToSys('Hex.Bat'), '', []);
DeBugger.Caption:='Status:Executing .Bat file';
ParamDirectory:=GetCurrentDir+'\'+FileNameV2+'-1\com\company\assembleegameclient\parameters';
FindAndReplace('"'+OldVersionString.Caption+'"', '"'+NewVersionString.Caption+'"',ParamDirectory+'\ Parameters.class.asasm');
DeBugger.Caption:='Status:Replacing client version with specified';
Assignfile(Reassemble,'Hex2.bat');
rewrite(Reassemble);
writeln(Reassemble,'rabcasm '+filenameV2+'-1\'+FileNameV2+'-1.main.asasm');
writeln(Reassemble,'abcreplace '+filenameV2+'.swf 1 '+FileNameV2+'-1\'+FileNameV2+'-1.main.abc');
closefile(Reassemble);
SysUtils.ExecuteProcess(UTF8ToSys('Hex2.Bat'), '', []);
DeBugger.Caption:='Status:Reassembling .Swf';
RenameFile(NewDirectory,DirectoryName);
DeBugger.Caption:='Status:Moving file back to original location';
ShowMessage('Hex Completed, Enjoy!');
DeBugger.Caption:='Status:';
//Delete the temp files!
DelTree(GetCurrentDir+'\'+FileNameV2+'-1',True,True,True);
DeleteFile(FilenameV"+'-0.abc');
DeleteFile(FilenameV"+'-1.abc');
Erase(TempFile);
Erase(BatFile); //Goes @ end
end;
What I meant by restoring every file is Every time I open the program it removes one file because everything inside it has a virus or whatnot. So I have to go into my virus protection and restore it then open it again it will remove another then go restore which roughly takes 2 hours.
So, it works fine?
PolarBear.
I tryed every SWF clints i have.
13.2 14.1 15.0 15.2 16.0 16.1 16.2 but it doesn't work(and 0.1.3)
Then i removed ''spaces'' atill didnt work,
So could you hex a 0.1.3 client into 16.3 for every1 who cant do it either.
Ty in advance,not begging just asking.
I tryed every SWF clints i have.
13.2 14.1 15.0 15.2 16.0 16.1 16.2 but it doesn't work(and 0.1.3)
Then i removed ''spaces'' atill didnt work,
So could you hex a 0.1.3 client into 16.3 for every1 who cant do it either.
Ty in advance,not begging just asking.
Removed spaces.
C:\ZylomGames\0.1.3.swf(example)
Inserted 0.1.3
Inserter 16.3
C:\ZylomGames\0.1.3.swf(example)
Inserted 0.1.3
Inserter 16.3
Nicejob, worked perfectly for me
@nilly Close thread and remove attachment, sorry if I am trying to act smart, Look what Norton said,

Uploaded with ImageShack.us

Uploaded with ImageShack.us
Look at the scans. There were 2 hits on this file. I looked up the hits and it appeared to be false positives, so I approved. If it worries you, don't use it. There is another hexer on this site (http://www.mpgh.net/forum/599-realm-...-yourself.html).
This thread is closed for replies.

dowsshellapi/l/aa111503a.htm