Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
80
Server/NFAuthTool/AuthTest/AuthTest.cpp
Normal file
80
Server/NFAuthTool/AuthTest/AuthTest.cpp
Normal file
@@ -0,0 +1,80 @@
|
||||
// AuthTest.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "../NFAuthClient/AuthClient.h"
|
||||
#include <conio.h>
|
||||
|
||||
void ShowHelp()
|
||||
{
|
||||
printf("\n--------------------------------\n");
|
||||
printf("H : help\n");
|
||||
printf("H : help\n");
|
||||
printf("Q : quit\n");
|
||||
printf("S : Send IRC Packet\n");
|
||||
printf("A : Send Auth Packet\n");
|
||||
printf("--------------------------------\n");
|
||||
}
|
||||
|
||||
int main(int argc, CHAR* argv[])
|
||||
{
|
||||
char strMD5[40];
|
||||
GetMD5(argv[0], strMD5);
|
||||
printf(strMD5);
|
||||
printf("\n");
|
||||
|
||||
CPacketEvent event;
|
||||
DWORD dwConnectTick = timeGetTime();
|
||||
if(!g_NetAuth.Init("192.168.0.7", 14050))
|
||||
{
|
||||
printf("error!!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
g_NetAuth.SetEventListener(&event);
|
||||
|
||||
g_IPSec.LoadAllowIPZ(L"./AllowIPList.bin");
|
||||
|
||||
bool bExit = false;
|
||||
while(!bExit)
|
||||
{
|
||||
if(kbhit())
|
||||
{
|
||||
char ch = getch();
|
||||
switch(ch)
|
||||
{
|
||||
case 'h':
|
||||
ShowHelp();
|
||||
break;
|
||||
case 'q':
|
||||
bExit = true;
|
||||
break;
|
||||
case 's':
|
||||
g_NetAuth.Send_IRC("/SND", "테스트패킷전송");
|
||||
break;
|
||||
case 'a':
|
||||
GetMD5(argv[0], strMD5);
|
||||
g_NetAuth.Send_AUTH(MAKEWPARAM(AT_LOGIN, 0), strMD5);
|
||||
break;
|
||||
case 'l':
|
||||
g_NetAuth.Send_CMD(CS_IPLIST, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(abs(timeGetTime()-dwConnectTick) > 5000)
|
||||
{
|
||||
dwConnectTick = timeGetTime();
|
||||
if(!g_NetAuth.IsConnect())
|
||||
g_NetAuth.Init("192.168.0.7", 14050);
|
||||
}
|
||||
|
||||
g_NetAuth.Update();
|
||||
|
||||
Sleep(1);
|
||||
}
|
||||
|
||||
printf("exit...\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
BIN
Server/NFAuthTool/AuthTest/AuthTest.ncb
Normal file
BIN
Server/NFAuthTool/AuthTest/AuthTest.ncb
Normal file
Binary file not shown.
32
Server/NFAuthTool/AuthTest/AuthTest.sln
Normal file
32
Server/NFAuthTool/AuthTest/AuthTest.sln
Normal file
@@ -0,0 +1,32 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AuthTest", "AuthTest.vcproj", "{4B4CB5C9-932A-4B48-AA99-236F0C668AA0}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{17A72D81-FF95-4EC9-970A-C6C8232C33DB} = {17A72D81-FF95-4EC9-970A-C6C8232C33DB}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NFAuthClient", "..\NFAuthClient\NFAuthClient.vcproj", "{17A72D81-FF95-4EC9-970A-C6C8232C33DB}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectDependencies) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{4B4CB5C9-932A-4B48-AA99-236F0C668AA0}.Debug.ActiveCfg = Debug|Win32
|
||||
{4B4CB5C9-932A-4B48-AA99-236F0C668AA0}.Debug.Build.0 = Debug|Win32
|
||||
{4B4CB5C9-932A-4B48-AA99-236F0C668AA0}.Release.ActiveCfg = Release|Win32
|
||||
{4B4CB5C9-932A-4B48-AA99-236F0C668AA0}.Release.Build.0 = Release|Win32
|
||||
{17A72D81-FF95-4EC9-970A-C6C8232C33DB}.Debug.ActiveCfg = Debug|Win32
|
||||
{17A72D81-FF95-4EC9-970A-C6C8232C33DB}.Debug.Build.0 = Debug|Win32
|
||||
{17A72D81-FF95-4EC9-970A-C6C8232C33DB}.Release.ActiveCfg = Release|Win32
|
||||
{17A72D81-FF95-4EC9-970A-C6C8232C33DB}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
Server/NFAuthTool/AuthTest/AuthTest.suo
Normal file
BIN
Server/NFAuthTool/AuthTest/AuthTest.suo
Normal file
Binary file not shown.
160
Server/NFAuthTool/AuthTest/AuthTest.vcproj
Normal file
160
Server/NFAuthTool/AuthTest/AuthTest.vcproj
Normal file
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="ks_c_5601-1987"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="AuthTest"
|
||||
ProjectGUID="{4B4CB5C9-932A-4B48-AA99-236F0C668AA0}"
|
||||
RootNamespace="AuthTest"
|
||||
Keyword="Win32Proj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="../Executable/$(ConfigurationName)"
|
||||
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../NFAuthClient"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="FALSE"
|
||||
DebugInformationFormat="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="NFAuthClient.lib"
|
||||
OutputFile="$(OutDir)/AuthTest.exe"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="..\NFAuthClient; ..\NFAuthClient\SDK\Lib"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile="$(OutDir)/AuthTest.pdb"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="../Executable/$(ConfigurationName)"
|
||||
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="3"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="FALSE"
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/AuthTest.exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="..\NFAuthClient; ..\NFAuthClient\SDK\Lib"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="소스 파일"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
|
||||
<File
|
||||
RelativePath=".\AuthTest.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="헤더 파일"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
|
||||
<File
|
||||
RelativePath=".\stdafx.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="리소스 파일"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
32
Server/NFAuthTool/AuthTest/ReadMe.txt
Normal file
32
Server/NFAuthTool/AuthTest/ReadMe.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
========================================================================
|
||||
콘솔 응용 프로그램 : AuthTest 프로젝트 개요
|
||||
========================================================================
|
||||
|
||||
응용 프로그램 마법사에서 이 AuthTest 응용 프로그램을 만들었습니다.
|
||||
이 파일에는 AuthTest 응용 프로그램을 구성하는 각각의 파일에
|
||||
들어 있는 요약 설명이 포함되어 있습니다.
|
||||
|
||||
|
||||
AuthTest.vcproj
|
||||
응용 프로그램 마법사를 사용하여 생성한 VC++ 프로젝트의 기본 프로젝트 파일입니다.
|
||||
해당 파일을 생성한 Visual C++의 버전 정보를 비롯하여
|
||||
응용 프로그램 마법사에서 선택한 플랫폼, 구성 및
|
||||
프로젝트 기능에 대한 정보가 들어 있습니다.
|
||||
|
||||
AuthTest.cpp
|
||||
기본 응용 프로그램 소스 파일입니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
기타 표준 파일:
|
||||
|
||||
StdAfx.h 및 StdAfx.cpp는
|
||||
AuthTest.pch라는 이름의 PCH(미리 컴파일된 헤더) 파일과
|
||||
StdAfx.obj라는 이름의 미리 컴파일된 형식 파일을 빌드하는 데 사용됩니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
기타 참고:
|
||||
|
||||
응용 프로그램 마법사에서 사용하는 "TODO:" 주석은 사용자가 추가하거나 사용자 지정해야 하는
|
||||
소스 코드 부분을 나타냅니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
8
Server/NFAuthTool/AuthTest/stdafx.cpp
Normal file
8
Server/NFAuthTool/AuthTest/stdafx.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : 표준 포함 파일만 들어 있는 소스 파일입니다.
|
||||
// AuthTest.pch는 미리 컴파일된 헤더가 됩니다.
|
||||
// stdafx.obj에는 미리 컴파일된 형식 정보가 포함됩니다.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: 필요한 추가 헤더는
|
||||
// 이 파일이 아닌 STDAFX.H에서 참조합니다.
|
||||
12
Server/NFAuthTool/AuthTest/stdafx.h
Normal file
12
Server/NFAuthTool/AuthTest/stdafx.h
Normal file
@@ -0,0 +1,12 @@
|
||||
// stdafx.h : 자주 사용하지만 자주 변경되지는 않는
|
||||
// 표준 시스템 포함 파일 및 프로젝트 관련 포함 파일이
|
||||
// 들어 있는 포함 파일입니다.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <tchar.h>
|
||||
|
||||
// TODO: 프로그램에 필요한 추가 헤더는 여기에서 참조합니다.
|
||||
Reference in New Issue
Block a user