Skip to content

Instantly share code, notes, and snippets.

@Warpten
Warpten / zafc74.js
Last active August 29, 2015 13:57
zafc74.js
function d(p){var w={_a:"a1",_i:"a2",_q:"a3",_y:"a4",_G:"a5",_O:"a6",_W:"a7",_4:"a8",_b:"b1",_j:"b2",_r:"b3",_z:"b4",_H:"b5",_P:"b6",_X:"b7",_5:"b8",_c:"c1",_k:"c2",_s:"c3",_A:"c4",_I:"c5",_Q:"c6",_Y:"c7",_6:"c8",_d:"d1",_l:"d2",_t:"d3",_B:"d4",_J:"d5",_R:"d6",_Z:"d7",_7:"d8",_e:"e1",_m:"e2",_u:"e3",_C:"e4",_K:"e5",_S:"e6",_0:"e7",_8:"e8",_f:"f1",_n:"f2",_v:"f3",_D:"f4",_L:"f5",_T:"f6",_1:"f7",_9:"f8",_g:"g1",_o:"g2",_w:"g3",_E:"g4",_M:"g5",_U:"g6",_2:"g7","_!":"g8",_h:"h1",_p:"h2",_x:"h3",_F:"h4",_N:"h5",_V:"h6",_3:"h7","_?":"h8"};var g=p.charAt(0);var b=p.charAt(1);var k=w["_"+g];var x;var c=null;var v=k.charCodeAt(0);var q=null;if(b=="{"){q=v-1;c="q"}else{if(b=="~"){q=v;c="q"}else{if(b=="}"){q=v+1;c="q"}else{if(b=="("){q=v-1;c="n"}else{if(b=="^"){q=v;c="n"}else{if(b==")"){q=v+1;c="n"}else{if(b=="["){q=v-1;c="r"}else{if(b=="_"){q=v;c="r"}else{if(b=="]"){q=v+1;c="r"}else{if(b=="@"){q=v-1;c="b"}else{if(b=="#"){q=v;c="b"}else{if(b=="$"){q=v+1;c="b"}}}}}}}}}}}}if(q!=null){var m=k.charAt(1);if(m==7){x=String.fro
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>propnotify</Title>
<Author>Giacomo Pozzoni</Author>
<Description>Poperty with OnPropertyChanged event</Description>
<HelpUrl></HelpUrl>
<SnippetTypes />
<Keywords />
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis (mike.philip.davis@gmail.com)
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import select
@Warpten
Warpten / chess.js
Created April 18, 2014 14:27
chessjs - The best of both worlds (chess.js and chessboard.js)
;(self || module.exports || window)['ChessBoard'] = function(container, config) {
var CSS = { }, // Css properties
START_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
PAWN = "p",
BISHOP = "b",
KNIGHT = "n",
ROOK = "r",
QUEEN = "q",
KING = "k",
SYMBOLS = "pbnrqkPBNRQK",
@Warpten
Warpten / gist:698c105383d1f1e37ced
Created June 13, 2014 10:01
koding stability sucks
Envoi d'une requête 'ping' sur koding.com [68.68.97.59] avec 32 octets de données :
Réponse de 68.68.97.59 : octets=32 temps=329 ms TTL=45
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
Réponse de 68.68.97.59 : octets=32 temps=326 ms TTL=45
Délai d'attente de la demande dépassé.
Délai d'attente de la demande dépassé.
Réponse de 68.68.97.59 : octets=32 temps=326 ms TTL=45
Réponse de 68.68.97.59 : octets=32 temps=323 ms TTL=45
Réponse de 68.68.97.59 : octets=32 temps=326 ms TTL=45
signed int __cdecl PH_SMSG_SUPERCEDED_SPELL(int a1) // Actually a ptr to struct that 6BD0A0 creates
{
int oldSpellId; // ebx@1
int newSpellId; // esi@1
__int64 v3; // qax@4
CGPlayer_C *currPlr; // edi@4
void *v5; // esi@7
int v7; // ecx@9
unsigned int v8; // eax@9
unsigned int v9; // edi@15
using System;
using System.Xml;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Collections.Generic;
using System.Dynamic;
using System.Reflection;
using DBFilesClient.NET;
@Warpten
Warpten / patch.diff
Created October 12, 2014 16:31
ObjectListView Generator, add support for fields
diff --git a/ObjectListView/Utilities/Generator.cs b/ObjectListView/Utilities/Generator.cs
index 95454ca..57506fb 100644
--- a/ObjectListView/Utilities/Generator.cs
+++ b/ObjectListView/Utilities/Generator.cs
@@ -199,18 +199,40 @@ public class Generator : IGenerator {
if (type == null)
return columns;
- // Iterate all public properties in the class and build columns from those that have
- // an OLVColumn attribute and that are not ignored.
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using System.IO;
using System.Text;
using System.Linq;
using OpcodeBruter;
namespace x86
commit c905d1a6b7be3d0cdfdab0e8c4db267e01c68684
Author: Warpten <vertozor@gmail.com>
Date: Wed May 27 20:54:57 2015 +0200
Core/NetworkIO: Fixed possible DDoS issue with b5aebf40a8a6f4b480ba2e877451db2ac3dac968
diff --git a/src/server/game/Server/Packets/ChatPackets.cpp b/src/server/game/Server/Packets/ChatPackets.cpp
index 4204278..ab4108b 100644
--- a/src/server/game/Server/Packets/ChatPackets.cpp
+++ b/src/server/game/Server/Packets/ChatPackets.cpp