Skip to content

Instantly share code, notes, and snippets.

View Bonveio's full-sized avatar

Bonveio Abitona Bonveio

View GitHub Profile
@Bonveio
Bonveio / kex.patch
Created September 30, 2021 09:30
OpenSSH v8.7 kex.c patchfile
--- kex.c 2021-08-20 12:03:49.000000000 +0800
+++ kex.c 2021-08-21 12:03:49.000000000 +0800
@@ -1293,9 +1293,2 @@
}
- /* Do not accept lines before the SSH ident from a client */
- if (ssh->kex->server) {
- error_f("client sent invalid protocol identifier "
- "\"%.256s\"", cp);
- free(cp);
- goto invalid;
@Bonveio
Bonveio / config.json
Last active January 26, 2024 00:07
Sample v2ray vmess + ws + tls setup
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [{
"port": 10035,
"listen": "127.0.0.1",
"protocol": "vmess",
@Bonveio
Bonveio / ocspanel-inject-registration.bash
Last active November 2, 2020 01:51
OCS Panel guest user registration
# Copyright (c) BonvScripts
# Author: Bonveio Abitona
RouteConf='/home/panel/html/config/route.php'
RegisterPHP='/home/panel/html/controller/register.php'
RegisterHTML='/home/panel/html/view/register.html'
if [[ "$(grep -c 'register' ${RouteConf})" -gt 1 ]]; then
sed -i "/^.*\/register.*$/d" "${RouteConf}"
fi
@Bonveio
Bonveio / tutorial.bash
Created November 29, 2019 15:16
Creating Downloadable OpenVPN config using apache2
#!/bin/bash
# How to create downloadable OpenVPN configs using apache
# Dedicated for Angristan's OpenVPN Installer users
# Angristan's script can be found here: https://github.com/Angristan/openvpn-install
# ©BonvScripts
# For Debian 9/10, Ubuntu 16/18 and CentOS 7
# This is surely working for Apache 2.4
# Tested on my Debian 9.11 Singapore VPS
# Textes that starts without # or comments are commands to be run at your terminal
# You must be installed with angristan's script or any script/s that can reproduce .ovpn config in /root directory