Skip to content

Instantly share code, notes, and snippets.

@Ovi3
Ovi3 / dns_rebinding.py
Last active January 23, 2021 14:34
A DNS Rebinding test DNS server, written in python3 and twisted module
#!/usr/bin/python3
# -*-coding:utf-8-*-
"""
A DNS Rebinding test DNS server, written in python3 and twisted module
execute "pip install twisted" before you run it
1. listening to 0.0.0.0:53 (UDP 53 and TCP 53)
2. set upstream dns server to 8.8.8.8:53
3. dns rebinding *.example.com except for ns{1-9}+.example.com and other domains
@Ovi3
Ovi3 / aheadfork.py
Created October 6, 2020 04:26
Find all fork repo that are ahead of original repo
#!/usr/bin/python3
# -*-coding:utf-8-*-
"""
Find all fork repo that are ahead of original repo
Before running, install requirement first: python3 -m pip install requests
Reference: https://docs.github.com/en/free-pro-team@latest/rest/reference
"""
import sys
import json