About


Name: Damian Pasternok
Nick: crh
Nationality: Polish
Residence: Warsaw
Occupation: one-man army
Workplace: PepsiCo, Inc. - Warsaw, Poland
Interests: POSIX/GNU operating systems, programming, cybersecurity, astronomy, astrophysics, parapsychology, music (playing piano, drums), mechanical wrist watches, chess, trekking, survival, urban exploration, railroads, submarines and many more.
Contact: IRC: #katedra at IRCnet
Email: <my forename> at pasternok.org, PGP: local or mirrors: pgp.mit.edu / keyserver.ubuntu.com

Warning!

Above address is made available only for private communications and I don't want to receive any advertisements, offers and other bulk mailings. Sending such things to the above address you authorize me to place your addresses on any available blacklists and blocking them everywhere and every time. Sending bulk mail to the above address you authorize me to make your message publicly available. More about it: http://www.cauce.org/.

Geek Code


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT/M/MU/S d- s:+ a C+++$ UB+++$L++++$ P+$ L++++$
!E W++ N+ o+ !K !w !O M+ !V PS PE Y+ PGP++ !t !5 !X
!R tv-() b++(+++) DI D G e+++>++++ h+>- r++ y+
------END GEEK CODE BLOCK------
ungeek

Programming


Various source codes written by myself. Everything is GPLv3. Many of them are outdated.

Python

» Tuya WiFi Smart Plug Munin Plugin

Tuya WiFi Smart Plug power stats plugin for Munin monitoring tool.

The plugin monitors basic power parameters (current, power, voltage) that are measured by a wide range of WiFi smart power plugs compatible with Tuya IoT Platform and Smart Life application (tested with Gosund SP111).

The plugin utilizes the tinytuya Python library to collect the metrics. For devices running the latest protocol version 3.3 it additionally requires to specify an encryption/decryption key to exchange data with each device. The procedure of obtaining such a key is documented on the library's page (the idea is to link your devices between the Smart Life app and the iot.tuya.com portal and authorize the Device Connection Service to fetch the list of registered devices, including their secret keys).

» NUT Battery Runtime Munin Plugin

Network UPS Tools battery runtime plugin for Munin monitoring tool.

The plugin reads the estimated runtime values from all UPS-es that are configured in the upsmon's configuration file (upsmon.conf).

Each device has to return a valid ups.runtime parameter once the configuration is read by upsc, which for some drivers (eg. blazer_usb) may require to be configured through a manual calibration. Otherwise, without this parameter set, the UPS will not be shown.

» Sense HAT Munin Plugin

Raspberry Pi Sense HAT board triple sensor plugin for Munin monitoring tool.

There is also an alternative version available with an additional 1-Wire DS18B20 digital thermometer defined, used for measuring the outdoor temperature.

» Wake On Lan - Magic Packet

PyGTK-based tool for sending broadcast frame called Magic Packet to turn on a computer remotely (tested in local networks and Internet). The program uses remote or local Top-level Domains list downloaded from IANA to validate the FQDN (can be updated by --update-tlds option).

There are two ways to use Wake On LAN over Internet:

  1. You can send Magic Packet directly to broadcast address. For example 23.12.78.56/255.255.192.0 will send MP to 23.12.127.255.
  2. If the computer is behind NAT you'll need a special iproute2 and iptables rules to forward broadcast messages.

Example:

#

#

Above example will work for 192.168.0.0/24. 192.168.0.254 is an unused IP, eth1 - WAN interface, eth0 - LAN. iproute2 assigns 192.168.0.254 address to MAC ff:ff:ff:ff:ff:ff. iptables forwards received packets from port 48777 to 192.168.0.254:48777 - this address has assigned the broadcast MAC, so all packets will be sent to every computer in LAN.

» ipv6calc

Simple utility to calculate pointer domain names for IPv6 prefixes.

Example #1:

$

Output:
 

Example #2:
$

Output:
 
» vhosts

Simple utility to generate a list of available IRC virtual hosts (vhosts) based on IPv4/IPv6 addresses assigned to a given network interface.

» RTBackup

Real-time backup script which periodically checks modification time of each file and creates backup of the file if it has been modified, with preserve the file and parent directories structure and permissions.

Random

» CVE-2021-33909 (Sequoia) *bigdir* directory cleaner for Qualys PoC exploit download
» AnyMote Smart Remote App AMSR definition file for Microlab Solo 7C speakers download

» muninlite OpenWrt >= 21.02.0 patch

  Fix for some buggy sed df regular expressions:
  - now it parses uniquely all filesystems (especially virtual filesystems)
  - warnings/criticals for /rom filesystem are disabled by default
  - DF_IGNORE_FILESYSTEM_REGEX can still be used to exclude any filesystem

  An older version compatible with LEDE >= 17.01.0 and OpenWrt >= 18.06.0 <= 19.07.x is available here.

download

» Linux vmsplice Local Root Exploit fix/patch for 2.6.23.14(-grsec) (CVE-2008-0009, CVE-2008-0010)

download

» Linux >= 2.4.4, >= 2.6.0 NULL pointer dereference due to incorrect proto_ops initializations fix (CVE-2009-2692)

Temporary fix:

#
download

» NVIDIA 96.43.05 Display Driver patch for Linux 2.6.26

download

» Slackware packages and SlackBuilds

browse

» Old Linux kernel configurations for desktop (vanilla+grsec w/NAT, ACPI, I2C, USB DSL modem, etc.) and server (Hardened Gentoo w/ iptables, PaX/grsecurity and QoS)

browse

Articles


Ambient


This is essentially electronic atmosphere music designed to relax the listener with its soothing vibes. Generally under 90 bpm or totally beatless, ambient music takes you on a relaxing or thoughtful journey using a variety of sounds, from wind and whale sound samples, to richly textured electronic landscapes.

» Proton Kinoun - Illimitable
» Mooma - Shelter

Fun


Links


GNU and Linux

Sites of my friends

Other


Copyright © 2006 - 2021 Damian Pasternok / Last modified: 2021-10-17 14:41:03 UTC
Still Lynx and w3m friendly!