Skip to content

Instantly share code, notes, and snippets.

View kochuraa's full-sized avatar

Andrew kochuraa

View GitHub Profile
@kochuraa
kochuraa / waf-smoke-test.sh
Last active April 15, 2025 11:57
Lightweight Bash script to test basic WAF (Web Application Firewall) protections against common SQL injection and XSS payloads. Use this to quickly assess your web application’s surface against low-hanging injection vulnerabilities.
#!/bin/bash
# 🚀 Discover More: Testing Your Firewall in 60 Seconds: A Lightweight WAF Testing Script That Anyone Can Use
# Learn how this script works and the best practices for WAF testing.
# Read the full article here:
# 👉 https://medium.com/@kochuraa/testing-your-firewall-in-60-seconds-a-lightweight-waf-testing-script-that-anyone-can-use-a7a725fefcb7
# Safe WAF Tester Script
# Usage: ./waf-smoke-test.sh <URL> [-o output.md] [-H "Header: Value"]
# Examples:
@kochuraa
kochuraa / nextjs-aws-amplify-pulumi-deployment.ts
Created March 18, 2025 13:29
A complete 50-line Pulumi TypeScript implementation for deploying Next.js applications to AWS Amplify with automated CI/CD pipelines. This infrastructure as code solution configures source code integration, build processes, and optional custom domain configuration while maintaining a minimal footprint. Requires only the Pulumi AWS provider and a…
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const website = new aws.amplify.App("website", {
name: pulumi.getProject(),
repository: `https://github.com/${config.require(
"organization"
)}/${pulumi.getProject()}`,
@kochuraa
kochuraa / AWS Cognito vs Auth0 Direct Cost Comparison 2025.csv
Last active March 17, 2025 18:01
AWS Cognito Essential vs Auth0 Essential Cost Comparison 2025
Users Cognito Essential Auth0 Essentials
1000 $0 $70
10000 $0 $700
50000 $600 $3 500
100000 $1 350 $7 000