Skip to content

Instantly share code, notes, and snippets.

@raiman264
raiman264 / add-cookies.py
Created May 24, 2022 05:41
Add cookies to a reversed proxy call
# docker run --rm -it -v ~/www/scripts:/home/mitmproxy/scripts -p 8080:8080 mitmproxy/mitmproxy mitmproxy --mode reverse:https://domaintorevers.com -s ./add-cookies.py
# mitmproxy --mode reverse:https://domaintorevers.com -s ./add-cookies.py
from mitmproxy import http
cookieToken = "COOKIE=value"
# def request(flow: http.HTTPFlow) -> None:

Keybase proof

I hereby claim:

  • I am raiman264 on github.
  • I am braulior (https://keybase.io/braulior) on keybase.
  • I have a public key ASDag7VW9_aTPGkLXZ_eXNL17o1KB1J3UMFj8rBkgR9AYwo

To claim this, I am signing this object:

@raiman264
raiman264 / opener.c
Created January 31, 2017 19:40 — forked from bbhoss/opener.c
Onity lock opener
#define CONSERVATIVE
int ioPin = 3;
#define BUFSIZE 200
unsigned char buf[BUFSIZE];
#define pullLow() pinMode(ioPin, OUTPUT)
#define pullHigh() pinMode(ioPin, INPUT)
unsigned char dbits[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0};