Skip to content

Instantly share code, notes, and snippets.

@xstpl
xstpl / gist:651f983feb2498cdbeb19b1b3284c49f
Created December 19, 2016 03:47 — forked from berlinbrown/gist:4583728
Simplest Possible Web Crawler with C++
//============================================================================
// Name : OctaneCrawler.cpp
// Author : Berlin Brown (berlin dot brown at gmail.com)
// Version :
// Copyright : Copyright Berlin Brown 2012-2013
// License : BSD
// Description : This is the simplest possible web crawler in C++
// Uses boost_regex and boost_algorithm
//============================================================================
***
FARLiGHT ELiTE HACKERS LEGACY R3L3ASE
***
Attached is the MySQL Windows Remote Exploit (post-auth, udf
technique) including the previously released mass scanner.
The exploit is mirrored at the farlight website http://www.farlight.org.
Oracle MySQL on Windows Remote SYSTEM Level Exploit zeroday
All owned By Kingcope
@xstpl
xstpl / tomcat-manger.py
Created November 27, 2016 03:52 — forked from qrtt1/tomcat-manger.py
write a tomcat-manager script for python. ref: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html
import os
import urllib2, base64
import sys
import urllib
class TomcatManager(object):
def __init__(self, endpoint, username, password):
self.endpoint = endpoint
@xstpl
xstpl / 0_ Gmail API for Service Accounts Python 2.7.
Created January 3, 2016 02:45 — forked from timrichardson/0_ Gmail API for Service Accounts Python 2.7.
Access gmail via gmail api, Service Account method (applicable if you have Google Apps admin access)
smtp mail sending in cPython blocks the GIL.
This code is tested on python 2.7.8 and I'm using it with web2py
If you use Google Apps for your domain email and if you have admin access, you can easily use the gmail api.
Because you have admin access, you can create a "service account" in the Google Developer Console.
This makes authentication easy.
There are other authorisation methods when you don't have admin access, but they require interaction from the user via a browser.
To use this, you need to install these modules (From PyPI):
pyOpenSSL
@xstpl
xstpl / Sublime Text License Key.md
Created December 25, 2015 22:19
Sublime Text 2 License Key, Sublime Text 3 License Key, Sublime Text Full Version.
@xstpl
xstpl / qt_on_osx_yosimite.patch
Last active August 29, 2015 14:25 — forked from unixmonkey/qt_on_osx_yosimite.patch
QT 4.8.6 on OSX Yosemite
--- ./qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qcocoaapplicationdelegate_mac.mm 2014-06-12 10:20:38.000000000 +0300
+++ ./qt-everywhere-opensource-src-4.8.6/src/gui/kernel/qcocoaapplicationdelegate_mac.mm 2014-06-12 21:59:18.000000000 +0300
@@ -122,7 +122,7 @@
[dockMenu release];
[qtMenuLoader release];
if (reflectionDelegate) {
- [NSApp setDelegate:reflectionDelegate];
+ [[NSApplication sharedApplication] setDelegate:reflectionDelegate];
[reflectionDelegate release];
}
@xstpl
xstpl / fuzzer.rb
Last active August 29, 2015 14:25 — forked from postmodern/fuzzer.rb
PlaidCTF misc 100 fuzzer
#!/usr/bin/env ruby
require 'ronin/network/tcp'
require 'ronin/ui/output/helpers'
require 'combinatorics'
include Ronin::Network::TCP,
Ronin::UI::Output::Helpers
hosts = %w[
@xstpl
xstpl / ckedit.py
Last active December 6, 2016 13:48 — forked from mrjoes/ckedit.py
Flask-Admin and CKEditor WYSIWYG textarea integration. Basically, all you have to do: 1. Create new wtforms widget which will emit 'ckeditor' class 2. Make new wtforms field which will use this widget 3. Create new jinja2 template, which includes ckeditor javascript 4. Tell flask-admin to use new field and new template
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext import admin, wtf
from flask.ext.admin.contrib import sqlamodel
app = Flask(__name__)
app.config['SECRET_KEY'] = '123456790'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.sqlite'
db = SQLAlchemy(app)
-Implementar busca com sugestão (estilo Google)
-Fazer um seed com termos para teste
-Fazer debounce de 300ms em cada caractere digitado
-Se o usuário digitar "bazinga", a logo do Zoozle deve sumir, a imagem do Sheldon deve ser exibida e uma exceção "Bazinga" deve ser disparada
-Busca case insensitive
-Ao clicar-se numa opção da lista de sugestões, ou ao apertar-se Enter, fazer a busca no Google de verdade
@xstpl
xstpl / config.rb
Last active August 29, 2015 14:25 — forked from alcidesqueiroz/config.rb
current_path = File.dirname(__FILE__)
sass_path = File.join(current_path, 'scss')
css_path = File.join(current_path, 'css')
#:expanded, :nested, :compact, :compressed
output_style = :expanded