Categories
Development System & Network

Resolving Kubernetes service via internal DNS server – Bare Metal

I have a kubernetes cluster running w/ 4 nodes, my main master node plus for other nodes. I used kubespray to get everything running. This is on my home network, which I will explain down bellow. What I am trying to accomplish is to get some sort of DNS resolution working so I can proceed […]

Categories
Development System & Network

How to rewrite the Subject header for incoming mail with text extracted from E-mail body?

I would like to rewrite the subject for all incoming E-mails coming from a certain From: address having a certain (constant) subject line, and replace it with a completely new Subject line containing a string of text extracted from the E-mail body. For example somewhere in the E-mail body there is: valign=3D”middle”> interesting_string is in […]

Categories
Development Linux

Chkrootkit and Rkhunter – What other tools are capable and proper to diagnose risks and/or infections?

PREAMBLE I’m on the internet for a while looking for the right security tools to locate and diagnose malware on Linux servers. Tools capable of doing system scans on Linux. Tools with capabilities and characteristics similar to Chkrootkit and Rkhunter. I know that there are many tools to find malware like ClamAV, Linux Malware Detect […]

Categories
Development Linux

Alfa Awus036h installation

I have recently bought alfa aus036h and want to install it on kali Linux but I find here some difficulties. I followed all the steps given in the cd but I ran into make file error. please help me install the driver. the chipset is Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 […]

Categories
Development Linux

What is this script doing?

#!/bin/bash echo 123456789 > out.txt exec 3<> out.txt read -n 4 <&3 echo -n 5 >&3 exec 3>&- Was asked the content of out.txt at the end of script, in an interview written exam. I did run the script afterwords and it gave me 123456789. Yet I have no idea what is going on in […]

Categories
Development Linux

Booting LUKS Linux installation from external USB disk

Before: SATA internal SSD with a LUKS encrypted ext4 partition (Debian installation) + a small unencrypted boot partition with kernel, initrd and GRUB configuration files After: that same disk is now externally attached with a USB-to-SATA adapter Now GRUB fails to boot it, but both GRUB and the Debian kernel recognize the disk (I see […]

Categories
Development Linux Ubuntu

Blacklist specific bluetooth devices?

While I installed Ubuntu 18.04.4 LTS, the neighbor (apparently) bought a “Hue Lamp” which appears in the list of bluetooth devices on my machine. Tried using boolean Blocked [rw] setting of bt-device set to true, which works for a while, then the “Hue Lamp” reappears. Is there any way to tell the Settings manager to […]

Categories
Bitcoin Cryptocurrency Development

Are the indexes generated by txindex=1 persisted to disk?

I’m running bitcoind with the option -txindex. $ bitcoind -txindex it seems to be taking around a day to fully index the whole blockchain. (I’m using a raspberry pi 4, 4GB of Ram, with an external Hard Drive). If I shutdown bitcoind and restart, is it going to reindex all transactions again or just load […]

Categories
Bitcoin Cryptocurrency Development

Chance of a word repeating THREE times in a BIP39 Mnemonic passphrase? And what about 2 words repeating 2 times each?

So according to the other thread about BIP39 repeating words, the cahnce of a word repeating TWICE is 11.7%. Now I was wondering, since my passphrase may or may not contain THREE repetitions :O. And then just to finish the chance calculation wizards off, what is the chance that two words are both repeated twice? […]

Categories
CMS Development Magento

Define an event on select with event observer

My template is located in src/app/design/frontend/MySite/default/Magento_Checkout/templates/cart/item/default.phtml There is a select and in this select I’m adding an event. <select id=”cart-<?= /* @escapeNotVerified */ $_item->getId() ?>-qty” name=”cart[<?= /* @escapeNotVerified */ $_item->getId() ?>][qty]” data-cart-item-id=”<?= $block->escapeHtml($_item->getSku()) ?>” title=”<?= $block->escapeHtml(__(‘Quantity’)) ?>” class=”qty” data-role=”cart-item-qty” data-bind=”event:{ change: qtyChanged}”> Problem is when I load the page checkout/cart/ where the select id, I […]