Skip to content

Instantly share code, notes, and snippets.

View Bonveio's full-sized avatar
Inactive

Bonveio Abitona Bonveio

Inactive
View GitHub Profile
@Bonveio
Bonveio / archlinux-lxde-tutorial.md
Last active October 30, 2024 20:00
ArchLinux + LXDE | Install instructions / Install manual / Install tutorial
@Bonveio
Bonveio / lxdialog.patch
Created August 29, 2024 18:48
Busybox @ master commit 371fe9f71d445d18be28c82a2a6d82115c8af19d patch for /busybox/scripts/kconfig/lxdialog/Makefile
--- scripts/kconfig/lxdialog/Makefile 2024-08-30 00:00:00.877509501 +0800
+++ scripts/kconfig/lxdialog/Makefile 2024-08-30 00:00:00.806515827 +0800
@@ -12,7 +12,7 @@
PHONY += dochecklxdialog
$(obj)/dochecklxdialog:
- $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES)
+ $(shell $(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES))
hostprogs-y := lxdialog
@Bonveio
Bonveio / cybree-debian-upgrade-script.md
Last active February 11, 2024 05:12
Cybree upgrade script (10 >> 11 >> 12 >> 13)

download script:

wget -O upgrade.sh 'https://gist.github.com/Bonveio/bb40b778b33ef06868c14c0240f25967/raw/upgrade.sh'

usage:

  • Debian 10 to 11 bash upgrade.sh 11
  • Debian 11 to 12 bash upgrade.sh 12
  • Debian 12 to 13 bash upgrade.sh 13
@Bonveio
Bonveio / socket.c
Last active November 1, 2021 01:23
Experimental OpenVPN v2.5+ bypass client big packet [patchfile]
--- src/openvpn/socket.c 2021-10-04 19:01:33.000000000 +0800
+++ src/openvpn/socket.c 2021-10-05 19:01:33.000000000 +0800
@@ -2778,8 +2777,0 @@
-
- if (sb->len < 1 || sb->len > sb->maxlen)
- {
- msg(M_WARN, "WARNING: Bad encapsulated packet length from peer (%d), which must be > 0 and <= %d -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]", sb->len, sb->maxlen);
- stream_buf_reset(sb);
- sb->error = true;
- return false;
@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