change the randmac alias

This commit is contained in:
Andrew Holland 2017-05-10 17:50:25 +03:00
parent 0581c3b444
commit b51978af5c

16
aliases
View file

@ -12,3 +12,19 @@ mktruckdir() {
sudo mkdir ${1}
sudo chown truck:truck ${1}
}
shitwin() {
xfreerdp2 /u:"Andrew Holland" +clipboard /jpeg /size:1918x1044 /v:192.168.1.92 /bpp:32
}
firewall-ssh() {
badssh -oKexAlgorithms=+diffie-hellman-group1-sha1 ntcadmin@77.86.234.126
}
randmac() {
dd if=/dev/urandom bs=4096 count=1 2>/dev/null | sha1sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
}
randmacxen() {
dd if=/dev/urandom bs=4096 count=1 2>/dev/null | sha1sum| sed 's/^\(..\)\(..\)\(..\).*$/00:16:3E:\1:\2:\3'/
}