Skip to content

Instantly share code, notes, and snippets.

🔒
SECURE ALL THE MACHINES!!

Joe Garcia, CISSP infamousjoeg

🔒
SECURE ALL THE MACHINES!!
Block or report user

Report or block infamousjoeg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@infamousjoeg
infamousjoeg / UnpackForSickRage.ps1
Created Nov 7, 2016
PowerShell script created to finish the unpack process started by SickRage, but normally failing -- this simplifies the mass moving to their final homes.
View UnpackForSickRage.ps1
# VARIABLES
$i = 0
$x = 0
$dirList = Get-ChildItem -Directory
$seasonArr = @{"00" = "Season 00";"01" = "Season 01";"02" = "Season 02";"03" = "Season 03";`
"04" = "Season 04";"05" = "Season 05";"06" = "Season 06";"07" = "Season 07";`
"08" = "Season 08";"09" = "Season 09"}
# EXECUTION
foreach ($dir in $dirList) {
@infamousjoeg
infamousjoeg / deps.pp
Created Nov 10, 2016 — forked from rcrowley/deps.pp
Deploying Django with Puppet
View deps.pp
stage { "pre": before => Stage["main"] }
class python {
package {
"build-essential": ensure => latest;
"python": ensure => "2.6.6-2ubuntu1";
"python-dev": ensure => "2.6.6-2ubuntu1";
"python-setuptools": ensure => "latest";
}
exec { "easy_install pip":
path => "/usr/local/bin:/usr/bin:/bin",
@infamousjoeg
infamousjoeg / disable-dep.nfo
Created Nov 13, 2016
Central Policy Manager (CPM) - Disable DEP from Command Prompt (Admin)
View disable-dep.nfo
bcdedit /set nx alwaysoff
@infamousjoeg
infamousjoeg / LDAPQuery_CompObj
Created May 23, 2017
LDAP Query returns Computer Object via prefix matching
View LDAPQuery_CompObj
(&(objectClass=computer)(sAMAccountName=USRC*))
@infamousjoeg
infamousjoeg / PASRESTFunctions.ps1
Last active Jun 22, 2017
REST API PowerShell Functions List
View PASRESTFunctions.ps1
# REST API PowerShell Functions List
# Last Updated: 6/21/2017
#
# Be sure to set $PVWA_URL to be global like: $Global:PVWA_URL="https://pvwa.cyberark.local"
# before calling any functions.
#
# Before each function are three (3) # and the RESTful Method it is an example of.
# Any of those functions can be copied and used as a template for other functions
# to be created that are not listed here. If you want to add PASREST-AddAccount,
# you would copy a POST example below and modify accordingly. But don't do that,
@infamousjoeg
infamousjoeg / SOAPAIMDualAccount.xml
Created Jul 17, 2017
SOAP Example - AIM Dual Account XML
View SOAPAIMDualAccount.xml
<?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>
@infamousjoeg
infamousjoeg / keybase.md
Created Jul 24, 2017
Identity Proof for Keybase.io
View keybase.md

Keybase proof

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:

@infamousjoeg
infamousjoeg / SOAPAIMDualAccount.ps1
Last active Aug 9, 2017
SOAP Example - AIM Dual Accounts
View SOAPAIMDualAccount.ps1
$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
@infamousjoeg
infamousjoeg / checkactivesesh.sh
Created Jun 11, 2017
Check for active sessions on PSMP
View checkactivesesh.sh
ps -ef | grep plink
@infamousjoeg
infamousjoeg / cisco-regex.txt
Created Jun 11, 2017
Regular Expression for Cisco Prompts
View cisco-regex.txt
.*\$ ?$|.*\# ?$|.*\> ?$|.*\% ?$|.*\] ?$
You can’t perform that action at this time.