Skip to content

Instantly share code, notes, and snippets.

View Spammer-dengjiuhong.eml
Delivered-To: hxxtom@gmail.com
Received: by 2002:adf:8bd3:0:0:0:0:0 with SMTP id w19csp306383wra;
Wed, 2 Nov 2022 21:39:27 -0700 (PDT)
X-Google-Smtp-Source: AMsMyM6GxJor0aCjHSscI4mPOrekRaSM3Go80P0XpRyDCD03rg81Aqz+6OxFgt70aduGJg8WDgqS
X-Received: by 2002:a02:11c4:0:b0:375:55f8:f8c8 with SMTP id 187-20020a0211c4000000b0037555f8f8c8mr14391213jaf.268.1667450367614;
Wed, 02 Nov 2022 21:39:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1667450367; cv=none;
d=google.com; s=arc-20160816;
b=HOunHg1Bq3ETSfRcSgRts8aCT/5o5kQd84OP9VQiDr9pAf7xu7/JB8ZFu7okWN9+QR
K4ae3J7xCIbD32u/8IQSBsuYUW/9gP8u94HU1zp1g246K5wXYIDq3WagrmhASAdbhIyf
View email-obfuscator.js
function setText(id,t) {
e = document.querySelector(id);
if (e) {e.innerText = t}
}
setText(".email", "username' + '@' + "example.' + "com");
@tomac4t
tomac4t / cernet2-v6.csv
Last active Nov 24, 2022
中国教育网学校 IPv6 地址段
View cernet2-v6.csv
IPv6 国家 省份 城市 学校/教育机构
2001:da8:0200::/48 中国 北京 北京 清华大学
2001:da8:0201::/48 中国 北京 北京 北京大学
2001:da8:0202::/48 中国 北京 北京 北京邮电大学
2001:da8:0203::/48 中国 北京 北京 北京航空航天大学
2001:da8:0204::/48 中国 北京 北京 北京理工大学
2001:da8:0205::/48 中国 北京 北京 北京交通大学
2001:da8:0206::/48 中国 北京 北京 北京城市学院
2001:da8:0207::/48 中国 北京 北京 北京师范大学
2001:da8:0208::/48 中国 北京 北京 北京科技大学
@tomac4t
tomac4t / tor-exit.csv
Last active Nov 27, 2022
Tor exit nodes geolocation
View tor-exit.csv
IP ASN Country Region City Organization
2.58.56.101 210558 Netherlands North Holland Oude Meer 1337 Services GmbH
5.2.67.226 60404 Netherlands North Holland Alkmaar The Infrastructure Group B.V.
5.2.70.140 60404 Netherlands North Brabant Wagenberg The Infrastructure Group B.V.
5.2.72.101 60404 Netherlands North Holland Amsterdam The Infrastructure Group B.V.
5.2.72.110 60404 Netherlands North Holland Amsterdam The Infrastructure Group B.V.
5.2.72.113 60404 Netherlands North Holland Amsterdam The Infrastructure Group B.V.
5.2.76.22 60404 Netherlands North Holland Amsterdam The Infrastructure Group B.V.
5.2.77.22 60404 Netherlands North Holland Amsterdam The Infrastructure Group B.V.
5.2.78.69 60404 Netherlands North Holland Amsterdam The Infrastructure Group B.V.
@tomac4t
tomac4t / upload-release-assets.py
Last active Sep 18, 2022
A python script to upload the release assets via the GitHub Release API.
View upload-release-assets.py
#!/usr/bin/python3
# A python script to upload the release assets via the GitHub Release API.
# Author: Xuxin He <hxxtom@gmail.com>
# License: GPLv3, https://www.gnu.org/licenses/gpl-3.0.en.html
# https://gist.github.com/tomac4t/16dc1e91d95c94f60251e586672b6314
import mimetypes
import os
import requests
import sys
@tomac4t
tomac4t / ipip-bt.py
Last active May 7, 2022
IPIP Firefox Extension API
View ipip-bt.py
#!/usr/bin/python3
import requests
import sys
n = len(sys.argv)
for i in range (1, n):
ipipapi = "https://btapi.ipip.net/host/info?ip=" + sys.argv[i] + "&host=&lang=cn"
@tomac4t
tomac4t / mmdblookup.py
Last active Oct 2, 2021
MaxMind DB Python Reader example code
View mmdblookup.py
#!/usr/bin/python3
import maxminddb
import sys
IPreader = maxminddb.open_database('/home/tom/GeoLite2-City.mmdb')
ASNreader = maxminddb.open_database('/home/tom/GeoLite2-ASN.mmdb')
n = len(sys.argv)
for i in range (1, n):
ip = sys.argv[i]
View Github-MITM-20200326.md

Github MITM

openssl

$ openssl s_client -connect pages.github.com:443 -showcerts
CONNECTED(00000003)
depth=1 C = CN, ST = GD, L = SZ, O = COM, OU = NSP, CN = CA, emailAddress = 346608453@qq.com
verify error:num=19:self signed certificate in certificate chain
verify return:1
depth=1 C = CN, ST = GD, L = SZ, O = COM, OU = NSP, CN = CA, emailAddress = 346608453@qq.com
verify return:1
@tomac4t
tomac4t / cnki-pdf-download.user.js
Last active May 7, 2022
Provide PDF download button for master's thesis on cnki.net
View cnki-pdf-download.user.js
// ==UserScript==
// @name cnki-pdf-download.user.js
// @namespace https://tomcat.one/
// @version 1.4
// @description Provide PDF Download button for master's thesis on cnki.net
// @author tomacat
// @match http://kns.cnki.net/KCMS/detail/detail.aspx?*
// @match https://kns.cnki.net/KCMS/detail/detail.aspx?*
// @grant none
// @license The Unlicense