How to edit rotmg.sol
I asked a few people for help, but it didn't work so I'm asking here.
I'm trying to find a way to edit rotmg.sol and change the password and guid with code
So far I have tried to convert muledump's one click login to C#, but and here's the code.
Muledump:
Func _build()
;header
$string = "0x 00 BF" ;Magic Number 2 bytes
$string &= "?? ?? ?? ??" ;Size 4 bytes
$string &= "54 43 53 4F 00 04 00 00 00 00" ;Marker 10 bytes
$string &= "00 05" ;Name Size 2 bytes
$string &= "52 6F 74 4D 47" ;"RotMG" 5 bytes
$string &= "00 00 00" ;Padding 3 bytes
$string &= "03" ;AMF Version 1 byte
;data
$string &= "11" ;Length 1 byte
$string &= "50 61 73 73 77 6F 72 64" ;"Password" 8 bytes
$string &= "06" ;Type (string) 1 byte
$string &= _length($password) ;Length 1 byte
$string &= $password ;Actual Password ? bytes
$string &= "00" ;AMF Padding 1 byte
$string &= "09" ;Length 1 byte
$string &= "47 55 49 44" ;"GUID" 4 bytes
$string &= "06" ;Type (string) 1 byte
$string &= _length($email) ;Length 1 byte
$string &= $email ;Email ? bytes
$string &= "00" ;AMF Padding 1 byte
$string = StringReplace($string," ","")
$string = StringRegExpReplace($string,"\?{8}",Hex(Int(String Len(StringMid($string,15))/2)))
EndFunc
Here is mine:
String text = "0x 00 BF";
text += "?? ?? ?? ??";
text += "54 43 53 4F 00 04 00 00 00 00";
text += "00 05";
text += "52 6F 74 4D 47";
text += "00 00 00";
text += "03";
text += "11";
text += "50 61 73 73 77 6F 72 64";
text += "06";
text += password.Length;
text += password;
text += "00";
text += "09";
text += "47 55 49 44";
text += "06";
text += guid.Length;
text += guid;
text += "00";
text = text.Replace(" ", "");
var regex = new Regex(@"\?{8}");
text = regex.Replace(text, ((text.Substring(15).Length / 2).ToString("X")));
If you can fix my code, or provide a better way to do it in C# that would be great
I'm trying to find a way to edit rotmg.sol and change the password and guid with code
So far I have tried to convert muledump's one click login to C#, but and here's the code.
Muledump:
Func _build()
;header
$string = "0x 00 BF" ;Magic Number 2 bytes
$string &= "?? ?? ?? ??" ;Size 4 bytes
$string &= "54 43 53 4F 00 04 00 00 00 00" ;Marker 10 bytes
$string &= "00 05" ;Name Size 2 bytes
$string &= "52 6F 74 4D 47" ;"RotMG" 5 bytes
$string &= "00 00 00" ;Padding 3 bytes
$string &= "03" ;AMF Version 1 byte
;data
$string &= "11" ;Length 1 byte
$string &= "50 61 73 73 77 6F 72 64" ;"Password" 8 bytes
$string &= "06" ;Type (string) 1 byte
$string &= _length($password) ;Length 1 byte
$string &= $password ;Actual Password ? bytes
$string &= "00" ;AMF Padding 1 byte
$string &= "09" ;Length 1 byte
$string &= "47 55 49 44" ;"GUID" 4 bytes
$string &= "06" ;Type (string) 1 byte
$string &= _length($email) ;Length 1 byte
$string &= $email ;Email ? bytes
$string &= "00" ;AMF Padding 1 byte
$string = StringReplace($string," ","")
$string = StringRegExpReplace($string,"\?{8}",Hex(Int(String Len(StringMid($string,15))/2)))
EndFunc
Here is mine:
String text = "0x 00 BF";
text += "?? ?? ?? ??";
text += "54 43 53 4F 00 04 00 00 00 00";
text += "00 05";
text += "52 6F 74 4D 47";
text += "00 00 00";
text += "03";
text += "11";
text += "50 61 73 73 77 6F 72 64";
text += "06";
text += password.Length;
text += password;
text += "00";
text += "09";
text += "47 55 49 44";
text += "06";
text += guid.Length;
text += guid;
text += "00";
text = text.Replace(" ", "");
var regex = new Regex(@"\?{8}");
text = regex.Replace(text, ((text.Substring(15).Length / 2).ToString("X")));
If you can fix my code, or provide a better way to do it in C# that would be great

