Skip to content

Instantly share code, notes, and snippets.

@Internet-viewer
Internet-viewer / ca.md
Created September 17, 2023 15:05 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@Internet-viewer
Internet-viewer / profile.ps1
Created January 20, 2023 12:50 — forked from 499978920/profile.ps1
[powershell proxy] power shell 走代理 #powershell #proxy
# path
# C:\Program Files\PowerShell\7
function set_proxy_variable {
$proxy = 'http://127.0.0.1:10809'
# temporary
$env:HTTP_PROXY = $proxy
$env:HTTPS_PROXY = $proxy
@Internet-viewer
Internet-viewer / tor-exit.csv
Created March 7, 2022 11:18 — forked from tomac4t/tor-exit.csv
curl https://check.torproject.org/torbulkexitlist | sort -t "." -k1n,1 -k2n,2 -k3n,3 -k4n,4 tor.txt
IP ASN City Region Country Organization
5.2.72.110 60404 Netherlands Liteserver Holding B.V.
5.2.72.113 60404 Netherlands Liteserver Holding B.V.
5.2.77.146 60404 Netherlands Liteserver Holding B.V.
5.2.79.179 60404 Netherlands Liteserver Holding B.V.
5.2.188.23 8708 Romania Judetul Iasi Iași RCS & RDS
5.3.165.160 50542 Russia Voronezhskaya Oblast' Voronezh JSC ER-Telecom Holding
5.39.70.218 16276 France Île-de-France Bondy OVH SAS
5.79.109.48 60781 Netherlands LeaseWeb Netherlands B.V.
5.189.146.133 51167 Germany Contabo GmbH

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@Internet-viewer
Internet-viewer / torrc
Created February 4, 2022 15:51 — forked from mort3za/torrc
Using tor with bridges, torrc example config (bit.ly/m3torrc)
# sudo apt-get install obfs4proxy obfsproxy tor
# sudo vi /etc/tor/torrc
UseBridges 1
ClientTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
# send email to bridges@torproject.org with body `get transport obfs4` you can get new bridges.
bridge obfs4 195.154.49.15:44705 BACD07DACE996093DC7635F33A98C49... cert=xc/wtKNWADfJQf232xSXT0WpzsaINw6fgPvZBy5Rkw4.../ypaZPDug9L... iat-mode=0
@Internet-viewer
Internet-viewer / frp systemd.md
Created October 19, 2021 11:52 — forked from ihipop/frp systemd.md
FRP systemd 启动脚本 FRP systemd init config
<!doctype html>
<title>Python Flask Multiple Files Upload Example</title>
<h2>Select file to upload</h2>
<p>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
import os
from flask import Flask, flash, request, redirect, render_template
from werkzeug.utils import secure_filename
app=Flask(__name__)
app.secret_key = "secret key"
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
path = os.getcwd()