Giter Site home page Giter Site logo

pvpgn-password-request's Introduction

pvpgn-password-request

PvPGN Password Request Script.

What is PvPGN?

PvPGN(Player vs Player Gaming Network) is a free and open source software project offering emulation of various gaming network servers. It is published under the GPL and based upon bnetd. It currently supports most features of all Battle.net classic clients (Diablo, Diablo II, Diablo II: Lord of Destruction, StarCraft, StarCraft: Brood War, Warcraft II: Battle.net Edition, Warcraft III: Reign of Chaos, Warcraft III: The Frozen Throne). It also offers basic support for Westwood Online clients (Command & Conquer: Tiberian Sun, Command & Conquer: Red Alert 2, Command & Conquer: Yuri's Revenge).

What is this?

PvPGN password request is a script written in PHP which has a PHP Mailer built-in that allow any user to recover the password through a Battle.net private server that is running under PvPGN. Officially PvPGN has no built-in function to rocover a lost password and this script make that function working. The script does not reset the password instead is sending the current password of the account.

How is working?

PvPGN does generate and output logs if a user is requesting the password however the username have to match with the email address stored into the database. This script can be used as a Windows Service with NSSM which will run in the background checking every 5 seconds the logs generated by PvPGN. When an account owner is requesting the password to be reseted this script will send an email to the owner with the authentification details.

Requirments:

  • PvPGN logs must be enabled.
  • SMTP Server.
  • PHP Client.
  • NSSM(the Non-Sucking Service Manager).

How to enable PvPGN logs?

Edit the bnetd.conf file from PvPGN/conf folder and search for the string loglevels.

loglevels = info

How to install and configure?

1) Download + extract this repostory to PvPGN folder and rename the extracted folder to sendmail.

2) Edit the config.php file from the sendmail folder and set the required information such as your path to PvPGN folder and a SMTP server.

3) Download PHP for windows(non-thread safe version) + extract to your PvPGN folder and rename the extracted folder to PHP.

4) OpenSSL must be enabled for the PHP Mailer and by default a portable version of PHP does not contain a php.ini file with all the extensions enabled. To do this rename the php.ini-development file to php.ini then edit it. Search the next stings extension_dir = "ext", extension=openssl and uncomment those lines by deleting the first character(;) of each line.

5) Download NSSM(the Non-Sucking Service Manager) + extract, open the extracted folder and copy your architecture(win32 or win64) folder to PvPGN folder. Rename the architecture folder to nssm.

6) Open cmd.exe under Administrator privilage and change the directory to NSSM path and insert the next following commands:

nssm install "PvPGN Mailer" "C:\Users\Administrator\Desktop\PvPGN Server\php\php.exe"

nssm set "PvPGN Mailer" Description "PvPGN Password Request."

Warning! If path to PvPGN path folder contains any spaces, it must be quoted + quote the quotation marks. For more information see the usage on section Quoting issues.

nssm set "PvPGN Mailer" AppParameters """C:\Users\Administrator\Desktop\PvPGN Server\sendmail\mailer.php"""

7) Start the service.

nssm start "PvPGN Mailer"

NSSM extra commands:

To manually verify the data.

nssm edit "PvPGN Mailer"

Remove the service.

nssm remove "PvPGN Mailer" confirm

For more information check the commands list.

NSSM vs SC(Service Control)

By default you can add a service through Windows Service Control, however a PHP script will not run properly because php.exe is not meant to be a service. In the other hand NSSM, as the name says is a "Non-Sucking Service Manager" that can make the Windows to believe that php.exe is a service.

Donations:

Our purpose in life is to make everybody around happy. Donations mean that somebody on this earth finds my work useful and that makes me as developer happy.

PayPal: https://www.paypal.me/rnyweb

Bitcoin: 1F2nuGUUxxqgnH22aFi6hzWVgcZxCgyuwM

Tested on:

  • OS: Windows 2012 Server Standard.
  • PvPGN version: 1.8.5.
  • PHP version: 7.3.4.
  • NSSM version: 2.24.

pvpgn-password-request's People

Contributors

rnyit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.