Last active
October 24, 2017 16:33
-
-
Save panudetjt/33f3e3cdc0596a03abac66d0ea3ac6c9 to your computer and use it in GitHub Desktop.
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
| apt update | |
| apt upgrade -y | |
| # Do not use the root user. | |
| adduser --home /home/jame jame |
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
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
| apt -y install cmake libssl-dev libarchive-dev libgtkmm-3.0-dev |
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 | |
| # update apt-get | |
| export DEBIAN_FRONTEND="noninteractive" | |
| sudo apt-get update | |
| # remove previously installed Docker | |
| sudo apt-get remove docker docker-engine docker.io* lxc-docker* | |
| # install dependencies 4 cert | |
| sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
| # add Docker repo gpg key | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
| echo "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" >> /etc/apt/sources.list | |
| sudo apt-get update | |
| # install Docker | |
| sudo apt-get -y install docker-ce | |
| # run Hellow World image | |
| sudo docker run hello-world | |
| # manage Docker as a non-root user | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER | |
| # configure Docker to start on boot | |
| sudo systemctl enable docker | |
| sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| docker-compose --version |
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
| # Download lastest hashcat utils | |
| curl -s https://api.github.com/repos/hashcat/hashcat-utils/releases/latest | grep browser_download_url | cut -d '"' -f 4 | xargs curl -o /tmp/hashcat-utils.7z -LO | |
| # extact 7zip | |
| 7z x -o/tmp/hashcat-utils /tmp/hashcat-utils.7z | |
| # copy binary to /usr/bin/ | |
| find /tmp/hashcat-utils/*/bin/* -exec cp "{}" /usr/bin/ \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment