Skip to content

Instantly share code, notes, and snippets.

View NeverBehave's full-sized avatar
😾
Meowing

Xinhao Luo NeverBehave

😾
Meowing
View GitHub Profile
@NeverBehave
NeverBehave / port-forwarding.py
Last active February 26, 2024 15:39 — forked from WangYihang/port-forwarding.py
Access devices with IPv6 Link-local address --- port forwarding via python socket
#!/usr/bin/env python3
# Tcp Port Forwarding (Reverse Proxy)
#
# For link-local IPv6 address, such as router emergency recovery, etc.
# Workaround for https://stackoverflow.com/questions/45299648/how-to-access-devices-with-ipv6-link-local-address-from-browserlike-ie-firefox
#
# Usage: python3 forward.py --listen-host 127.0.0.1 --listen-port 8443 --connect-host 'fe80::abcd:abcd:beef:beef%enp0s0' --connect-port 443
import socket
import threading
@NeverBehave
NeverBehave / README.md
Created October 11, 2017 10:01 — forked from bekce/README.md
ldap server with mysql backend

I wanted to build an LDAP server that queries a MySQL server to fetch users and check their passwords. It is mainly used for old software that does not work with custom OAuth2 providers. Redmine is an example of this.

Instructions:

  1. Create the database and table with insert.sql