Skip to content

Instantly share code, notes, and snippets.

View Lerie82's full-sized avatar

Lerie Taylor Lerie82

View GitHub Profile
@Lerie82
Lerie82 / install-lamp.sh
Last active February 10, 2021 09:16 — forked from aamnah/lamp.sh
Bash script to install Apache, MySQL, PHP and PHPMyAdmin
#!/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
@Lerie82
Lerie82 / install-metasploit.sh
Last active June 17, 2019 10:13
install metasploit and kail on chromebook
#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 \
@Lerie82
Lerie82 / install-tor.sh
Last active November 5, 2023 22:15
get tor polipo install on ubuntu
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
#!/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))
@Lerie82
Lerie82 / wpvuln.sh
Last active May 28, 2018 23:12
list popular wordpress plugin vulnerabilities from wordpress.org
#!/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
@Lerie82
Lerie82 / tpb.sh
Last active May 28, 2018 23:12
ubuntu command like search thepiratebay.org
#!/bin/sh
#supply an argument to the script
curl -s https://thepiratebay.org/search/$1/0/99/200 >search
grep -oP '(magnet[:][?].+?)\"' search
@Lerie82
Lerie82 / ffmpeg-conv.sh
Last active January 18, 2022 18:50
ffmpeg convert files in directory to mp4
### bash
for i in *.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -i "$i" "${name}.mp4";
done
@Lerie82
Lerie82 / install-subl.sh
Created May 30, 2018 18:44
sublimetext install
#/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
@Lerie82
Lerie82 / install-wordpress.sh
Last active February 10, 2021 06:55
Download and unpack WordPress
wget https://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
@Lerie82
Lerie82 / install-ruby.sh
Last active February 2, 2020 09:29
installs ruby 2.7 - 02/02/2020
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