Changes between Initial Version and Version 1 of Realisations/2006-2007/Projet/PasswordRecovery


Ignore:
Timestamp:
Mar 22, 2007, 12:37:04 PM (18 years ago)
Author:
ashtari
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Realisations/2006-2007/Projet/PasswordRecovery

    v1 v1  
     1
     2= Equipements de l'AS65001 =
     3----
     4
     5== Switch Cisco C3560 ==
     6
     7   * Relier le switch à un terminal par le port console
     8   * Démarrer le switch en maintenant la touche "Mode" enfoncée pendant 3 secondes
     9   * Le switch doit afficher "The system has been interrupted prior to initializing the flash file system. The following commands will initialize the flash file system" , ce qui signifie qu'il a demarré en mode "Rom monitor"
     10
     11Ensuite:
     12
     13Step 1   Initialize the Flash file system:
     14
     15switch: flash_init
     16
     17Step 2   If you had set the console port speed to anything other than 9600, it has been reset to that particular speed. Change the emulation software line speed to match that of the switch console port.
     18
     19Step 3   Load any helper files:
     20switch: load_helper
     21
     22Step 4   Display the contents of Flash memory:
     23switch: dir flash:
     24
     25The switch file system appears:
     26Directory of flash:[[BR]]
     27
     28   13  drwx         192   Mar 01 1993 22:30:48  c3560-i5-mz.121.19-EA1[[BR]]
     29
     30   11  -rwx        5825   Mar 01 1993 22:31:59  config.text[[BR]]
     31
     32   18  -rwx         720   Mar 01 1993 02:21:30  vlan.dat[[BR]]
     33
     34
     3516128000 bytes total (10003456 bytes free)
     36
     37Step 5   Rename the configuration file to config.text.old.
     38
     39This file contains the password definition.
     40switch: rename flash:config.text flash:config.text.old
     41
     42Step 6   Boot the system:
     43switch: boot
     44
     45You are prompted to start the setup program. Enter N at the prompt:
     46Continue with the configuration dialog? [yes/no]: N
     47
     48Step 7   At the switch prompt, enter privileged EXEC mode:
     49Switch> enable
     50
     51Step 8   Rename the configuration file to its original name:
     52Switch# rename flash:config.text.old flash:config.text
     53
     54Step 9   Copy the configuration file into memory:
     55Switch# copy flash:config.text system:running-config
     56Source filename [config.text]?
     57Destination filename [running-config]?
     58
     59Press Return in response to the confirmation prompts.
     60
     61The configuration file is now reloaded, and you can change the password.
     62
     63Step 10   Enter global configuration mode:
     64Switch# configure terminal
     65
     66Step 11   Change the password:
     67Switch (config)# enable secret password
     68
     69The secret password can be from 1 to 25 alphanumeric characters, can start with a number, is case sensitive, and allows spaces but ignores leading spaces.
     70
     71Step 12   Return to privileged EXEC mode:
     72Switch (config)# exit[[BR]]
     73
     74Switch#
     75
     76Step 13   Write the running configuration to the startup configuration file:
     77Switch# copy running-config startup-config
     78
     79The new password is now in the startup configuration.
     80
     81[[BR]]
     82[[BR]]
     83
     84== Routeur Cisco 2801 ==
     85
     86   * Relier le routeur à un terminal par le port console
     87   * Si le routeur est démarré, tapper '''show version''' , le routeur doit afficher:
     88
     89{{{
     90Router>show version
     91Cisco Internetwork Operating System Software
     92IOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)
     93Copyright (c) 1986-1999 by cisco Systems, Inc.
     94Compiled Tue 07-Dec-99 02:21 by phanguye
     95Image text-base: 0x80008088, data-base: 0x80C524F8
     96
     97ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)
     98
     99Router uptime is 3 minutes
     100System returned to ROM by abort at PC 0x802D0B60
     101System image file is "flash:c2600-is-mz.120-7.T"
     102
     103cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.
     104Processor board ID JAB031202NK (3878188963)
     105M860 processor: part number 0, mask 49
     106Bridging software.
     107X.25 software, Version 3.0.0.
     108Basic Rate ISDN software, Version 1.1.
     1092 Ethernet/IEEE 802.3 interface(s)
     1102 Serial(sync/async) network interface(s)
     1111 ISDN Basic Rate interface(s)
     11232K bytes of non-volatile configuration memory.
     1138192K bytes of processor board System flash partition 1 (Read/Write)
     1148192K bytes of processor board System flash partition 2 (Read/Write)
     115
     116Configuration register is 0x2102
     117
     118Router>
     119}}}
     120
     121   * Noter la valeur du registre de configuration (derniere ligne), ici: 0x2102
     122   * Redémarrer celui-ci, et maintenz les touches "CTRL" et "BREAK" enfoncées jusqu'à obtenir:
     123
     124{{{
     125
     126!--- The router was just powercycled, and during bootup a
     127!--- break sequence was sent to the router.
     128
     129
     130!
     131
     132*** System received an abort due to Break Key ***
     133
     134signal= 0x3, code= 0x500, context= 0x813ac158
     135PC = 0x802d0b60, Vector = 0x500, SP = 0x80006030
     136rommon 1 >
     137}}}
     138
     139   * tapper '''confreg 0x2142'''
     140   * tapper '''reset'''
     141   * le routeur redémarre en config usine, repondre '''n''' à la question "Would you like to enter the initial configuration dialog?"
     142   * Au prompt, tapper '''enable'''
     143   * tapper '''copy startup-config running-config'''
     144   * tapper '''configure terminal'''
     145   * tapper '''enable secret < password >''' où password est le nouveau mot de passe
     146   * tapper '''exit'''
     147   * si besoin, réactiver les interfaces qui auraient été deconnectées
     148   * tapper '''conf t'''
     149   * tapper '''copy running-config startup-config'''
     150   * tapper '''config-register 0x2102''' pour restaurer l'ancienne valeur du registre de configuration (ici 2102, mais peut varier)
     151   
     152[[BR]]
     153[[BR]]
     154
     155
     156== Firewall Cisco AS5510 ==
     157
     158   * Step 1 Connect to the security appliance console port
     159
     160   * Step 2 Power off the security appliance, and then power it on.
     161
     162   * Step 3 During the startup messages, press the '''Escape''' key when prompted to enter ROMMON.
     163
     164   * Step 4 To set the security appliance to ignore the startup configuration at reload, enter the following command:
     165
     166rommon #1> '''confreg'''
     167
     168
     169The security appliance displays the current configuration register value, and asks if you want to change the value:
     170
     171Current Configuration Register: 0x00000011
     172
     173Configuration Summary:
     174
     175  boot TFTP image, boot default image from Flash on netboot failure
     176
     177Do you wish to change this configuration? y/n [n]:
     178
     179
     180   * Step 5 Record your current configuration register value, so you can restore it later.
     181
     182   * Step 6 At the prompt, enter Y to change the value.
     183
     184The security appliance prompts you for new values.
     185
     186   * Step 7 Accept the default values for all settings, except for the "disable system configuration?" value; at that prompt, enter Y.
     187
     188   * Step 8 Reload the security appliance by entering the following command:
     189
     190rommon #2> '''boot'''
     191
     192
     193The security appliance loads a default configuration instead of the startup configuration.
     194
     195   * Step 9 Enter privileged EXEC mode by entering the following command:
     196
     197hostname> '''enable'''
     198
     199
     200   * Step 10 When prompted for the password, press Return.
     201
     202The password is blank.
     203
     204   * Step 11 Load the startup configuration by entering the following command:
     205
     206hostname# '''copy startup-config running-config'''
     207
     208
     209   * Step 12 Enter global configuration mode by entering the following command:
     210
     211hostname# '''configure terminal'''
     212
     213
     214   * Step 13 Change the passwords in the configuration by entering the following commands, as necessary:
     215
     216hostname(config)# '''password password'''
     217
     218hostname(config)# '''enable password password'''
     219
     220hostname(config)# '''username name password password'''
     221
     222
     223   * Step 14 Change the configuration register to load the startup configuration at the next reload by entering the following command:
     224
     225hostname(config)# '''config-register value'''
     226
     227
     228Where value is the configuration register value you noted in Step 5. 0x1 is the default configuration register. For more information about the configuration register, see the Cisco Security Appliance Command Reference.
     229
     230   * Step 15 Save the new passwords to the startup configuration by entering the following command:
     231
     232hostname(config)# '''copy running-config startup-config'''
     233
     234
     235
     236