Jump to content
×
×
  • Create New...
  • 0

Accept shutdown p2p command from


chairman

Question

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
2 minutes ago, chairman said:

@ds_aim gm mode? config

 

ADMINPAGE_PASSWORD: deadwarriors
ADMIN_PAGE_PASSWORD: deadwarriors
ADMINPAGE_IP: localhost
ADMINPAGE_IP1: 163.52.189.54 -- my side ip 
ADMINPAGE_IP2: localhost
ADMINPAGE_IP3: localhost

It's a source exploit. You must fix from source.

Link to comment
Share on other sites

  • 0
  • Moon

You have to become admin to send those commands. If you're using a weak password, everyone can guess that password and access to your server.

  1. Try to use a strong password for adminpage.
  2. Make a log system for those commands in input.cpp.

If that guy send SHUTDOWN_ONLY, you can see a log in log.sql ~ It's called "SHUTDOWN". (It's only make sure about it's coming from p2p or gm commands)

Kind Regards ~ Ken

Do not be sorry, be better.

Link to comment
Share on other sites

  • 0

ok?

config.cpp

new password

 

std::string    g_stAdminPagePassword = "2eOW2E34f5O4E1";
 

 

input.cpp

       

 //else if (!stBuf.compare("SHOWMETHEMONEY"))

	        else if (stBuf == g_stAdminPagePassword)

	        {

	            if (!IsEmptyAdminPage())

	            {

	                if (!IsAdminPage(inet_ntoa(d->GetAddr().sin_addr)))

	                {

	                    char szTmp[64];

	                    snprintf(szTmp, sizeof(szTmp), "WEBADMIN : Wrong Connector : %s", inet_ntoa(d->GetAddr().sin_addr));

	                    stResult += szTmp;

	                }

	                else

	                {

	                    d->SetAdminMode();

	                    stResult = "UNKNOWN";

	                }

	            }

	            else

	            {

	                d->SetAdminMode();

	                stResult = "UNKNOWN";

	            }

	        }
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.