fxpgunz / gunz-1.0

An attempt to fixes the programmers sin's in Gunz1.0 Spaghetti code. Fixing security horrors and numerous RCE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Damn Vulnerable Gunz Server Based on Refined .

This is the Open GunZ (GunZ The Duel game) source repo. It was forked from the Refined GunZ source (https://github.com/Asunaya/RefinedGunz) & updates from Igunz.

Building the source for the first time

Windows:

Requisites:

  • GCC x64 Windows: Important Edit: Previous link added on the git was hijacked after the domain expired. MinGW official website is now down (as of 24th March 2021). Hence, instead of their official website, download from https://github.com/jmeubank/tdm-gcc-src/releases/tag/v10.3.0-tdm64-1 for tdm version or https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download or https://osdn.net/projects/mingw/
    Look for mingw-get-setup.exe for downloading. Download it and launch the installer. Accept the terms and move on. You'll now see that the installer is connecting to the Internet and downloading a lot of tiny and small files. Wait till it ends. Right when it ends (which won't take long), you'll be presented a window with title MinGW Installation Manager. You should be in the 'Basic Setup' tab by default when it launches. If not, click on Basic Setup. Out of the numerous check boxes presented to you on the right side, tick "mingw32-gcc-g++-bin". If you are prompted with a menu, click on Mark for Install.

  • CMake 3.7 or later: Download the latest release from https://cmake.org/download/ under "Binary distributions." In the installer, select "Add CMake to the system PATH for all users". Picture here.

  • Install Visual Studio 2019/2022 Community edition (https://visualstudio.microsoft.com/downloads/)

    • In the installer, select the Desktop development with C++

    • Under Installation details on the right, select the following option: C++ MFC for latest v142 build tools (x86 & x64)

    • Select Individual components on the top bar and search for C++ Windows XP Support for VS 2017 (v141) tools [Depreciated]

  • OPENSSL: Download and install in C:\OpenSSL-Win32 from here

    • For "copy OpenSSL DLLs to" prompt, choose "The Windows system directory".

( I didn't need this to compile the src ) - Next download vs2017 OpenSSL files from here

  • Delete everything in C:\OpenSSL-Win32 and replace it with the vs2017 files.
  • Zlib Download: From here and extract that on your system C:\Program Files (x86)\zlib.

To build, run build-win32-VS2019.bat in source folder. Wait until it says "Build succeeded" with possibly some warnings in yellow. The built files can be found in ogz-source\build\win32 and ogz-source\install.

Optional: Removing warning MSB8051 during build process

Warning MSB8051: Support for targeting Windows XP is deprecated and will not be present in future releases of Visual Studio.

To disable the warning open
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141_xp\Toolset.targets

Replace: <VCMessage Code="MSB8051" Type="Warning" Condition="'$(XPDeprecationWarning)' != 'false'" />
With: <VCMessage Code="MSB8051" Type="Warning" Condition="'$(XPDeprecationWarning)' == 'false'" />

Linux:

Requisites:

  • Install the following packages:
    • sudo apt install cmake zlib1g-dev build-essential checkinstall zlib1g-dev libsodium-dev libssl-dev libsqlite3-dev libasio-dev libcurl4-openssl-dev libsystemd-dev

To build, run build-linux.sh in source folder.

If you are using Windows Subsystem for Linux, and the source is somwhere in /mnt/c, during compilation you might get messages saying that some packages are missing. But, if everything is set correctly it should still compile fine. To avoid these messages all together, compile from somwhere in the Windows Subsystem for Linux for example: /opt/igunz/source

Launching local test client for the first time

Requisites:

  • Download the server and client files.
  • Replace the GunZ.exe and MatchServer.exe in their respective client/server folders, you can either build them yourself as described above or download the executables here
  • Change IP to 127.0.0.1 in config file --> C:\Users\[username]\Documents\Open GunZ\config.xml.
  • In the server folder, make sure server.ini has these values:
    • FREELOGINIP, KEEPERIP, DBAgentIP set to 127.0.0.1.
  • Launch MatchServer.exe from the server folder.
  • Run GunZ.exe from client folder (DO NOT USE Launcher.exe as it will downgrade to what is placed on the website for patching).
  • You can also run GunZ.exe on Linux using Wine. Currently everything seems to work, but text rendering is broken and text is unreadable.
  • Register a test account within the client and login.

Contact

Feel free to post any issue in the issues section.
You can also reach us on our discord via this link.

Credits

Crawly (https://github.com/Asunaya/RefinedGunz)

SuhBruh (https://igunz.net)

Michael Steshenko (https://igunz.net)

About

An attempt to fixes the programmers sin's in Gunz1.0 Spaghetti code. Fixing security horrors and numerous RCE

License:GNU General Public License v3.0


Languages

Language:C++ 57.9%Language:C 40.8%Language:CMake 0.7%Language:Assembly 0.3%Language:Lua 0.1%Language:Python 0.1%Language:TSQL 0.0%Language:HLSL 0.0%Language:GLSL 0.0%Language:R 0.0%Language:Batchfile 0.0%Language:CSS 0.0%Language:Meson 0.0%Language:HTML 0.0%Language:Shell 0.0%