Skip to content

Instantly share code, notes, and snippets.

@michaelaguiar
michaelaguiar / GoogleScrape.class.php
Created September 11, 2012 22:04
Google Result Scraper
<?php
require_once('simple_html_dom.php');
class Google_Scrape
{
private $html = null;
private $query = null;
private $results = 0;
public function __construct($query='sample', $results=20)
@Mcostart
Mcostart / mn-scanner.py
Created January 23, 2017 02:09
Automate network scanning tasks using the nmap and masscan tools.
#!/usr/bin/python
import xml.etree.ElementTree as ET
import subprocess
import time
import os
#http://xael.org/pages/python-nmap-en.html
import nmap
def parseMasscanReport(path):
hostsPorts = {}
@nateware
nateware / nginx.conf
Last active November 23, 2021 10:54
Nginx sample config for EC2
#
# Sample nginx.conf optimized for EC2 c1.medium to xlarge instances.
# Also look at the haproxy.conf file for how the backend is balanced.
#
user "nginx" "nginx";
worker_processes 10;
error_log /var/log/nginx_error.log info;
@mehedishakeel
mehedishakeel / Termetasploit.sh
Created February 26, 2018 05:24
Metasploit for Termux 2018
#!/data/data/com.termux/files/usr/bin/bash
echo "##############################################"
echo " Metasploit For Termux 2018
echo "##############################################"
echo "INSTALLING............"
echo "####################################"
apt install -y autoconf bison clang coreutils curl findutils git apr apr-util libffi-dev libgmp-dev libpcap-dev postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config postgresql-contrib wget make ruby-dev libgrpc-dev termux-tools ncurses-utils ncurses unzip zip tar postgresql termux-elf-cleaner
echo "####################################"
@xbb
xbb / gscrape.js
Created April 2, 2011 15:06
simple google scraper test with phantomjs
var Gscrape = function(domain) {
var domain = domain || 'com',
searchURL = 'http://www.google.' + domain + '/search?q=',
searchInProgress = false,
cache = {
error: '',
success: true,
pages: 0,
urls: {}
};
@rodvan
rodvan / gist:6084559f71b2ab78b6ede25ae47bcdd0
Created December 18, 2016 03:52 — forked from jonathanmoore/gist:2640302
Get the share counts from various APIs

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.

Twitter

@hanchang
hanchang / gakwt.js
Last active June 27, 2016 06:07 — forked from c93614/gist:3848993
Google Adwords Keyword Tool Scraper via Casper.js
// requires
var utils = require('utils');
var casper = require('casper').create()
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
// setup globals
var email = casper.cli.options['email'] || 'REPLACE THIS EMAIL';
#!/usr/bin/perl
############################################
# VopCrew Multi Scanner v5.0 Final Release #
# Moded by bjork #
# Copyleft © 2010 #bjork@byroe.net #
############################################
# Dipersilahkan yang Ingin Menambah Engine #
############################################
@wpsmith
wpsmith / gist:e4da7c5564aae9689e98
Created September 21, 2015 12:45
TimThub Scanner
#!/usr/bin/perl
####### DON'T MODIF IT or SCRIPT NOT WORK #######
$powered="Shanti"; #
$mail="shechantika@gmail.com"; #
#################################################
################################################
use HTTP::Request; #
use HTTP::Request::Common; #
use HTTP::Request::Common qw(POST); #
use LWP::Simple; #