This file contains hidden or 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 | |
| wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz | |
| tar -xvf go1.14.4.linux-amd64.tar.gz | |
| mv go /usr/local | |
| tee -a ~/.profile << END | |
| export GOROOT=/usr/local/go | |
| export GOPATH=$HOME/go |
This file contains hidden or 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 | |
| # Install dependency | |
| apt install -y apt-transport-https ca-certificates curl software-properties-common | |
| # Add GPG key | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| # Add docker repository to APT sources | |
| add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" -y |
This file contains hidden or 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
| input { | |
| beats { | |
| port => 5044 | |
| } | |
| } | |
| filter { | |
| if [message] =~ /^#/ { | |
| drop { } | |
| } |
This file contains hidden or 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 | |
| dir="Stego\ Files" | |
| for i in $dir/*;do | |
| # password list | |
| pass=( "christmastree" "darksky123" "goldenwatch") | |
| for x in "${pass[@]}";do | |
| steghide extract -sf "${i}" -p "${x}" 2>/dev/null | |
| done |
This file contains hidden or 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 | |
| # CRED | |
| DB_USER="user" | |
| DB_PASS="user" | |
| DB_NAME="dbname" | |
| # PATH/DIR | |
| SRCDIR="/path/to/backups" | |
| EXPDIR="$SRCDIR/$DB_NAME_$(date +"%H%M-%d-%m-%Y").sql" |
This file contains hidden or 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 os, platform, subprocess, socket, psutil, netifaces, cpuinfo | |
| #command = "cat /proc/cpuinfo" | |
| #print(subprocess.check_output(command, shell=True).strip()) | |
| kb = float(1024) | |
| mb = float(kb ** 2) | |
| gb = float(kb ** 3) |
NewerOlder