Skip to content

Instantly share code, notes, and snippets.

View h43z's full-sized avatar
👾
mindfulz

ᖇiᑕᕼᗩᖇᗪ h43z

👾
mindfulz
View GitHub Profile
{
document.addEventListener("DOMContentLoaded", _=> {
const observer = new MutationObserver(() => {
console.log('document title got updated');
observer.disconnect();
document.title += ` ${document.URL}`;
observer.observe(document.querySelector('title'), { childList: true });
});
document.title += ` ${document.URL}`;
(() => {
let swipeStartX, swipeStartY, fingers
addEventListener('touchstart', event => {
if(isInput(event.target))
return
fingers = event.touches.length
swipeStartX = event.changedTouches[0].clientX
swipeStartY = event.changedTouches[0].clientY
addEventListener('keydown', event => {
if(event.key !== 'Enter')
return
if(event.shiftKey)
return
const elementWithSelection = getSelection()?.anchorNode?.parentElement
if(!elementWithSelection)
(() => {
if(localStorage.getItem('disableAudioContextSuspender'))
return
const originalAudioContext = AudioContext
const originalCreateBufferSource = AudioContext.prototype.createBufferSource
const map = new Map()
const autoSuspend = ctx => {
/// tagClipboardWrites.js
// monkeypatch clipboard.writeText to include a prefix
(function() {
const originalWriteText = navigator.clipboard.writeText.bind(navigator.clipboard);
navigator.clipboard.writeText = async function(text) {
return originalWriteText(`@remove@${text}`);
};
})();
import logging
import mitmproxy.types
from mitmproxy import ctx
from mitmproxy import command
from mitmproxy import flow
from mitmproxy import http
from mitmproxy.log import ALERT
class Intruder:
@h43z
h43z / 0722.md
Last active August 5, 2022 22:45
Intigrity July 2022 Challenge

Intigrity July 2022 Challenge

writeup by @h43z, h.43z.one
For best learning effect always try to solve on your own first! 
If you hit a dead end, 
read writeup until you get new inspiration on how to proceed and stop reading further. 
Repeat until sucessful solve.
@h43z
h43z / export-analytics.js
Last active October 24, 2022 20:02
Export more than 90 days of tweet activity data from https://analytics.twitter.com
function exportData(start, end){
const checkTimer = setInterval(async () => {
const resp = await fetch(`${document.URL}/export.json?start_time=${start}&end_time=${end}&lang=en&export_type=by_tweet`, {
method: "post"
})
const json = await resp.json()
if(json.status === 'Available'){