This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate RSA | |
openssl genrsa 4096 > priv.pem | |
openssl rsa -in priv.pem -pubout > pub.pem | |
# encode modulus | |
n=$(openssl rsa -pubin -in pub.pem -noout -modulus | cut -f2 -d= | xxd -r -p | base64 | sed -e 's/\//_/g' -e 's/+/-/g' -e 's/=//g') | |
# encode exponent | |
# standard one is 65537 | |
e="AQAB" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loop(after) { | |
setTimeout(() => { | |
let url = ''; | |
if (after) | |
url = 'https://' + domain + '/api/internal/administrators?after=' + after + '&filter=SuperOrgAdmin%2COrgAdmin%2CAppAdmin%2CUserAdmin%2CHelpDeskAdmin%2CReadOnlyAdmin%2CApiAccessManagementAdmin%2CReportAdmin%2CGroupMembershipAdmin&type=group&limit=100&expand=user%2Capps%2Cinstances%2CappAndInstances%2CuserAdminGroups%2ChelpDeskAdminGroups%2CgroupMembershipAdminGroups' | |
else | |
url = 'https://' + domain + '/api/internal/administrators?filter=SuperOrgAdmin%2COrgAdmin%2CAppAdmin%2CUserAdmin%2CHelpDeskAdmin%2CReadOnlyAdmin%2CApiAccessManagementAdmin%2CReportAdmin%2CGroupMembershipAdmin&type=group&limit=100&expand=user%2Capps%2Cinstances%2CappAndInstances%2CuserAdminGroups%2ChelpDeskAdminGroups%2CgroupMembershipAdminGroups' | |
fetch(url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -cp \ | |
kotlin-reflect.jar:kotlin-stdlib.jar:kotlin-stdlib-jdk7.jar:oimscript.jar:$MW_HOME/idm/server/client/oimclient.jar:$MW_HOME/oracle_common/modules/oracle.jrf/jrf-api.jar:$MW_HOME/oracle_common/modules/thirdparty/spring-core-4.3.20.RELEASE.jar:$MW_HOME/oracle_common/modules/thirdparty/spring-context-4.3.20.RELEASE.jar:$MW_HOME/oracle_common/modules/org.apache.commons.logging_1.2.jar:$OIM_HOME/server/idmdf/event-recording-client.jar:$OIM_HOME/server/idmdf/idmdf-common.jar:$MW_HOME/wlserver/server/lib/wlthint3client.jar:$MW_HOME/oracle_common/modules/oracle.toplink/eclipselink.jar \ | |
MainKt t3://oim_host:oim_port $OIM_HOME/designconsole/config/authwl.conf [oim_username] | [oim_username oim_password] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loop(i) { | |
setTimeout(() => { | |
fetch('https://' + domain + '/admin/groups/search?iColumns=8&sColumns=id%2Cname%2CappName%2CappDisplayName%2Cdescription%2CuserCount%2CappCount%2CdirCount&orderBy=name&sortDirection=asc&maxResults=100&iDisplayStart=' + i + '&sSearch=') | |
.then(resp => resp.text()) | |
.then(data => { | |
var json = JSON.parse(data.substring(11)); // 11 is a number of first symbols to remove from the result, | |
// as it's always "while(1){};" | |
console.log(json.aaData); // just for visual progress tracking | |
aaData = aaData.concat(json.aaData); | |
if (i < upper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loop(i) { | |
setTimeout(() => { | |
fetch('https://' + domain + '/admin/users/search?sEcho=1&iColumns=9&sColumns=user.id%2Cuser.fullName%2Cuser.lastName%2Cuser.email%2Cuser.login%2Cstatus.statusLabel%2Cstatus.loginStatus%2Cstatus.statusCode%2CmanagedBy.rules&iDisplayStart=' + i +'&iDisplayLength=100&sSearch=&bRegex=false&sSearch_0=&bRegex_0=false&bSearchable_0=true&sSearch_1=&bRegex_1=false&bSearchable_1=true&sSearch_2=&bRegex_2=false&bSearchable_2=true&sSearch_3=&bRegex_3=false&bSearchable_3=true&sSearch_4=&bRegex_4=false&bSearchable_4=true&sSearch_5=&bRegex_5=false&bSearchable_5=true&sSearch_6=&bRegex_6=false&bSearchable_6=true&sSearch_7=&bRegex_7=false&bSearchable_7=true&sSearch_8=&bRegex_8=false&bSearchable_8=true&iSortingCols=1&iSortCol_0=1&sSortDir_0=asc&bSortable_0=true&bSortable_1=true&bSortable_2=true&bSortable_3=true&bSortable_4=true&bSortable_5=false&bSortable_6=true&bSortable_7=true&bSortable_8=false&orderBy=lastName&sortDirection=asc&groupId=' + grpId) | |
.then(resp => resp.text()) | |
.then(da |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OKTA_DOMAIN="your.okta.domain" | |
APP_ID="xxxxxxxxxxxxxxx" | |
while read -r line; | |
do | |
data="{ | |
\"id\": \"$line\", | |
\"scope\": \"USER\", | |
\"profile\": { | |
\"externalId\": \"$line\" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!$MW_HOME/oracle_common/common/bin/wlst.sh | |
domain = "$DOMAIN_HOME" | |
service = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domain) | |
encryption = weblogic.security.internal.encryption.ClearOrEncryptedService(service) | |
print(encryption.decrypt("<encrypted_value>")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/prod/app/oracle/iammiddleware/oracle_common/common/bin/wlst.sh | |
import os | |
import weblogic.security.internal.SerializedSystemIni | |
import weblogic.security.internal.encryption.ClearOrEncryptedService | |
def decrypt(domainHomeName, encryptedPwd): | |
domainHomeAbsolutePath = os.path.abspath(domainHomeName) | |
encryptionService = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domainHomeAbsolutePath) | |
ces = weblogic.security.internal.encryption.ClearOrEncryptedService(encryptionService) | |
clear = ces.decrypt(encryptedPwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const okta = require('@okta/okta-sdk-nodejs'); | |
const client = new okta.Client({ | |
orgUrl: 'https://dev-xxxxx.oktapreview.com/', | |
token: 'xxxxxx' | |
}); | |
exports.handler = async (event) => { | |
if (event.requestContext.http.method === 'POST') { | |
console.log('data event with body: ', event.body); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserRepository ur = new DBUserRepository(); | |
UserInfo user = ur.getUserInfo(userKey); | |
ResourceRepository rrepo = new ResourceDBRepository(); | |
Resource resource = rrepo.findResource(resourceName); |
NewerOlder