From 4511f645fa3885c1742f0128659d7ebe1a934675 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 31 Mar 2009 04:34:41 +0100 Subject: mod_debug: Some updates --- plugins/mod_debug.lua | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_debug.lua b/plugins/mod_debug.lua index d572a3ce..93724354 100644 --- a/plugins/mod_debug.lua +++ b/plugins/mod_debug.lua @@ -145,15 +145,14 @@ session.print("You may find more help on using this console in our online docume session.print("http://prosody.im/doc/debugconsole\n"); end -local t_insert = table.insert; local byte, char = string.byte, string.char; local gmatch, gsub = string.gmatch, string.gsub; -local function vdecode(ciphertext, key) +local function vdecode(text, key) local keyarr = {}; for l in gmatch(key, ".") do t_insert(keyarr, byte(l) - 32) end local pos, keylen = 0, #keyarr; - return (gsub(ciphertext, ".", function (letter) + return (gsub(text, ".", function (letter) if byte(letter) < 32 then return ""; end pos = (pos%keylen)+1; return char(((byte(letter) - 32 - keyarr[pos]) % 94) + 32); @@ -161,26 +160,31 @@ local function vdecode(ciphertext, key) end local subst = { - ["fc3a2603a0795a7d1b192704a3af95fa661e1c5bc63b393ebf75904fa53d3683"] = - [=[c38]=]; - ["1ba18bc69e1584170a4ca5d676903141a79c629236e91afa2e14b3e6b0f75a19"] = - [=[dSU%3nc1*\1y)$8-0Ku[H5K&(-"x3cU^a-*cz{.$!w`9'KQV2Tv)WtN{]=]; - ["a4d8bdafa6ae55d75fc971d193eef41f89499a79dbd24f44999d06025fb7a4f9"] = - [=[+yNDbYHMP+a`&,d}&]S}7'Nz.3VUM4Ko8Z$42D2EdXNs$S)4!*-dq$|2 - 0WY+a)]+S%X.ndDVG6FVyzp7vVI9x}R14$\YfvvQ("4-$J!/dMT2uZ{+( ) - Z%D0e&UI-L#M.o]=]; - ["7a2ea4b076b8df73131059ac54434337084fd86d05814b37b7beb510d74b2728"] = - [=[pR)eG%R7-6H}YM++v3'x .aJv)*x(3x wD4ZKy$R+53"+bw(R>Xe|>]=]; + ["f880c08056ba7dbecb1ccfe5d7728bd6dcd654e94f7a9b21788c43397bae0bc5"] = + [=[nRYeKR$l'5Ix%u*1Mc-K}*bwv*\ $1KLMBd$KH R38`$[6}VQ@,6Qn]=]; + ["92f718858322157202ec740698c1390e47bc819e52b6a099c54c378a9f7529d6"] = + [=[V\Z5`WZ5,T$<)7LM'w3Z}M(7V'{pa) &'>0+{v)O(0M*V5K$$LL$|2wT}6 + 1as*")e!>]=]; + ["467b65edcc7c7cd70abf2136cc56abd037216a6cd9e17291a2219645be2e2216"] = + [=[i#'Z,E1-"YaHW(j/0xs]I4x&%(Jx1h&18'(exNWT D3b+K{*8}w(%D {]=]; + ["f73729d7f2fbe686243a25ac088c7e6aead3d535e081329f2817438a5c78bee5"] = + [=[,3+(Q{3+W\ftQ%wvv/C0z-l%f>ABc(vkp