Saturday, February 23, 2019

How to enable the /cgi-bin/printenv in OAM?


1) Locate to the following location


Update the permisison to 775 for printenv

2) Type which perl, Copy the path and update that in printenv.

[oracle@oracle cgi-bin]$ cat printenv
##  printenv -- demo CGI program which just prints its environment

print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"\n";

3) Type printenv and very its working

3) Now try accessing protected url it will redirect to oam login page, provide the login details, once we get the protected page.

4) Now try accessing below url in anpther tab

Arihant Baid

No comments:

Post a Comment