Skip to content

Instantly share code, notes, and snippets.

$.fn.clickbox = $.fn.clickbox || function () {
return this
};
var shareListingOnFacebook = function () {
var c = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(window.location.href + "ts/fb/");
window.open(c, "_blank", "resizable=1,toolbar=0,status=0,width=626,height=436")
};
$(document).ready(function () {
$("#jsListView", "#listings-forsale-page").click(function (a) {
return !1
var http = require('follow-redirects').http;
//top 1000
var domains = ["google.com","facebook.com","youtube.com","yahoo.com","baidu.com","wikipedia.org","qq.com","linkedin.com","live.com","twitter.com","amazon.com","blogspot.com","taobao.com","google.co.in","sina.com.cn","wordpress.com","yahoo.co.jp","yandex.ru","bing.com","ebay.com","google.de","vk.com","hao123.com","163.com","tumblr.com","pinterest.com","google.co.uk","google.fr","googleusercontent.com","microsoft.com","msn.com","ask.com","mail.ru","google.co.jp","google.com.br","weibo.com","apple.com","paypal.com","google.ru","instagram.com","google.com.hk","xvideos.com","blogger.com","google.it","tmall.com","google.es","imdb.com","soso.com","craigslist.org","sohu.com","360.cn","go.com","amazon.co.jp","stackoverflow.com","bbc.co.uk","xhamster.com","google.com.mx","neobux.com","google.ca","fc2.com","cnn.com","imgur.com","alibaba.com","wordpress.org","flickr.com","espn.go.com","adcash.com","huffingtonpost.com","odnoklassniki.ru","t.co","conduit.com","thepira
urxvt.termName: rxvt
urxvt.loginShell: true
urxvt*urlLauncher: /usr/bin/chromium
urxvt*perl-lib: /usr/lib/urxvt/perl/
urxvt*perl-ext-common: default,matcher,searchable-scrollback
urxvt*font: xft:DejaVu Sans Mono:pixelsize=10
urxvt*boldFont: xft:DejaVu Sans Mono:pixelsize=10
urxvt.scrollBar: false
urxvt.saveLines: 65535
urxvt.secondaryScroll: true
@viyatb
viyatb / reverse.py
Created June 1, 2014 13:47
Secuinside CTF
import ctypes
listing = [
'No pain, No gain - gogil',
'Fighting! - lokihardt',
"Rock'n Roll~ - anncc",
'WTF(Welcome To Facebook) - hellsonic',
'Enjoy~ :) - hkpco',
'I love meat - wooyaggo',
' - v0n',
'An algorithm must be seen to be believed. - Donald Knuth',
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpServer::HTML
def initialize(info = {})
super(update_info(info,
'Name' => 'NetGear UPnP CSRF',
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = AverageRanking
include Msf::Exploit::Remote::HttpServer::HTML
def initialize(info = {})
super(update_info(info,
'Name' => 'WDMyCloud NAS Command Injection CSRF',
@viyatb
viyatb / pr.md
Created June 20, 2014 10:20 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

#!/usr/bin/env python
import logging
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.websocket
from tornado.options import define, options
from tornado.process import Subprocess
@viyatb
viyatb / function.js
Created August 18, 2014 19:40
dynamic generate html
function enterSessionData(data, status, xhr){
console.log(data);
$.each(data, function(ind, objects){
$.each(objects, function(index, obj){
html = '<div class="panel panel-default"><div class="panel-heading">';
html+= '<div class="panel-heading"><h4 id="token_head" a data-toggle="collapse" data-parent="#accordion" href="#token">'+obj.name+'</h4></div>';
html+='<div id="token" class="panel-collapse collapse-in"><div class="panel-body"><ul class="nav nav-tabs"><li class="pull-right"><button class="btn btn-primary btn-sm"> View URL map</button></li><hr /></ul><table class="table table-bordered table-striped table-hover"><thead><tr><th> NAME </th><th> VALUE </th><th> ATTRIBUTES </th></tr></thead><tbody><tr id="token"></tr>';
html+='<td id="token_name">'+obj.name+'</td>';
html+='<td id="token_value">'+obj.value+'</td>';
if (obj.attributes.Domain){
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/Monokai Low-Profile Gray (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".*",
"*.pyc",
"*.pyo",
"*.exe",