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 | |
####################################### | |
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems. | |
# Originally written by @AamnahAkram from http://aamnah.com | |
# 2019-2021: Updates and maintenance by Lerie Taylor https://www.lerietaylor.com/ | |
# uninstall: https://gist.github.com/Lerie82/de06e0f5f03305c6d991c30599b7567e | |
####################################### | |
#COLORS | |
# Reset |
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
#installing kali (optional) | |
sudo umount /dev/sdb1 | |
sudo mkfs.ext4 /dev/sdb1 | |
wget https://goo.gl/fd3zc -o crouton | |
cd ~/Downloads | |
sudo sh crouton -r kali -t core,cli-extra -p /media/removable/USB\ Drive/ | |
sudo sh /media/removable/USB\ Drive/bin/enter-chroot | |
#installing metasploit | |
sudo apt-get -y install \ | |
build-essential zlib1g zlib1g-dev \ |
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
gksudo 'apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 886DDD89' | |
sudo add-apt-repository "deb http://deb.torproject.org/torproject.org $(lsb_release -s -c) main" | |
sudo apt-get update | |
sudo apt-get -y --allow-unauthenticated install tor-geoipdb polipo | |
sudo cp /etc/polipo/config /etc/polipo/config.bak | |
sudo wget -O /etc/polipo/config http://gitweb.torproject.org/torbrowser.git/blob_plain/HEAD:/build-scripts/config/polipo.conf | |
sudo service polipo restart | |
#adding transmission torrent client | |
sudo add-apt-repository ppa:transmissionbt/ppa | |
sudo apt-get -y update |
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 | |
counter=10 | |
curl https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty > /var/www/html/pbr/tmp/hnews | |
cat /var/www/html/pbr/tmp/hnews |grep -o '[0-9]\{7,8\}' > /var/www/html/pbr/tmp/hnews2 | |
truncate -s 0 /var/www/html/pbr/tmp/hnews | |
echo '[' >> /var/www/html/pbr/tmp/hnews | |
cat /var/www/html/pbr/tmp/hnews2 | while read -r line; | |
do | |
curl https://hacker-news.firebaseio.com/v0/item/$line.json?print=pretty >> /var/www/html/pbr/tmp/hnews | |
counter=$((counter-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
#!/bin/bash | |
counter=10 | |
#download popular wordpress plugins | |
curl https://wordpress.org/plugins/browse/popular/ > /var/www/html/pbr/tmp/pop | |
#regex the links into new file: pop2 | |
cat /var/www/html/pbr/tmp/pop |grep -o https:\/\/wordpress[.]org\/plugins\/\.*\/\" > /var/www/html/pbr/tmp/pop2 | |
truncate -s 0 /var/www/html/pbr/tmp/pop |
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/sh | |
#supply an argument to the script | |
curl -s https://thepiratebay.org/search/$1/0/99/200 >search | |
grep -oP '(magnet[:][?].+?)\"' search |
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
### bash | |
for i in *.mkv; | |
do name=`echo $i | cut -d'.' -f1`; | |
echo $name; | |
ffmpeg -i "$i" "${name}.mp4"; | |
done |
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/bash | |
#http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/ | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
sudo apt-get update | |
sudo apt-get install sublime-text |
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
wget https://wordpress.org/latest.tar.gz | |
tar -xzvf latest.tar.gz |
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
apt-get -y install software-properties-common | |
apt-add-repository ppa:brightbox/ruby-ng | |
apt-get update | |
apt-get -y install ruby2.7 | |
ruby -v |
OlderNewer