User:Brush: Difference between revisions

From WolfWiki
Jump to navigation Jump to search
Brush (talk | contribs)
Brush (talk | contribs)
Line 7: Line 7:


==ETPro/Lua libraries, modules and examples==
==ETPro/Lua libraries, modules and examples==


== Description ==
== Description ==

Revision as of 11:20, 12 April 2006


Contact


ETPro/Lua libraries, modules and examples

Description

Admin tool, which helps you to check, if just authorized referees login as referees to your servers. This tool logs all logins/failed logins. It compares the verified referee password from your server.cfg with the password entered on the server.


So now your are able to notice

  1. if the servers password is safe
  2. when your referees logged in
  3. if they are really the persons, who they pretend to be
  4. if people tried to hack into the referee console
  5. who spreaded the password accidently on the server


It logs all login actions into two files:

  1. contains verified and possibly hacked logins
  2. contains all failed logins


The logged informations are:

  1. guid
  2. ip
  3. playername
  4. entered password
  5. login time and date


You can set your prefered field delimiter, which helps you, to import the logs to EXCEL easily.

Requirements


Installation

set lua_modules "ref_monitor.lua"
  • Open the script file in your prefered editor and
set DELIMITER, if you want to import the file to EXCEL, (set to ";" by default)
set SAFE_FILE or leave it as it is
set WEAK_FILE or leave it as it is
DELIMITER   = ";"                      	-- set a delimiter char to make the list compatible for imports to EXCEL
SAFE_FILE   = "successful_logins.txt"   -- contains verified AND possibly hacked logins
WEAK_FILE   = "hacks.txt"		-- "hacks.txt" -> contains all failed logins
  • Save the file and upload it to the etpro folder on the server.
  • Ensure, that the script is allowed to create the log files on our server (check File Permissions in ../ET/etpro/.. )


Important

  • Please check the file size of the log files from time to time and delete it if it gets too big.


Download

ref_monitor.lua