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
sudo apt-get -y install ltrace strace gdb |
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
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 |
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 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" |
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
<pre> | |
<?php | |
function doCmd($cmd) | |
{ | |
while(@ob_end_flush()); | |
$proc = popen($cmd." 2>&1 ; echo Exit status : $?", 'r'); | |
$live_output = ""; |
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 | |
#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 |
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
#curl, curl libraries, lynx | |
# | |
git clone https://github.com/jarun/googler.git | |
apt-get install -y curl libcurl4-openssl-dev libcurl4-gnutls-dev lynx |
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
(\w+[{]at[}].*[.]com) | |
[<](\w+.*\w+\sat\s.*[.]\w+) | |
(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})) |
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 | |
#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 |
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
#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 |
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
sudo service mysql stop | |
sudo usermod -d /var/lib/mysql/ mysql | |
sudo service mysql start |