This file contains 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
#!/bin/bash | |
# This script will create the necessary AWS Athena resources needed to conduct | |
# an investigation using CloudTrail logs. Note that the S3 bucket defined as the | |
# Athena query results output location must already exist and will _not_ be | |
# created by this script. | |
# Example: | |
# ./aws-setup-cloudtrail-investigation.sh \ | |
# -c example-bucket-123/<PREFIX>/AWSLogs/<ACCOUNTID>/CloudTrail/<REGION> \ |
This file contains 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
# SYNOPSIS | |
# Configuring fresh installs of Windows is entirely too manual. Boxstarter scratches the | |
# "I wish I had a Brewfile for Windows" itch. | |
# | |
# Boxstarter script heavily inspired by the following (with some minor customizations): | |
# - https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f | |
# - https://github.com/treffynnon/Windows-Boxstarter-with-WSL-Ubuntu/blob/master/install.ps1 | |
# - https://gist.github.com/CJKinni/de205822b0dddd2b18054fe7a29f72bc | |
# - https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9 | |
# |
This file contains 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 bash | |
# Create inventory file(s) | |
touch production staging | |
# Create various directories | |
mkdir -p group_vars host_vars library module_utils filter_plugins roles | |
# Create main playbook | |
touch site.yml |
This file contains 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
# Sample "hello world" PowerShell script | |
Write-Host 'Hello, world!' |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLcXYbMUpjdLesUlD464N7Uf/V6lJp5Zyrz32W4kv+WL2LKD+e8VBPxWDNXKEXodtu0jDTFTjzYWYmmPHFCBDqwNYe4ndXcJgryVtzRssATkzzPEjbX0Z4AFLQM4LIm7sdgmJWIVi9uXu1ufwUwIHC/mTx/kQp2jgjrH9gaEHBQvsyUfk3hOFHVKycNqsqs27V0+cQN5OTNplJrwJgWZYuYnVpyIe7HUTbg4KmTdWJcp7dd12RzLv/HQ1nLjiRi3iwlg5IUu7mgaYbMdiG39iQ25RqwS4GQ0D7Mc8vYA35eyEWSK/jy2tR6rSK/EAtg39VmkkQGCMbCw2AtjXNtzAjb+uhO2TM5oECX4H2jyIjTSlxxqru2zhLbTaJba/zw6I5U0hZOi3bZwQnFdKMNo2cGP+BCEllwrP80zi9Uj8mGGa1FiRa1WlKrJjRBfiS0Z6SegNJvxoxAfVeFfBwCVCvOiJ5p0T0q27Bf1tcRoS5m3arHe+TdjCLF6MVQauEJzoa1JWbtDuUgvcQPVmdc0xs2bicz08XL3L7Ph4ogjx0xHEIADAxuVh9SaZBhhGRKSJdtWqAuX/WosQnLRmFRmVK0pSTudHv9x7p90uQHJAqK6B2DJro7BgPmyiusTpZqIekBVdBwOXR6SbglS6tmp/LK0zyADbbcAlxy4OGKFwo3w== |
This file contains 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
#include <stdio.h> | |
int main() | |
{ | |
// call function and save the address | |
// pointing to the 'int varint = 0' line | |
// on the stack | |
printf("Hello world\n"); | |
// once 'printf' is finished, pop |
This file contains 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/python | |
from pwn import * | |
import argparse | |
parser = argparse.ArgumentParser(description='pwntools skeleton') | |
parser.add_argument('-l', action="store_true", default=False) | |
args = parser.parse_args() | |
# check if target is local binary or remote | |
if args.l: |