Skip to content

Category: Fluffy Fluff

IRC so: James set us up the bond

modprobe bonding
echo '+james' > /sys/class/net/bonding_masters
echo '-bond0' > /sys/class/net/bonding_masters
echo -n 100 > /sys/class/net/james/bonding/miimon
echo balance-alb > /sys/class/net/james/bonding/mode
ip addr add 91.215.157.196/28 dev james
ip link set james up
ip link set eno1 master james
ip link set eno2 master james
#Bond: james bond
#or "james set us up the bond"

via Eric Herman

Leave a Comment

Zero Factor Authentication

Dear Internet, Today I Learned that oath-toolkit exists in Homebrew.

So, this is a thing:

$ brew install oath-toolkit
$ alias totp='oathtool --totp -b YOURSECRET32BLA | pbcopy'

And so is this:

#! /usr/bin/env expect -f
 
set totp [ exec oathtool --totp -b MYSECRET7W22 ]
 
spawn ssh verysecure.doma.in
expect "Password:"
sleep 1
send "thisIsN0t1GoodPaszwort@\r"
expect "Two Factor Token:"
sleep 1
send "$totp\n"
interact

Yup, it’s totally possible to laugh and cry at the same time.

3 Comments