Difference between revisions of "Cisco banners"

From Ever changing code
Jump to navigation Jump to search
Line 4: Line 4:
  login Displayed '''before''' login Not displayed Displayed '''before''' login
  login Displayed '''before''' login Not displayed Displayed '''before''' login
  exec Displayed '''after''' login Displayed '''after''' login Displayed '''after''' login
  exec Displayed '''after''' login Displayed '''after''' login Displayed '''after''' login
= Banner EXEC variables =
The exec banner is displayed after authentication therefore it is safe to display system specific info thus certain variables can be used. See an example below to display a hostname and a domain name using <tt>$(variable)</tt>.
banner exec ^C  You have logged in to '''$(hostname).$(domain)'''.  ^C


= Examples =
= Examples =

Revision as of 15:15, 3 January 2015

Banner	Telnet			SSHv1			SSHv2
motd	Displayed before login	Displayed after login	Displayed after login
login	Displayed before login	Not displayed		Displayed before login
exec	Displayed after login	Displayed after login	Displayed after login

The exec banner is displayed after authentication therefore it is safe to display system specific info thus certain variables can be used. See an example below to display a hostname and a domain name using $(variable).

banner exec ^C  You have logged in to $(hostname).$(domain).  ^C

Examples

           YOU HAVE ACCESSED A DEVICE THAT IS A PART OF A
                   PRIVATE NETWORK INFRASTRUCTURE

       *********************************************************
       *                                                       *
       *     Unauthorised access or use of this equipment      *
       *      is prohibited and constitutes an offence         *
       *        under the Computer Misuse Act 1990.            *
       *     If you are not authorised to use this system      *
       *         TERMINATE THIS SESSION IMMEDIATELY            *
       *                                                       *
       *********************************************************