Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
# -*- coding: utf-8 -*-
# for VimShell
#Author: mfumi <[email protected]>
#Version: 0.0.3
#License: NEW BSD LICENSE
# Copyright (c) 2010, mfumi
# All rights reserved.
@laander
laander / hosted-bookmarklet.jquery.js
Created December 22, 2010 00:09
A nifty tool for creating hosted javascript browser bookmarklets supporting jQuery
/**
* Hosted jQuery Bookmarklet
* @description A nifty tool for creating hosted javascript browser bookmarklets supporting jQuery
* @author Laander (http://laander.com) at Konscript (http://konscript.com)
* @gist https://gist.github.com/gists/750857
*/
/**
* Usage:
* The following snippet should be the link saved as a bookmarklet by the user.
@alxrogan
alxrogan / email_spoof.sh
Created October 4, 2011 15:07
simple nc script to spoof smtp
#!/bin/bash
#pass the SMTP server as the only argument, modify the port below if needed
( echo HELO foo.bar
sleep 2
echo MAIL FROM: \<[email protected]\>
sleep 2
echo RCPT TO: \<[email protected]\>
sleep 2
echo RCPT TO: \<[email protected]\>
sleep 2
@ayanamist
ayanamist / proxy.pac
Created November 24, 2011 06:08
My Pac File for Auto Proxy
var PROXY = {
"direct":"DIRECT",
"gfw":"PROXY 127.0.0.1:8123"
};
var DEFAULT = "direct";
var SECTIONS = [
{
"name":"direct",
@learncfinaweek
learncfinaweek / gist:4121370
Created November 20, 2012 21:41
Security - Cross-Site Scripting (XSS)

Cross-site Scripting (XSS) is the most prevalent web application security flaw and occurs when user supplied data is sent to the browser without properly validating or escaping that content. XSS flaws can allow the attacker to:

@KartikTalwar
KartikTalwar / Documentation.md
Last active October 31, 2025 06:59
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@willurd
willurd / web-servers.md
Last active October 30, 2025 23:18
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@cmartinbaughman
cmartinbaughman / GoogleHackMasterList.txt
Last active March 24, 2025 04:01
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&#8221; 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
@kaydarla
kaydarla / bridge_calls.sh
Last active February 10, 2024 18:43
Spoof Call
#!/bin/bash
AUTH_ID="Replace with your auth_id"
AUTH_TOKEN="Replace with your auth_token"
# Use a phone number in E164 format
SPOOF_CALLER_ID="Set a CLID here"
YOUR_PHONE_NUMBER="Set your phone number"
NUMBER_TO_CALL="Set the phone number to call"
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.housebuyersusa\.com
RewriteRule (.*) http://www.housebuyersusa.com/$1 [R=301,L]
#ErrorDocument 404 http://www.housebuyersusa.com/error/error
AddType text/css .css
RewriteRule !\.(css|rtf|RTF|pdf|PDF|log|xml|js|ico|gif|htc|jpg|png|htm|swf|flv|mp3|zip|rar|doc)$ index.php
--------------------------------------------------------------------------------------
rewriteengine on