Thứ Năm, 16 tháng 6, 2016

Gmail Error: Password not accepted from server [SOLVED]

Found a good solution today if you’re receiving the following error:
SMTP -> ERROR:Password not accepted from server. Code: 535 Reply: 535-5.7.1 Please log in with your web browser and then try again.
Even if the Gmail account credentials are correct, Google’s servers may still block the server attempting to authenticate (more than likely due to a new server location and/or recent password change).

Firts, you need allow a sign-in attempt from your device:  https://myaccount.google.com/security#activity

To get around this, make sure you are logged in using the same Gmail account in your browser, and then simply open the link below and step through the process of verification:
https://accounts.google.com/b/0/DisplayUnlockCaptcha

This will allow access to your Gmail account for about 10 minutes so that a new authenticating server can be detected.  Be sure to try authenticating again within this time period.

Your mail app might not support the latest security standards. Learn how to allow less secure apps access to your account. https://www.google.com/settings/u/0/security/lesssecureapps
Make sure your mail app isn't set to check for new email too frequently. If your mail app checks for new messages more than once every 10 minutes, the app’s access to your account could be blocked.
Try changing your password according to our tips on creating a strong password.
If using CPanel(WHM)
Login to CPanel > Tweak Settings > All> "Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)" <== disable it
Read More

Cracking password Oracle 12c format using hashcat


  1. Download hashcat from https://hashcat.net/hashcat/ and unpack it
  2. Select spare4  value from sys.user$  
    In this case for example, System Properties:
    -> Database: Oracle 12c
    -> Account: SYS
    -> Passwd: SYS
    -> SYS.USER$: NAME = 'SYS', SPARE4 = 'S:B283DCCE5DC81D2023E3304C8818646CFF434C9C2FCDD505130ED13524B4'
       This means: HASH = 'B283DCCE5DC81D2023E3304C8818646CFF434C9C', SALT = '2FCDD505130ED13524B4'
    The format is [hash 40 "chars"]:[salt] , example B283DCCE5DC81D2023E3304C8818646CFF434C9C:2FCDD505130ED13524B4
    then put in to file hash_salt.txt
  3. Run the following hashcat command with m = 112 (Oracle 11g /12c) 
c:\hashcat-2.00>hashcat-cli64.exe -m 112 -a 0 -o result.txt hash_salt.txt dict.txt





Read More

Thứ Tư, 15 tháng 6, 2016

Reset a MySQL root password

1. Linux

Stop the MySQL service
(Ubuntu and Debian) Run the following command:
sudo /etc/init.d/mysql stop
 (CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command:
sudo /etc/init.d/mysqld stop
Start MySQL without a password:
sudo mysqld_safe --skip-grant-tables &
Connect to MySQL:
mysql -uroot
Set a new MySQL root password:
use mysql;
update user set password=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
Stop and start the MySQL service:
(Ubuntu and Debian) Run the following commands:
sudo /etc/init.d/mysql stop
...
sudo /etc/init.d/mysql start
(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following commands:
sudo /etc/init.d/mysqld stop
...
sudo /etc/init.d/mysqld start
Log in to the database: Test the new password by logging in to the database.
mysql -u root -p
2. Windows (In case if you have Xampp installed.)

  • Goto C:\xampp\mysql\bin
  • Open my.ini file
  • Put skip-grant-tables under [mysqld]
  • Goto windows services, stop and start mysql service
  • Trigger this command from command prompt C:\xampp\mysql\bin\mysql
  • Now, reset the root password with the MySQL query update mysql.user set password=PASSWORD('root') where user='root';
  • Exit the command prompt.
  • Restart the mysql windows service.
  • Now you will be able to login to mysql using password as root.
Others:

0) shut down service mysql56

1) go to C:\ProgramData\MySQL\MySQL Server 5.6, note that ProgramData is a hidden folder

2) looking for file my.ini, open it and add one line skip-grant-tables below [mysqld],save[mysqld] skip-grant-tables


3) start service mysql56

4) by right, you can access the database, run mysql

5) and use the query below to update the passwordupdate mysql.user set password=PASSWORD('NEW PASSWORD') where user='root';


6) shut down the service again, remove the line skip-grant-tables save it, and start the service again. try to use the password you set to login.
Read More

Reset a MySQL root password

1. Linux

Stop the MySQL service
(Ubuntu and Debian) Run the following command:
sudo /etc/init.d/mysql stop
 (CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command:
sudo /etc/init.d/mysqld stop
Start MySQL without a password:
sudo mysqld_safe --skip-grant-tables &
Connect to MySQL:
mysql -uroot
Set a new MySQL root password:
use mysql;
update user set password=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
Stop and start the MySQL service:
(Ubuntu and Debian) Run the following commands:
sudo /etc/init.d/mysql stop
...
sudo /etc/init.d/mysql start
(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following commands:
sudo /etc/init.d/mysqld stop
...
sudo /etc/init.d/mysqld start
Log in to the database: Test the new password by logging in to the database.
mysql -u root -p
2. Windows (In case if you have Xampp installed.)

  • Goto C:\xampp\mysql\bin
  • Open my.ini file
  • Put skip-grant-tables under [mysqld]
  • Goto windows services, stop and start mysql service
  • Trigger this command from command prompt C:\xampp\mysql\bin\mysql
  • Now, reset the root password with the MySQL query update mysql.user set password=PASSWORD('root') where user='root';
  • Exit the command prompt.
  • Restart the mysql windows service.
  • Now you will be able to login to mysql using password as root.
Others:

0) shut down service mysql56

1) go to C:\ProgramData\MySQL\MySQL Server 5.6, note that ProgramData is a hidden folder

2) looking for file my.ini, open it and add one line skip-grant-tables below [mysqld],save[mysqld] skip-grant-tables


3) start service mysql56

4) by right, you can access the database, run mysql

5) and use the query below to update the passwordupdate mysql.user set password=PASSWORD('NEW PASSWORD') where user='root';


6) shut down the service again, remove the line skip-grant-tables save it, and start the service again. try to use the password you set to login.
Read More