Skip to content

Instantly share code, notes, and snippets.

View kimusan's full-sized avatar

Kim Schulz kimusan

View GitHub Profile
@kimusan
kimusan / wzip.py
Created February 20, 2023 06:09 — forked from ryancdotorg/wzip.py
Partial/streaming zip downloader
#!/usr/bin/env python3
# SPDX-License-Identifier: 0BSD or CC0-1.0 or MIT-0 or Unlicense
# Copyright (c) 2023, Ryan Castellucci, No Rights Reserved
import io, sys
import datetime
import argparse
import requests
import operator
import struct
function interceptNetworkRequests(ee) {
const open = XMLHttpRequest.prototype.open;
const send = XMLHttpRequest.prototype.send;
const isRegularXHR = open.toString().indexOf('native code') !== -1;
// don't hijack if already hijacked - this will mess up with frameworks like Angular with zones
// we work if we load first there which we can.
if (isRegularXHR) {
@kimusan
kimusan / fingerprint.js
Created February 16, 2023 10:53 — forked from dualfade/fingerprint.js
fingerprint.js
// find javascript gadgets --
// forked => https://gist.github.com/nikitastupin/b3b64a9f8c0eb74ce37626860193eaec
// ref => https://github.com/BlackFan/client-side-prototype-pollution
// ref => https://portswigger.net/web-security/cross-site-scripting/cheat-sheet#prototype-pollution
// updated; @dualfade --
// start --
// check for known gadgets --
(() => {
// gadgets --
@kimusan
kimusan / resources.md
Created June 16, 2021 06:47 — forked from muff-in/resources.md
A curated list of Assembly Language / Reversing / Malware Analysis -resources
#!/bin/bash
voltage() { cat /sys/class/power_supply/fusb302-typec-source/voltage_now; }
voltage_actual() { cat /sys/class/power_supply/max170xx_battery/voltage_now; }
current_actual() { cat /sys/class/power_supply/max170xx_battery/current_now; }
current() { cat /sys/class/power_supply/fusb302-typec-source/current_max; }
current_limit() { cat /sys/class/power_supply/bq24190-charger/input_current_limit; }
capacity() { cat /sys/class/power_supply/max170xx_battery/capacity; }
breaker() { echo "------------------------------------------------------"; }
echo "Voltage: $(expr `voltage` / 1000000)V DC"

Keybase proof

I hereby claim:

  • I am kimusan on github.
  • I am kimschulz (https://keybase.io/kimschulz) on keybase.
  • I have a public key whose fingerprint is 1516 5D81 3671 452D 7E59 303D 074E 93D9 645F C9DD

To claim this, I am signing this object:

@kimusan
kimusan / dkhm-update-ds
Created September 29, 2016 20:47 — forked from pmakholm/dkhm-update-ds
Script for updating DS records for .dk domains
#!/usr/bin/perl
# Script for updating DS records for .dk domains
#
# The following argument must be provided:
# --ns - You authorative nameserver you trust
# --zone - The zone you want to update DS records for
# --handle - Your DKHM handle
# --pasword - Your DKHM password
#