Skip to content

Instantly share code, notes, and snippets.

@josefmonje
Last active June 1, 2018 00:19
Show Gist options
  • Save josefmonje/bf92c10678608185fe3b6b051b684171 to your computer and use it in GitHub Desktop.
Save josefmonje/bf92c10678608185fe3b6b051b684171 to your computer and use it in GitHub Desktop.
apt-get update
# raspi-config
# http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/#sthash.j0qHnuVP.dpuf
# http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20161207_all.deb
# dpkg -i raspi-config*.deb
# raspi-conifig --expand-rootfs
# Linux utilities
apt-get install curl \
wget \
finger \
git \
at \
sendmail-bin \
mosh \
tmux \
imagemagick \
feh \
jp2a \
scrot \
smplayer \
w3m-img \
htop \
iftop \
nethogs \
bridge-utils \
alsa-utils \
-y
apt-get install exploitdb \
proxychains \
nmap \
bulk-extractor \
aircrack-ng \
hostapd-wpe \
rtlsdr-scanner \
mitmf \
burpsuite \
metasploit-framework \
synaptic \
alacarte \
postgresql \
mysql-server \
mysql-client \
libmysqlclient-dev \
libsqlite3-dev \
redis-server
-y
# Install docker
sudo curl -sSL https://get.docker.com | sh
# Install miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh
sudo ln -s /opt/miniconda/bin/conda /usr/bin/
sudo ln -s /opt/miniconda/bin/conda-env /usr/bin/
sudo ln -s /opt/miniconda/bin/activate /usr/bin/
sudo ln -s /opt/miniconda/bin/deactivate /usr/bin/
# Install micro
sudo mkdir -p /opt/micro/bin
sudo curl -sL https://gist.githubusercontent.com/zyedidia/d4acfcc6acf2d0d75e79004fa5feaf24/raw/a43e603e62205e1074775d756ef98c3fc77f6f8d/install_micro.sh | sudo /bin/bash -s linux-arm /opt/micro/bin
sudo ln -s /opt/micro/bin/micro /usr/bin/
# Update wordlist
wget http://download.openwall.net/pub/wordlists/all.gz
uncompress all.gz
mv all all.lst && mv all.lst /usr/share/john/
sudo -u postgres psql postgres
# \password postgres
# enter password
# \q
# Manage network devices
echo "[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true" > /etc/NetworkManager/NetworkManager.conf
# tmux config
echo "set -g prefix C-Space
set -g mouse on" > ~/.tmux.conf
# sendmail config
echo "dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com:587'
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'" > /etc/exim4/update-exim4.conf.conf
echo "gmail-smtp.l.google.com:<user>@gmail.com:<password>
*.google.com:<user>@gmail.com:<password>
smtp.gmail.com:<user>@gmail.com:<password>" > /etc/exim4/passwd.client
chown Debian-exim:root /etc/exim4/passwd.client
chmod 640 /etc/exim4/passwd.client
update-exim4.conf
invoke-rc.d exim4 restart
exim4 -qff
# Add standard user
useradd -m pi
usermod -a -G sudo pi
chsh -s /bin/bash pi
passwd pi
# enter password
# Do the thing
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment