Skip to content

Instantly share code, notes, and snippets.

View Aniketh01's full-sized avatar
🇪🇸
Learning how to do research

Aniketh Girish Aniketh01

🇪🇸
Learning how to do research
View GitHub Profile
@Aniketh01
Aniketh01 / mitm-error.py
Created October 5, 2021 02:36 — forked from boxmein/mitm-error.py
MITMProxy script that fakes HTTP endpoint error
#!/usr/bin/env python3
# Install mitmdump & mitmproxy with `brew install mitmproxy`
# run with: mitmdump -s mitm-error.py
# fire requests: curl --proxy localhost:8080 https://test.example.com/test
# set up your system proxy or configure your browser to use the proxy localhost:8080
import sys
import re
import json
from mitmproxy import http, proxy, options
@Aniketh01
Aniketh01 / mitmproxy-quicker.py
Created October 5, 2021 02:36 — forked from vfaronov/mitmproxy-quicker.py
mitmproxy scripting cheat sheet / snippets collection
# Copy this file and run mitmproxy like this::
#
# mitmproxy -s mitmproxy-quicker.py --mode reverse:http://dummy.invalid
#
# Then edit the code below. For example,
# http://localhost:8080/index.html will serve the HTML page defined below.
# mitmproxy will automatically reload the script whenever you save it to disk.
# You can specify a real fallback upstream instead of ``dummy.invalid``,
# or remove the ``--mode`` option altogether for a regular (forward) proxy.
#
@Aniketh01
Aniketh01 / gl_ffmpeg.cpp
Created February 5, 2020 10:21 — forked from rcolinray/gl_ffmpeg.cpp
OpenGL-FFMpeg integration
// Use OpenGL 3.0+, but don't use GLU
#define GLFW_INCLUDE_GL3
#define GLFW_NO_GLU
#include <GL/glfw.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
extern "C" {