Skip to content

Instantly share code, notes, and snippets.

View tecknoh19's full-sized avatar

tecknoh19 tecknoh19

View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

#!/usr/bin/bash
# This script was ran on Ubuntu 20.04.
# Check for root
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
echo "USAGE: sudo build-dnsmasq-server.sh"
exit
@tecknoh19
tecknoh19 / proxy_scrape.py
Created December 17, 2018 00:51
Web scraper to get all SOCKS5 proxies from hidemyna.me with ping under 1000 MS
from bs4 import BeautifulSoup
import re
import cfscrape
scraper = cfscrape.create_scraper() # returns a CloudflareScraper instance
start = 0
increment = 64
max = 256
for counter in range(0,265,64):
# Downloads all PDF files in given URL
# USAGE: pdf_dl.py <URL>
from bs4 import BeautifulSoup
import urllib2
import sys
resp = urllib2.urlopen(sys.argv[1])
soup = BeautifulSoup(resp, from_encoding=resp.info().getparam('charset'))
for link in soup.find_all('a', href=True):
#include <stdio.h>
//global variaes and magic numbers are the basis of good programming
const char* charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~@#$%^&*()-_=+|]}[{';:<,.>?";
char buffer[50];
void permute(int level) {
const char* charset_ptr = charset;
if(level == -1){
puts(buffer);
@tecknoh19
tecknoh19 / ghdb_ripper.py
Created April 16, 2014 06:15
Python Google Dork Hacking Database Extraction Tool. Script will crawl exploit-db.com and copy the google dork database into a csv file
#!/usr/bin/python
# Exploit-db.com Google Dork Hacking Database Replicator written by Andy Bricker
# Proof of concept. You shouldnt use this script without prior consent from Exploit-db.com
# http://andybricker.com
# Contact: andy at andybricker.com
# Requirements
# Python 2.7 (Has not been tasted on later versions)
# Usage:
@tecknoh19
tecknoh19 / urlHarvest.py
Created April 15, 2014 20:05
Google URL Harvester. Google Dorks supported. Scrapes Google for specified search parameters and returns a filtered log file of domain names that has been cleansed of duplicate entires.
# URL Harvester written by Andy Bricker
# http://andybricker.com
# andy at andybricker.com
# Requirements
# Python 2.7 (Has not been tasted on later versions)
# Beautiful Soup library for Python (http://www.crummy.com/software/BeautifulSoup/)
# Usage:
# python urlHarvest.py books stores -n 50 -l myLogFile.txt
@tecknoh19
tecknoh19 / gHb.py
Last active August 29, 2015 13:59
Heartbleed Google Scrape Vulnerability Scanner
# Requires Beautiful Soup be installed -- https://pypi.python.org/pypi/beautifulsoup4/4.3.2
# Built off of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# Only a portion of this code is mine and origianl, the rest is credited to Jared Stafford. -- Andy B (andy@andybricker.com)
# Allows to search google for specified search terms, then returns a list of all URL's vulnerable to the Heartbleed bug in a log file.
# usage: gHb.py searchTerm options
# usage: gHb.py "https:// lol cats" -n 10 -l custom_log_file.txt
# Like the script? Donate