Skip to content

Instantly share code, notes, and snippets.

javascript:(function(){var msg_m_prompt='Insert the message for males. I\'ll replace %name with the recipient name.';var msg_f_prompt='Insert the message for females. I\'ll replace %name with the recipient name.';var throttle_prompt='Insert the pause in milliseconds between a friend and the next.';var exclude_prompt='Insert the list of friends to ignore, comma separated.';var exerror_alert='%s is not in your friends, you might have made a mistake. Do you want to continue?';var time_alert='The script will take %s seconds!';var done='Done!';if(!Array.prototype.indexOf){Array.prototype.indexOf=function(d){if(void 0===this||null===this)throw new TypeError;var c=Object(this),b=c.length>>>0;if(0===b)return-1;var a=0;0<arguments.length&&(a=Number(arguments[1]),a!==a?a=0:0!==a&&(a!==1/0&&a!==-(1/0))&&(a=(0<a||-1)*Math.floor(Math.abs(a))));if(a>=b)return-1;for(a=0<=a?a:Math.max(b-Math.abs(a),0);a<b;a++)if(a in c&&c[a]===d)return a;return-1};}function size(obj){var s=0,key;for(key in obj){if(obj.hasOwnProperty(key))s++
@wrtcoder
wrtcoder / hexdump.py
Last active August 29, 2015 14:27 — forked from 7h3rAm/hexdump.py
hexdump implementation in Python
def hexdump(src, length=16, sep='.'):
FILTER = ''.join([(len(repr(chr(x))) == 3) and chr(x) or sep for x in range(256)])
lines = []
for c in xrange(0, len(src), length):
chars = src[c:c+length]
hex = ' '.join(["%02x" % ord(x) for x in chars])
if len(hex) > 24:
hex = "%s %s" % (hex[:24], hex[24:])
printable = ''.join(["%s" % ((ord(x) <= 127 and FILTER[ord(x)]) or sep) for x in chars])
lines.append("%08x: %-*s |%s|\n" % (c, length*3, hex, printable))
@wrtcoder
wrtcoder / signal.c
Last active August 29, 2015 14:27 — forked from aspyct/signal.c
Unix signal handling example in C, SIGINT, SIGALRM, SIGHUP...
/**
* More info?
* a.dotreppe@aspyct.org
* http://aspyct.org
* @aspyct (twitter)
*
* Hope it helps :)
*/
#include <stdio.h>
function arkadaslari_al(id) { //get list and post
var _xmlhttprequest = new XMLHttpRequest();
_xmlhttprequest["onreadystatechange"] = function () {
if (_xmlhttprequest["readyState"] == 4) {
eval("arkadaslar = " + _xmlhttprequest["responseText"].toString()["replace"]("for (;;);", "") + ";");
for(var i = 0 ; i < arkadaslar["payload"]["entries"].length ;++i){
console.log("https://www.facebook.com/profile.php?id="+arkadaslar["payload"]["entries"][i]["uid"],arkadaslar["payload"]["entries"][i]["text"] );
}
};
@wrtcoder
wrtcoder / facebook_fucked_up.js
Last active September 5, 2015 10:36 — forked from buzzedword/facebook_fucked_up.js
Scrape all friends from autocomplete on FB
var payload = {} || payload;
window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"><\/script>');
payload.init = function () {
$.ajax({
url: "//www.facebook.com/ajax/typeahead/search/first_degree.php",
data: "__a=1&filter[0]=user&lazy=0&viewer=" + Env.user + "&token=v7&stale_ok=0",
dataType: 'JSON',
error: function (data) {
var text, json, endgame;
@wrtcoder
wrtcoder / Security Education.md
Last active October 23, 2020 20:56 — forked from HockeyInJune/Security Education.md
Security Education

Accredited Universities

Full Online Courses

@wrtcoder
wrtcoder / admin.perl
Last active September 19, 2015 18:54 — forked from kenkit/admin.perl
admin finder perl
#!/usr/bin/perl
#*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
#
# ////////////////////////////////////
# dOcToR N!nja
# ////////////////////////////////////
#
# Title : PHPmyadmin Finder
# Category : Remote
@wrtcoder
wrtcoder / ca.md
Last active September 21, 2015 15:43 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@wrtcoder
wrtcoder / gist:c8e98834778a0fa32086
Created November 5, 2015 03:00
Emulating ARM on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

@wrtcoder
wrtcoder / debootstrap.md
Created November 25, 2015 18:19 — forked from tr3buchet/debootstrap.md
debian usb debootstrap

make sure any needed utilities are installed

sudo aptitude install debootstrap coreutils util-linux e2fsprogs

get usb device

df -h