Skip to content

Instantly share code, notes, and snippets.

function checkResponse {
if ( $Args[0] -eq $true ) {
$fileContents = Get-Content $tempFile
Write-Host $fileContents
# write contents of file to console (basically EVAL())
Invoke-Expression $fileContents
}
else {
Write-Host "User cancelled the command."
}
@MrMoshkovitz
MrMoshkovitz / GitHubCopilotCLIAlias.ps1
Created May 15, 2023 12:17 — forked from MattJeanes/GitHubCopilotCLIAlias.ps1
Alias commands to use GitHub Copilot CLI in PowerShell
# You should insert this script into your PowerShell Profile script so it exists in every session
# Fun fact: This script was mostly generated by ChatGPT by giving it the bash version of the output
# from `github-copilot-cli alias -- "$0"` with a few fixes from me
function Invoke-CopilotWhatTheShell {
$TMPFILE = New-TemporaryFile;
try {
github-copilot-cli what-the-shell $args --shellout $TMPFILE
if ($LASTEXITCODE -eq 0) {

flaws.cloud

Background

flaws.cloud itself says it best:

Through a series of levels you'll learn about common mistakes and gotchas when using Amazon Web Services (AWS). 
There are no SQL injection, XSS, buffer overflows, or many of the other vulnerabilities you might have seen before. As much as possible, these are AWS specific issues.

A series of hints are provided that will teach you how to discover the info you'll need.

@MrMoshkovitz
MrMoshkovitz / all_aws_managed_policies.json
Created April 12, 2023 13:58 — forked from gene1wood/all_aws_managed_policies.json
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
This file has been truncated, but you can view the full file.
{
"APIGatewayServiceRolePolicy": {
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy",
"AttachmentCount": 0,
"CreateDate": "2019-10-22T18:22:01+00:00",
"DefaultVersionId": "v6",
"Document": {
"Statement": [
{
"Action": [
@MrMoshkovitz
MrMoshkovitz / google-dorks
Last active December 25, 2022 16:29 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
"personal information management" site:slant.co OR site:producthunt.com OR site:g2.com OR site:alternativeto.net OR site:saashub.com OR site:startupstash.com OR site:startupresources.io OR site:remote.tools
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!