Debian: Turn of wifi when on a wired connection

Create this file (be sure to set chmod +x on it) /etc/NetworkManager/dispatcher.d/99-wlan-disable Here is what should be in the file: #!/bin/bash wired_interfaces=”en.*|eth.*” if [[ “$1” =~ $wired_interfaces ]]; then case “$2” in up) nmcli radio wifi off ;; down) nmcli radio wifi on ;; esac fi

Published
Categorized as InfoSec

Decrypting (android) mobile bitcoin wallet backups

I wanted to move some coins around with the recent Bitcoin Cash hard fork and needed to decrypt my private keys from my android wallet.   After trying to mess around with a command I found online: openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2017-08-14 -out bitcoin-wallet-backup-2017-08-14.decrypted enter aes-256-cbc decryption password: bad decrypt 140383167771904:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad… Continue reading Decrypting (android) mobile bitcoin wallet backups

Published

Building a new desktop PC

So, I’m building a new desktop and thought I’d drop my shopping list here…. Intel – Core i5-7600 3.5GHz Quad-Core Processor – $209 Coolermaster Hyper 212 Evo RR-212E-20PK-R2 120 mm Case Fan – 600-2000 RPM Gigabyte – GA-Z270-HD3P ATX LGA1151 Motherboard – $119 Corsair – Vengeance LPX 8GB (1 x 8GB) DDR4-2400 Memory – $62… Continue reading Building a new desktop PC

Published

New usbguard PPA for Ubuntu 16.04

usbguard is a project that prevents authorized USB devices from connecting to your Linux system. So, here’s my first stab at creating a public PPA for Ubuntu 16.04: USBguard PPA From this project: usbguard

Published

More NFA Fun Data by state

Inspired by this post, NFA Fun Data by state, and feeling that Utah was underrepresented, I crunched some per-capita numbers using the census estimated populations for 2014. Here are the top states for each section (per 10,000 people): Top state for Machine Guns: Connecticut at 74 per 10k people Top state for Silencers: Utah at… Continue reading More NFA Fun Data by state

Turn off baloo in Kubuntu 14.04

baloo is a performance killer in Kubuntu so I wanted it off. Here’s how: Edit $HOME/.kde/share/config/baloofilerc Change the following line (or add it if it’s not there): Indexing-Enabled=false

Published

Run a shell script with setuid

Linux has protections in place to prevent you from running shell scripts with root permissions that have the setuid bit set. But there’s a way to work around that. (yay! but also be careful!) You’ll need to create a binary with setuid on it…. Here’s how to create the binary: Create the your C file… Continue reading Run a shell script with setuid

Published

Error/Fix: OOM (out of memory) killer kills mysqld every time!

Error (or undesired behavior, in this case): Out of Memory killer kills mysqld when memory runs low. I’d rather have it kill apache processes instead. Fix: specifically exclude OOM from killing the mysqld process with: echo -17 > /proc/`cat /var/run/mysqld/mysqld.pid`/oom_adj

Published
Categorized as Error/Fix