Skip to content

Instantly share code, notes, and snippets.

View aravindkumarsvg's full-sized avatar

Aravind Kumar SVG aravindkumarsvg

View GitHub Profile
@aravindkumarsvg
aravindkumarsvg / iframe-and-postmessage-security-checklist.md
Created July 3, 2025 10:39
iframe and postmessage communication - security considerations

🔐 VAPT Checklist for iframe & postMessage Communication

✅ IFRAME Security Considerations

Check Description
X-Frame-Options header Should be set to DENY or SAMEORIGIN to prevent Clickjacking.
Content-Security-Policy (CSP) Use frame-ancestors, child-src, frame-src directives to restrict embedding origins.
Sandboxing iframes Use sandbox attribute with strict flags like allow-scripts or allow-forms.

🛡️ CSS Security Essentials

Learn how CSS can be a powerful tool for exploitation — from data exfiltration to phishing — when misused in web applications.


📌 Why CSS Matters in Security

CSS isn’t just about styling — in the wrong hands, it can be used to:

@aravindkumarsvg
aravindkumarsvg / totp_guide.md
Last active June 16, 2025 16:49
TOTP Complete Guide

🔐 TOTP (Time-Based One-Time Password) - Full Guide

📘 What is TOTP?

TOTP (Time-Based One-Time Password) is a one-time password algorithm that uses the current time as a variable. It is commonly used in two-factor authentication (2FA) systems. TOTP generates a numeric code that changes every 30 seconds and is based on a shared secret between the client and the server.

  • Defined in RFC 6238
  • Based on HOTP (HMAC-based One-Time Password, RFC 4226)

@aravindkumarsvg
aravindkumarsvg / oauth_parameters.md
Last active June 23, 2025 17:38
OAuth - different parameters

OAuth 2.0 Parameters and Possible Values

This document lists various parameters used in OAuth 2.0 flows, including possible values where applicable.


🔐 Authorization Request Parameters

Parameter Description Example / Possible Values
@aravindkumarsvg
aravindkumarsvg / CSRF_Checklist.md
Last active June 24, 2025 17:43
CSRF Checklist

✅ CSRF Vulnerability Testing Checklist

📌 Phase 1: Identify Candidate Endpoints

  • Look for state-changing actions (e.g., transfer, password change, account update).
  • Confirm the endpoint uses cookie-based authentication.
  • Check if the endpoint accepts GET or POST methods.

📌 Phase 2: Analyze Request Properties

@aravindkumarsvg
aravindkumarsvg / shell_stabilization.md
Last active May 27, 2024 10:31
Stabilize a reverse shell for linux target

Pre-requisites

  • Get the reverse shell in netcat
  • check python support in the target system
which python

Shell Stablization

  1. If your terminal is using zsh, then you need to switch to bash
@aravindkumarsvg
aravindkumarsvg / adb_caller.sh
Created August 10, 2020 05:41
Calling a phone number repeatedly using ADB
#!/bin/bash
# Enabling ADB over network
# adb kill-server && adb start-server # restart adb server
# adb tcpip 5555 # start adb service
# adb connect <phone_id> # connect to the device
# For enabling loudspeaker and cut the call, make sure to change it based on your phone screen
# Ref for getting touch coordinates: https://android.stackexchange.com/questions/164295/how-can-i-see-the-pointer-location-and-simulate-it
@aravindkumarsvg
aravindkumarsvg / Vagrantfile
Last active September 13, 2020 14:27
Vagrantfile for Apache Spark setup in Ubuntu Xenial 16
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_check_update = false
# Spark Jobs history
config.vm.network "forwarded_port", guest: 4040, host: 4040
# Spark Master
config.vm.network "forwarded_port", guest: 8080, host: 8080
@aravindkumarsvg
aravindkumarsvg / npm-audit_report-generation.sh
Last active December 9, 2021 18:31
Generates npm audit report for multiple directories and searching for multiple package.json inside those given directories
#!/bin/bash
# Global variable declarations
format="plain"
directories=()
current_directory=`pwd`
report_directory="${current_directory}/report/"
fresh_report_directory="0"
# usage
@aravindkumarsvg
aravindkumarsvg / get-swap_using_process.sh
Created March 29, 2018 10:39
Gets the processes which is using the swap space
#!/bin/bash
# Loops through the proc directory
for processId in `ls /proc/`; do
# Checks for the status file for a process
if [[ $processId =~ ^[0-9]+$ && -r "/proc/${processId}/status" ]]; then
# Gets the swap space usage for the process
swapUsage=`grep VmSwap "/proc/${processId}/status" | awk '{print $2}'`
if [[ ! -z $swapUsage && $swapUsage > 0 ]]; then
# Gets the process name