/* ////////////////////////////////////////////////////////////////////////////////////////////////////////// NetCrumbler - Modifies a copy of NetStumbler.exe version 0.4.0 to enable WZC. Original NetStumbler.exe must be: 5EF079E5D178CB4CA7F2C904465EDF36 Modified NetStumbler-WZC.exe will be: 2F753FD1D69B5C4138AEDB572F2D58FD source: http://www.chroniclesofawardriver.org/ article: http://www.chroniclesofawardriver.org/How-To_Hack_NSv0.4.0_Enable_WZC.html source code: http://www.chroniclesofawardriver.org/NetCrumbler.cpp test batch: http://www.chroniclesofawardriver.org/NetCrumbler_check_mod.bat author: Israel Torres updated: 10/26/2005 version: 1.0 Disclaimer: All information herein is intended for responsible parties only. Do not attempt at any cost. */ ////////////////////////////////////////////////////////////////////////////////////////////////////////// #include #include #define READ_BUFFER 2048 int main(int argc, char* argv[]) { char temp[READ_BUFFER]; char rp[]="a\0"; int nReadCount = 1; ifstream NetStumbler("NetStumbler.exe", ifstream::binary); ofstream NetCrumbler("NetStumbler-WZC.exe", ifstream::binary); while(nReadCount != 0) { NetStumbler.read((char*)temp, READ_BUFFER); nReadCount = NetStumbler.gcount(); NetCrumbler.write((char*)temp, nReadCount); } NetCrumbler.seekp(231345); // this is the position of 'v' NetCrumbler.write(rp,1); // we are overwriting it with 'a' NetStumbler.close(); NetCrumbler.close(); return 0; }