Skip to content

Instantly share code, notes, and snippets.

@ZEROF
ZEROF / Fixing the broken SSL security in the gl-mt3000 routers.md
Last active August 11, 2024 12:04
Fixing the broken SSL security in the GL-MT3000 routers
                                 Fixing the broken SSL security in the GL-MT3000 routers
                                     (and probably others GL-Inet routers from 2022)

I don't like this, do you?

image

This routers has two web interfaces, GL-Inet interface and Luci (standard OpenWrt interface). So let's start.

@ZEROF
ZEROF / Update MyAddr.tools DNS Entries.md
Created June 23, 2024 21:53
myaddr.tools DNS update script and setting with systemd

myaddr.tools

A minimalist dynamic DNS service

Features

  1. No ads, no tracking, no nonsense
  2. Get a name in seconds, no account required
  3. Easy, forgiving HTTP-based API
  4. Multiple domains (all resolve the same): - your-name.myaddr.tools - your-name.myaddr.dev (on the HSTS preload list)

Monitoring unbound installation with Munin

sudo apt install munin munin-node munin-plugins-extra

Activate unbound plugins:

ln -s /usr/share/munin/plugins/unbound_munin_ /etc/munin/plugins/unbound_munin_by_class
ln -s /usr/share/munin/plugins/unbound_munin_ /etc/munin/plugins/unbound_munin_by_flags
ln -s /usr/share/munin/plugins/unbound_munin_ /etc/munin/plugins/unbound_munin_by_opcode
@ZEROF
ZEROF / extract-cert-ovpn.sh
Created October 15, 2020 08:21
Extract the certificate and key from an .ovpn file
#!/bin/bash
# This script will extract the certificate and key from an .ovpn file
# into their own files, which makes it possible to use them to configure
# the VPN using Ubuntu's network manager
# Usage example:
# >> ovpnconvert username.dev.ovpn
sed '1,/<ca>/d;/<\/ca>/,$d' $1 > $1.ca.crt
@ZEROF
ZEROF / PC Engine apufix1a = heat spreader placement fixture for apu-2,3,4 boards 3D printing module.md
Last active December 28, 2019 22:44
PC Engine apufix1a = heat spreader placement fixture for apu-2,3,4 boards 3D printing module

From @BalCC0n orga team for hackers communities

People from our team have PC Engine small single board computers for networking in their office or home office. To protect board we are using this case:

image

The heat spreader kit is included with apu boards but because of his size it's not really easy to place it where we want. People from PC Engine are selling heat spreader placement fixture (apufix1a https://pcengines.ch/apufix1a.htm)), but in some countries is not even possible to order it.

@ZEROF
ZEROF / Fixing VMWARE Workstation 15.5.x kernel 5.4 modules issue.md
Created December 15, 2019 13:15
Fixing VMWARE Workstation 15.5.x kernel 5.4 modules issue

Hi folks,

For some time now there is an issue for all people running VMWARE Workstation (i think even player) with vmmon and vmnet kernel modules. When you start Workstation you will get message "Before you can run VMWare, several modules must be compiled and loaded into the running kernel". You will try to click on install, but in the end you will get an error message with path to error log file.

VMware-Kernel-Module-Updater

I'm running kernel 5.4 because this version is fixing few hardware issues I have with "modern hardware" on my laptop.

@ZEROF
ZEROF / Lenovo Carbon X1 (7th generation) battery not charging (solution).txt
Created December 12, 2019 08:58
Lenovo Carbon X1 (7th generation) battery not charging (solution)
I woke up, started my laptop, and I got laptop poweroff just after booting. My Carbon X1 (7th generation) is only 2 months
old. Not really best way to start a day.
Solution:
1. Power off your lap top
2. Find this little reset button on the bottom of your laptop
3. Hold for five seconds let go; plug laptop back
4. Hit power button
@ZEROF
ZEROF / vmware_player_15.5__for_ubuntu_and_backbox_install.txt
Created September 28, 2019 20:37
Install VMWare Player 15.5 for Ubuntu 18.04 and BakcBox Linux
## Install VMWare Player 15.5 for Ubuntu 18.04 and BakcBox Linux
I don't know if VMWare is messing with Linux users or they just don't care, installing VMWare player was not pleasure at all.
You need hackish brain to make it working with Remove Console who is kind of dependency for VMWare WebSphere and
advanced users of VMWare products. Anyway ..
## Step by step
Install older version of VMWare Player 12.5.9
THIS IS OLD VERSION NOT SUPPORTED ANYMORE
Check: https://gist.github.com/ZEROF/10743343
#!/bin/bash
# This script will help you to set Hiawatha Server.
# Tested with Debian 7/8 32/64bit.
# Script author ZEROF zerof at backbox dot org
# If you like Linux and security join http://backbox.org
# Script version 0.5t
# This script is distributed under a DO WHAT THE F*** YOU WANT TO PUBLIC LICENSE.

Keybase proof

I hereby claim:

  • I am zerof on github.
  • I am zerof (https://keybase.io/zerof) on keybase.
  • I have a public key whose fingerprint is 9496 BC80 3B9C 3C65 6E78 A5B9 C759 1EFB EDFC 6E11

To claim this, I am signing this object: