Skip to content

Instantly share code, notes, and snippets.

View madhuakula's full-sized avatar
I may be slow to respond.

Madhu Akula madhuakula

I may be slow to respond.
View GitHub Profile
@madhuakula
madhuakula / Cloud Security Orienteering Checklist.md
Created August 24, 2021 19:28 — forked from ramimac/Cloud Security Orienteering Checklist.md
A Checklist of Cloud Security Orienteering

Cloud Security Orienteering: Checklist
by Rami McCarthy
via TL;DR sec

How to orienteer in a cloud environment, dig in to identify the risks that matter, and put together actionable plans that address short, medium, and long term goals.

Based on the Cloud Security Orienteering methodology.

Checklist

@madhuakula
madhuakula / web-servers.md
Created May 13, 2021 11:03 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@madhuakula
madhuakula / LearnGoIn5mins.md
Created January 5, 2021 17:03 — forked from prologic/LearnGoIn5mins.md
Learn Go in ~5mins
@madhuakula
madhuakula / poc.rb
Created August 14, 2020 20:21 — forked from zelivans/poc.rb
CVE-2018-1002105 exploit
#!/usr/bin/env ruby
require 'socket'
require 'openssl'
require 'json'
host = 'kubernetes'
metrics = '/apis/metrics.k8s.io/v1beta1'
sock = TCPSocket.new host, 443
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@madhuakula
madhuakula / windows_hardening.cmd
Created May 12, 2020 08:51 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
:
@madhuakula
madhuakula / kubedump.sh
Created May 1, 2020 22:20 — forked from negz/kubedump.sh
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi

Keybase proof

I hereby claim:

  • I am madhuakula on github.
  • I am madhuakula (https://keybase.io/madhuakula) on keybase.
  • I have a public key ASA69Xo5TbzqA6Hff64yIw3eTIoM8Mm_b4JZyn1YMH0gQAo

To claim this, I am signing this object:

@madhuakula
madhuakula / grab.sh
Created May 16, 2019 03:24 — forked from 0xdabbad00/grab.sh
Script to get all versions of all AWS managed policies
#!/bin/bash
# Use the AWS CLI to collect all versions of all AWS managed policies. Example files:
# APIGatewayServiceRolePolicy.v1
# APIGatewayServiceRolePolicy.v2
# APIGatewayServiceRolePolicy.v3
# Usage: ./grab.sh
# Note that the following policies do not exist and create zero byte files:
@madhuakula
madhuakula / awsEmailCheck.py
Created May 10, 2019 16:49 — forked from flerpadoo/awsEmailCheck.py
Determines if there is an AWS account associated with a given email address
import re
import sys
import subprocess
from time import sleep # Can be optimized / replaced
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def bruteAmazonEmailLogin(userEmail):
options = Options()
options.add_argument("--headless")