DBA做坏事之盗用Oracle用户身份
SQL> select * from v$version; /c clsBANNER ---------------------------------------------------------------- Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production PL/SQL Release 8.1.7.0.0 - Production CORE 8.1.7.0.0 Production TNS for 32-bit Windows: Version 8.1.7.0.0 - Production NLSRTL Version 3.4.1.0.0 - Production SQL> create user test identified by test; 用户已创建 SQL> SELECT password FROM dba_users WHERE username=‘TEST‘; /c clsPASSWORD ------------------------------ 7A0F2B316C212D67 SQL> alter user test identified by newpwd; 用户已更改。 SQL> SELECT password FROM dba_users WHERE username=‘TEST‘; /c clsPASSWORD ------------------------------ 39797952BFEE21C3 SQL> grant connect,resource to test; 授权成功。上面建了个test用户,原来的密码是test,后改成了newpwd. 这里注意下,密码test加密后的字符串为"7A0F2B316C212D67".
C:\>sqlplus /nolog SQL*Plus: Release 8.1.7.0.0 - Production on 星期四 3月 13 15:37:54 2014 (c) Copyright 2000 Oracle Corporation. All rights reserved. SQL> connect test/test@xcldb ERROR: ORA-01017: invalid username/password; logon denied SQL> connect test/newpwd@xcldb ERROR: ORA-01045: user TEST lacks CREATE SESSION privilege; logon denied SQL> connect test/newpwd@xcldb 已连接。 SQL> disconnect;证明新密码是生效的。
SQL> alter user test identified by values ‘7A0F2B316C212D67‘; 用户已更改。 SQL> SELECT password FROM dba_users WHERE username=‘TEST‘; /c clsPASSWORD ------------------------------ 7A0F2B316C212D67 SQL>有木有,神奇的密码字符串又回来了。
SQL> disconnect; 从Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option JServer Release 8.1.7.0.0 - Production中断开 SQL> connect test/newpwd@xcldb ERROR: ORA-01017: invalid username/password; logon denied SQL> connect test/test@xcldb 已连接。 SQL>嗯,又可以用旧的密码test登录了。
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。