This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lets you use webcam and other mobile hardware inside NativeScript WebView | |
exports.webViewLoaded = function (args) { | |
var webview = args.object; | |
var TNSWebViewClient = | |
android.webkit.WebViewClient.extend({ | |
shouldOverrideUrlLoading: function (view, url) { | |
if (url != null && url.startsWith("http://")) { | |
console.log(url); | |
// use openUrl form utils module to open the page in a browser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The ASCII arts were extracted from: | |
* - http://www.fiikus.net/?pokedex | |
* - http://www.world-of-nintendo.com/pictures/text/ | |
* And also generated with: | |
* - http://www.text-image.com | |
*/ | |
#ifndef __POKE_IMG__ | |
#define __POKE_IMG__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# csaw 2016 - hungman - pwn 300 | |
# | |
# @_hugsy_ & @rick2600 | |
# | |
from pwn import * | |
context.update(arch="amd64", os="linux", log_level = "info") | |
import random, string, time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simple-rop: simple-rop.c | |
gcc -m32 -O0 -g -static -fno-stack-protector $^ -o $@ | |
.PHONY: clean | |
clean: | |
rm -rf simple-rop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://developer.apple.com/downloads/index.action | |
# 1.) download + install XCode from the app store | |
# 2.) download + install the XCode command line tools from the url above | |
# 3.) open Xcode for the first time and agree to the terms of use | |
# install homebrew and install libksba | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
brew doctor | |
brew update | |
brew install libksba |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int* return_pointer(){ | |
return (int*)malloc(sizeof(int)); | |
} | |
void modify_pointer(int **p){ | |
*p = (int*)malloc(sizeof(int)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// get markdown content | |
var body_location = 'markdown/README.markdown'; | |
function getText(myUrl){ | |
var result = null; | |
$.ajax( { url: myUrl, | |
type: 'get', | |
dataType: 'html', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <list> | |
#include <boost/unordered_map.hpp> | |
#include <boost/noncopyable.hpp> | |
template<typename T> | |
class HashedList : boost::noncopyable | |
{ | |
typedef typename std::list<T>::iterator ListIterator; | |
typedef typename std::list<T>::reverse_iterator ReverseListIterator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- Encoding: utf-8 -*- | |
import base64 | |
import binascii | |
import cgi | |
import hashlib | |
import hmac | |
import logging | |
import time | |
import urllib | |
import urlparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDKDDKVer.h> | |
#include <Windows.h> | |
#pragma warning(disable:4819) | |
#pragma warning(disable:4996) | |
// for OpenCV2 | |
#include "opencv2/imgproc/imgproc.hpp" | |
#include "opencv2/objdetect/objdetect.hpp" | |
#include "opencv2/gpu/gpu.hpp" |
NewerOlder