\CobainsShotgun
Performs radius.log analyze to detect successful and failed auth attempts
Synopsis
class CobainsShotgun
{
- // constants
- const URL_ME = '?module=cobainsshotgun';
- const ROUTE_ZEN = 'zenmode';
- // members
- protected string $dataSource = '/var/log/radius.log';
- protected string $authDataMask = 'Auth:';
- protected string $authOkMask = 'Login OK:';
- protected $billCfg = ;
- protected $messages = '';
- // methods
- public void __construct()
- protected void loadConfigs()
- protected void initMessages()
- protected array getRawData()
- public string extractUserName()
- public string renderControls()
- public string renderReportZen()
- public string renderReport()
Constants
Name | Value |
---|---|
URL_ME | '?module=cobainsshotgun' |
ROUTE_ZEN | 'zenmode' |
Members
protected
Methods
protected
- getRawData() — Returns array of filtered auth strings from datasource
- initMessages() — Inits system messages helper
- loadConfigs() — Preloads required system configs for further usage
public
- __construct()
- extractUserName() — Extracts username from square brackets
- renderControls() — Renders module controls panel
- renderReport() — Render the report. What did you expect?
- renderReportZen() — Renders CobainsShotgun UI for ZenFlow