Skip to content

Instantly share code, notes, and snippets.

View zachbrowne's full-sized avatar

Zach Browne zachbrowne

View GitHub Profile
@zachbrowne
zachbrowne / GoogleHackMasterList.txt
Created October 20, 2015 09:36 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
127.0.0.1 localhost
127.0.0.1 3dns.adobe.com
127.0.0.1 3dns-1.adobe.com
127.0.0.1 3dns-2.adobe.com
127.0.0.1 3dns-3.adobe.com
127.0.0.1 3dns-4.adobe.com
127.0.0.1 activate.adobe.com
127.0.0.1 activate-sea.adobe.com
127.0.0.1 activate-sjc0.adobe.com
127.0.0.1 activate.wip.adobe.com
@zachbrowne
zachbrowne / FindDomains.php
Created October 31, 2011 06:36
Find Domains on same IP with PHP
<?php
function reverseIP($IP)
{
for($f=0; $f <= 2; $f++)
{
// this will list the results in the first two page...alter the code to get results from more number of pages
$url='<a class="linkclass" href="http://www.bing.com/search?q=ip%3A">http://www.bing.com/search?q=ip%3A</a>'.$IP.'&amp;first='.$f.'1&amp;FORM=PORE';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
# Clean up webserver permissions
alias fix='sudo find /var/www/* -type d -exec sudo chmod 755 {} \; && sudo find /var/www/* -type f -exec sudo chmod 644 {} \; && sudo chown -R www-data:www-data /var/www/*'
# Add User and Add to Sudo
adduser zach
usermod -a -G sudo exampleuser
CREATE DATABASE database;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
@zachbrowne
zachbrowne / googletrends.php
Created October 31, 2011 06:53
Generate Google Trends keywords with PHP
<?php
/*
This code is used for get the keywords from the
Google HotTrens.U can use the grabtrends() to get
the curerent trends words. it return an array of keywords
u can change the $url to get coountry specific keywords
ex: $url = "<a class="linkclass" href="http://www.google.co.in/trends/hottrends">http://www.google.co.in/trends/hottrends</a>";
gives the INDIAN keywords
*/
@zachbrowne
zachbrowne / index.html
Created August 26, 2016 14:14
The Ultimate Bad Ass VIM Cheat Sheet
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>The Ultimate Bad Ass VIM Cheat Sheet by Zach Browne</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="The Ultimate Bad Ass VIM Cheat Sheet">
<link rel="canonical" href="http://zachbrowne.me/">
@zachbrowne
zachbrowne / Install Liferay on Ubuntu 10.04
Created October 19, 2011 21:28
Liferay installation on Ubuntu 10.04 LTS
Setting up Liferay on Ubuntu 10.04
# Add java repository & install java
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
apt-get update
apt-get install sun-java6-jdk
apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
# Tell ubuntu to use java
update-java-alternatives -s java-6-sun
@zachbrowne
zachbrowne / .bashrc
Created August 27, 2016 04:27
Bash Pimping
# /etc/bash.bashrc
#
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
@zachbrowne
zachbrowne / functions.php
Created November 11, 2011 18:24
WordPress functions.php Additions
<?php // custom functions.php template @ digwp.com
// add feed links to header
if (function_exists('automatic_feed_links')) {
automatic_feed_links();
} else {
return;
}