• 0
hadiesyafiq

How to create server status script for website php (non flux cp)

Question

How to create server status/online peak/registered account count/server time script for website normal php non flux cp website

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted (edited)

same process connect your html/splash page to your phpmyadmin but the down side is unencrypted.

 

or add encryption

 

 

Edited by wOni

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

Habilis is all about CyberSecurity

SO, here is an answer of a Hukker

Create a SQLView in teh Database 

https://www.w3schools.com/sql/sql_view.asp

example 

CREATE VIEW vw_ServerStats AS

SELECT 

  ... 

FROM users 

WHERE ...

LEFT JOIN ... 

  ON ...

2 - Create a SQL user  herc_Viewer

With the grant to select ONLY on vw_ServerStats

That way if an Evil Hukker such as Habilis uploads a WebShell to your shitkoded super sophisticated website

and sees your connections string for user herc_Viewer and his password. 

Habilis will not be able (CREATE, EDIT, DELETE) users

Habilis will not be able to CREATE mvp cards and sell them for real money (Habilis's favorite)

Habilis will not be able to SELECT user info such as Emails and passwords

Only thing Habilis will be able to do is to SELECT info already publically available on your website.

 

Beware of Hukkers, and don't forget to download your internet anonymity!

:kiss_wink:  

 

Edited by Habilis

Share this post


Link to post
Share on other sites
  • 0

For

1) online peak: make a script to log peak count on Sql and read that from website

2) server status; check if port is open

3) server time: set timezone in web script which matches your server timezone.

4) account count; you need count query (follow habilis guide to ensure there can't be any other access)

Share this post


Link to post
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