Mission...
When the Name is CodeEngn, the Serial is 28BF522F-A5BE61D1-XXXXXXXX.
Find XXXXXXXX
(Difficulty : ... | Usefulness : 0/10 [Waste of Time])
Analysis... Warning! This problem cannot be solved on 64bit Windows.
Why? It calls GetHashCode() for hash code of user name, however, the return value is platform dependent.
Most of .NET RCE challenges are worthless.
The source code is easily obtained with .NET tool.
Please refer Omake section for C++ rewritten (with remarks) codes of Advance RCE Level 7.
Solution and Coding...
Reverse2L07.cpp
Copyright (C) 2011 3735943886
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Private Access Only...
Result...
Omake...
Attachments are 'KeyGen' and 'C++ rewritten codes of essential subroutines' of Advance RCE level 07
Please feel free to test.
For testing purpose, you can use following values. (one of working Name and Serial)
Name : 3735943886
Serial : F64E8EB7-916F537E-C6E758F7 (for 64bit windows)
6EFFCBFD-977B0809-BA0E3A30 (for 32bit windows)
// Get Name
std::cout << "Name : "; std::getline(std::cin, Name);
{
// .NET codes to get hashcode of Name
System::String ^DotNetStrName = gcnew System::String(Name.c_str());
hashCode = (unsigned __int32)DotNetStrName->GetHashCode();
}
// Logo
std::cout << std::endl << "Reverse2L07_dumped.cpp - C++ Dump of Advance RCE level 07"
<< std::endl << "Made by 3735943886" << std::endl << "Lisence : GPL" << std::endl << std::endl;
// Get Name and Serial
std::cout << "Name : "; std::getline(std::cin, Name);
std::cout << "Serial : "; std::getline(std::cin, StringSerial);
{
// .NET codes to get hashcode of Name
System::String ^DotNetStrName = gcnew System::String(Name.c_str());
hashCode = (unsigned __int32)DotNetStrName->GetHashCode();
}