I hereby claim:
- I am infamousjoeg on github.
- I am infamousjoeg (https://keybase.io/infamousjoeg) on keybase.
- I have a public key ASBR9KhHoyuxeEK_EAnJJbycJy5qRPes0qnJbGcAk4peMgo
To claim this, I am signing this object:
(&(objectClass=computer)(sAMAccountName=USRC*)) |
#!/bin/bash | |
BASEURL="https://pvwa.cyberark.local" | |
APPID="RESTExamples" | |
SAFE="T-APP-CYBR-RESTAPI" | |
FOLDER="Root" | |
OBJECTNAME="Database-MicrosoftSQLServer-sql01.cyberark.local-Svc_BambooHR" | |
PASSWORD = wget --quiet \ | |
--method GET \ |
#!/usr/bin/perl | |
use REST::Client; | |
my $client = REST::Client->new(); | |
$client->addHeader('Content-Type', 'application/json'); | |
$client->addHeader('cache-control', 'no-cache'); | |
$baseURL = "https://pvwa.cyberark.local" |
#!/bin/ksh | |
BASEURL="https://pvwa.cyberark.local" | |
APPID="RESTExamples" | |
SAFE="T-APP-CYBR-RESTAPI" | |
FOLDER="Root" | |
OBJECTNAME="Database-MicrosoftSQLServer-sql01.cyberark.local-Svc_BambooHR" | |
PASSWORD = wget --quiet \ | |
--method GET \ |
# CircularNestedGroups.ps1 | |
# PowerShell program to find any instances of circular nested groups. | |
# Author: Richard Mueller | |
# PowerShell Version 1.0 | |
# July 31, 2011 | |
Function CheckNesting ($Group, $Parents) | |
{ | |
# Recursive function to enumerate group members of a group. | |
# $Group is the group whose membership is being evaluated. |
$proxy = New-WebServiceProxy -Uri https://windev.cyberark.local/aimwebservice/v1.1/aim.asmx?WSDL | |
$cert= New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\cert\GoodCert.cer") | |
$t = $proxy.getType().namespace | |
$proxy.ClientCertificates.Add($cert) | |
$request = New-Object ($t + ".passwordRequest") | |
$request.AppID = "DistributedApp"; | |
$request.Query = "VirtualUsername=aimtest"; | |
$response = $proxy.GetPassword($request) | |
write-host "Username:" | |
$response.username |
<?xml version="1.0" encoding="utf-8"?> | |
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Body> | |
<GetPassword xmlns="https://tempuri.org/"> | |
<passwordWSRequest> | |
<AppID>App_ApplicationID</AppID> | |
<Safe>AIM_ApplicationSafe</Safe> | |
<Folder>Root</Folder> | |
<Query>VirtualUsername=AppVirName</Query> | |
</passwordWSRequest> |
I hereby claim:
To claim this, I am signing this object:
## Machine identity Example (-k due to self-signed cert on Conjur Master) | |
token=hostfactorytokenvalue | |
hostid="jenkins/masters/master01" | |
baseurl="https://devops" | |
curl --request POST -k --data-urlencode id=$hostid --header "Authorization: Token token=\"$token\"" $baseurl/api/host_factories/hosts |
function Get-AIMPassword ([string]$PVWA_URL, [string]$AppID, [string]$Safe, [string]$ObjectName) { | |
# Declaration | |
$fetchAIMPassword = "${PVWA_URL}/AIMWebService/api/Accounts?AppID=${AppID}&Safe=${Safe}&Folder=Root&Object=${ObjectName}" | |
# Execution | |
try { | |
$response = Invoke-RestMethod -Uri $fetchAIMPassword -Method GET -ContentType "application/json" -ErrorVariable aimResultErr | |
Return $response.content | |
} |