The following code will attempt to enumerate operations that a given set of AWS AccessKeys can perform.
Usage: enumerate-iam.py [OPTIONS]
IAM Account Enumerator.
| CONFIG_MODULES=y | |
| CONFIG_HAVE_DOT_CONFIG=y | |
| CONFIG_TARGET_malta=y | |
| CONFIG_TARGET_malta_be=y | |
| CONFIG_TARGET_malta_be_Default=y | |
| CONFIG_HAS_SUBTARGETS=y | |
| CONFIG_TARGET_BOARD="malta" | |
| CONFIG_TARGET_ARCH_PACKAGES="malta_mips" | |
| CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely -mips32 -mtune=mips32" | |
| CONFIG_CPU_TYPE="mips32" |
| ''' Provides a VMware VMX backed Data Source for Cloud-Init. ''' | |
| import yaml | |
| from time import sleep | |
| from base64 import b64decode | |
| from subprocess import check_output | |
| from subprocess import CalledProcessError | |
| from cloudinit import log as logging |
| config interface 'loopback' | |
| option ifname 'lo' | |
| option proto 'static' | |
| option ipaddr '127.0.0.1' | |
| option netmask '255.0.0.0' | |
| config dsl 'dsl' | |
| option annex 'b' | |
| config interface 'xdsldp' |
| config switch | |
| option name 'switch0' | |
| option reset '1' | |
| option enable_vlan '1' | |
| config switch_vlan | |
| option device 'switch0' | |
| option vlan '1' | |
| option vid '1' |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/file.h> | |
| /* From acosTypes. */ | |
| #ifndef BOOL | |
| #define BOOL int | |
| #endif |
The following code will request an AWS SpotFleet with the specified parameters.
By default credentials will be located using boto3's built-in enumeration mechanism. The easiest way to ensure that credentials are available is to either use environment variables, or ensure there is a ~/.aws/credentials file for the user running this script.
| import idautils | |
| for mangled in idautils.Functions(): | |
| demangled = idc.Demangle( | |
| str(idaapi.get_func_name(mangled)), | |
| idc.GetLongPrm(idc.INF_SHORT_DN) | |
| ) | |
| if demangled is not None: | |
| print "{} => {}".format(mangled, demangled) |
| #!/usr/bin/env | |
| import sys | |
| import pprint | |
| import struct | |
| if len(sys.argv) < 2: | |
| print 'Usage: unpack.py <VALUE> [<KEY>]' | |
| sys.exit(-1) | |
| try: |
| #!/usr/bin/env python | |
| import tqdm | |
| import json | |
| import click | |
| import boto3 | |
| import multiprocessing | |
| def request(target, plugin='http_robots'): |