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.
#
30th percentile of avg_delta is -44.23148148148151
30th percentile of max_delta is -25.600000000000023
30th percentile of min_delta is -54.0
30th percentile of median_delta is -42.5
Domains when 30th percentile of median_delta was -42.5
Domain Rank Date smoothed_rank ... avg_delta max_delta min_delta median_delta
404 go.com 916 2020-04-17 738.0 ... -34.728519 202.0 -156.0 -42.5
874 sindonews.com 14987 2020-04-13 4800.0 ... 258.652593 14682.0 -31.0 -42.5
964 topshop.tmall.com 1482 2020-03-25 1267.0 ... -72.623668 149.0 -119.0 -42.5
import logging
from telegram.ext import Updater, CommandHandler
KILL = 0
# Enable logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler, ConversationHandler
class Telegram_Bot(object):
def tg_authenticate(self):
updater = Updater(token=tg_token, use_context=True)
return updater
import pandas as pd
from glob import glob
from functools import reduce
import re
import datetime
import sys
import argparse
// Compile: gcc transcoding.c video_debugging.c -o trans -lavcodec -lavformat -lavutil -lswresample -lswscale
// Execute: ./trans input.mp4 out1.mp4
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/timestamp.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <libavutil/opt.h>
@Aniketh01
Aniketh01 / main.cpp
Last active February 24, 2020 13:48
cc -o main main.cpp -lglfw -lavcodec -lavformat -lavutil -lswresample -lswscale
#include <stdio.h>
#include <GLFW/glfw3.h>
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <inttypes.h>
}
@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" {

DANE for SMTP how-to

This how-to is created by the Dutch Internet Standards Platform (the organization behind Internet.nl) in cooperation with industry experts (hosters and vendors) and is meant to provide practical information and guidance on implementing DANE for SMTP.

Executive Summary

  • DANE is a best-practice technology for securing the transfer of email (SMTP) between organizations across the public Internet.
  • Successful DANE deployments require additional operational discipline.
    • Automated monitoring of your own email servers and related DNS records is a must.
    • Robust automation of coordinated DNS and email server certificate chain updates.
    • These topics will be covered in more detail in this how-to.
  • Please plan carefully and then deploy DANE for your email servers. Botched deployments not not only harm the domain in question, but also have a deterrent effect on adoption by others.