Tags: password

Sort by: Date / Title /

  1. 8 years ago by sox
    First of all you will need to ensure that your database is stopped:
    
    root@steve:~# /etc/init.d/mysql stop
    
    Now you should start up the database in the background, via the mysqld_safe command:
    
    root@steve:~# /usr/bin/mysqld_safe --skip-grant-tables &
    [1] 6702
    Starting mysqld daemon with databases from /var/lib/mysql
    mysqld_safe[6763]: started
    
    Here you can see the new job (number "1") has started and the server is running with the process ID (PID) of 6702.
    
    Now that the server is running with the --skip-grant-tables flag you can connect to it without a password and complete the job:
    
    root@steve:~$ mysql --user=root mysql
    Enter password:
    
    mysql> update user set Password=PASSWORD('new-password-here') WHERE User='root';
    Query OK, 2 rows affected (0.04 sec)
    Rows matched: 2  Changed: 2  Warnings: 0
    
    mysql> flush privileges;
    Query OK, 0 rows affected (0.02 sec)
    
    mysql> exit
    Bye
    
    Now that you've done that you just need to stop the server, so that you can go back to running a secure MySQL server with password restrictions in place. First of all bring the server you started into the foreground by typing "fg", then kill it by pressing "Ctrl+c" afterwards.
    
    This will now allow you to start the server:
    
    root@steve:~# /etc/init.d/mysql start
    Starting MySQL database server: mysqld.
    Checking for corrupt, not cleanly closed and upgrade needing tables..
    
    Now everything should be done and you should have regained access to your MySQL database(s); you should verify this by connecting with your new password:
    
    root@steve:~# mysql --user=root --pass=new-password-here
    Welcome to the MySQL monitor.  Commands end with ; or g.
    Your MySQL connection id is 5 to server version: 5.0.24a-Debian_4-log
    
    Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
    
    mysql> exit
    Bye
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2126"></script>
  2. 9 years ago by spirit
    1. perl -le 'print crypt("password", "salt")'
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2000"></script>
  3. 11 years ago by neorom
    1ère phase : 
    allumage de l"équipement
    2ème phase :
    si sur port série avec minicom :
    Appuyez  ctrl-AZ
    Si sur port série avec hyperterminal :
    Appuiyer sur ctrl-Pause
    3ème phase :
    On obtient un accès minimaliste à l'équipement
    en conf t saisir la commande suivante :
    confreg 0x2142
    Nous changeons la valeur du registre de configuration pour dire à l'équipement de booter sur son IOS mais sans prendre en compte sa configuration
    4ème phase :
    Rebootez l"équipement, celui ci bootera de façon normale, sans prendre en compte sa configuration habituelle.
    désormais on peut réinitialiser le mot de passe d'acces au switch
    5ème pahse :
    conf t
    config-register 0x2102
    Cette commande re décale le registre de condifguration et le remet à sa valeur initiale. Ainsi au prochain reboot on utilisera la nouvelle configuration.
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/997"></script>
  4. sponsorised links
  5. 11 years ago by jacinmontava
    1. function randomPass($longitud)
    2. {
    3.     $pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
    4.  
    5.     for($i=0;$i<$longitud;$i++)
    6.     {
    7.          $key .= $pattern{rand(0,35)};
    8.     }
    9.  
    10.     return $key;
    11. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/620"></script>
  6. 11 years ago by yorick
    PHP 4 >= 4.3.0, PHP 5
    1. $motdepasse = substr(str_shuffle('abcdefghijklmnopqrstuvwxyz0123456789'), 0, 8);
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/614"></script>
  7. 11 years ago by soren and saved by 1 other
    Permet d'afficher en clair les mots de passe tapés sur une page Firefox. Il suffit juste de copier/coller ce code dans la barre d'adresse de Firefox de la page en question.
    1. javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Mots de passe dans les formulaires de cette page :\n\n" + s); else alert("Il n'y a pas de mots de passe dans les formulaires de cette page.");})();
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/495"></script>
  8. 11 years ago by phil0805 and saved by 1 other
    If you have the boot loader Grub :
    1. Start the machine and wait until the bootloader screen appears
    2. Select the operating system and type E for edit
    3. Select kernel and type E for edit
    4. Select boot and add runlevel 1 to the end of the line
    5. Press Enter and then B for boot
    6. After booting the kernel, use passwd to change the password
    7. Reboot the PC and use the new root password
    
    If you have the boot loader lilo :
    1. Start the machine and wait until the bootloader screen appears
    2. Type linux single to enter single user mode
    3. After booting the kernel, use passwd to change the password
    4. Reboot the PC and use the new root password
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/82"></script>

First / Previous / Next / Last / Page 1 of 1 (7 posteets)