[GUIDE] Object editing without deprotection.

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: [GUIDE] Object editing without deprotection.

Post by Apple »

corrector appeared malicious on my AVG
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
User avatar
Nuuby
Forum Staff
Posts: 519
Joined: October 18th, 2010, 8:43 am

Re: [GUIDE] Object editing without deprotection.

Post by Nuuby »

If you don't trust the staff you can don't use it.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4430
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: [GUIDE] Object editing without deprotection.

Post by Bartimaeus »

Nuuby wrote:If you don't trust the staff you can don't use it.
Well, it is Ozzapoo we're talking about here...at one point, he gave a user a "tool" that wiped their hard-drive of any Warcraft 3 related files because he thought they had somehow obtained a leaked copy of one of his programs...
User avatar
Nuuby
Forum Staff
Posts: 519
Joined: October 18th, 2010, 8:43 am

Re: [GUIDE] Object editing without deprotection.

Post by Nuuby »

Bartimaeus wrote:
Nuuby wrote:If you don't trust the staff you can don't use it.
Well, it is Ozzapoo we're talking about here...at one point, he gave a user a "tool" that wiped their hard-drive of any Warcraft 3 related files because he thought they had somehow obtained a leaked copy of one of his programs...
Now now, don't scare people off. Sides, I've used cortector for basically everything that I want to protect. My HDD is more or less still intact.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: [GUIDE] Object editing without deprotection.

Post by owner123 »

He said corrector (My tool) not cortector (Ozzapoo's)

Anyways its not malicious. I lost the source code, but you can decompile it with ILSpy or any equivalent and look at it. Basically all it does it edit a text file, AVG must be terrible.

Edit: I decompiled it, here's the output if anyone who does programming wants to check it.
Spoiler:
// CorrectoR.Module1

Code: Select all

[STAThread]
public static void Main()
{
	Console.WriteLine("Corrector " + Module1.VersionNumberString + ".");
	Module1.LogTextString = Module1.LogTextString + "Corrector " + Module1.VersionNumberString + ".";
	Console.WriteLine("By [email protected]");
	Module1.LogTextString += "By [email protected]";
	Console.WriteLine("If the program encounters an error, log will be saved automatically to ''log.txt''");
	Module1.LogTextString += "If the program encounters an error, log will be saved automatically to ''log.txt''";
	Console.WriteLine("--------------------------------------------");
	Module1.LogTextString += "--------------------------------------------";
	bool flag = Operators.CompareString(Interaction.Command(), "", false) == 0;
	if (flag)
	{
		Console.WriteLine("ERROR    : No file given. No log will be saved.");
		Module1.LogTextString += "ERROR    : No file given. No log will be saved.";
		Console.WriteLine("");
		Module1.LogTextString += "";
		Console.WriteLine("           Exiting program. Press any key to continue");
		Module1.LogTextString += "           aExiting program. Press any key to continue";
		Console.ReadKey();
	}
	else
	{
		Module1.FilePath = Interaction.Command();
		Console.WriteLine("NOTE     : Correcting file " + Module1.Parse(Module1.FilePath));
		Module1.LogTextString = Module1.LogTextString + "NOTE     : Correcting file " + Module1.Parse(Module1.FilePath);
		Console.WriteLine("");
		Module1.LogTextString += "";
		Console.WriteLine("NOTE     : Parsing file.");
		Module1.LogTextString += "NOTE     : Parsing file.";
		Console.WriteLine("");
		Module1.LogTextString += "";
		try
		{
			FileStream fileStream = new FileStream(Module1.FilePath, FileMode.Open, FileAccess.Read);
			FileStream fileStream2 = new FileStream(Module1.FilePath + ".new.txt", FileMode.Create, FileAccess.ReadWrite);
			for (int num = fileStream.ReadByte(); num != -1; num = fileStream.ReadByte())
			{
				flag = (num == 10);
				if (flag)
				{
					fileStream2.WriteByte(13);
					fileStream2.WriteByte(10);
				}
				else
				{
					fileStream2.WriteByte(checked((byte)num));
				}
			}
			fileStream.Close();
			fileStream.Dispose();
		}
		catch (Exception expr_23D)
		{
			ProjectData.SetProjectError(expr_23D);
			Exception ex = expr_23D;
			Console.WriteLine("ERROR    : Could not read hex from file. Press any key to exit.");
			Module1.LogTextString += "ERROR    : Could not read hex from file. Press any key to exit.";
			Console.WriteLine("");
			Module1.LogTextString += "";
			Console.WriteLine("Technical information:");
			Module1.LogTextString += "Technical information:";
			Console.WriteLine("");
			Module1.LogTextString += "";
			Console.WriteLine(ex.Message);
			Module1.LogTextString += ex.Message;
			Module1.SaveLog();
			Console.ReadKey();
			ProjectData.ClearProjectError();
			return;
		}
		Console.WriteLine("NOTE     : Correcting finished. Press any key to exit. Your file will be saved as the original name with .new.txt appended.");
		Module1.LogTextString += "NOTE     : Correcting finished. Press any key to exit. Your file will be saved as the original name with .new.txt appended.";
		Console.ReadKey();
	}
}
Can you add some kind of exception to AVG? If not, just disable the antivirus if you want to use it.

I guess my use of filestreams got it on antivirus blacklists or something.
Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: [GUIDE] Object editing without deprotection.

Post by Apple »

Actually AVG is kinda shitty while scanning compiled stuff, the programs i made with C++ all were reported malicious. even the slk object console appeared malicious xD
I believe in you guys of course, I would allow that content to pass through AVG's scanning
Request a map? Follow the rulesHERE
Request templateHERE
Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
hbtrung
Newcomer
Posts: 1
Joined: July 7th, 2013, 2:12 pm

Re: [GUIDE] Object editing without deprotection.

Post by hbtrung »

I have applied this on map DotA 6.77c AI
Link map : http://www.mediafire.com/download/doc1j ... c+Rev2.w3x
When I import war3map.w3a or war3map.w3t from the silk object for editing there is no problem. But when I import the file war3map.w3u then there is a error message likes critical problem when I use WE to open a protected map, then the WE crash. Can anyone help me about this ?
Sorry if I write anything wrong because my English is not good
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: [GUIDE] Object editing without deprotection.

Post by JustANewbie »

the Silk Object Console would not work with this map, please try it and let me know, thank you.

explaination: after a few seconds, it stucked, i waited for about an hour, and yet, not responding
You do not have the required permissions to view the files attached to this post.
owner123
Super Moderator
Posts: 1943
Joined: February 3rd, 2009, 11:28 pm
Been thanked: 1 time

Re: [GUIDE] Object editing without deprotection.

Post by owner123 »

Did you delete all the 0kb files and followed Part 6 of the guide?
JustANewbie
Forum Spammer
Posts: 510
Joined: August 18th, 2012, 2:32 am

Re: [GUIDE] Object editing without deprotection.

Post by JustANewbie »

i tried but, it shows:

Code: Select all

NOTE: Correcting file CampaignUnitFunc.txt

NOTE: Parsing file

ERROR: Could not read hex from file. Press any key to exit.

Technical information:

Illegal characters in path
----------------------------------------------------------------------

ps: i did deleted those 0kb files, maybe you should try

i tried to delete those 4 files mentioned in part 6, and it works, so, how to fix that 4 files?