<?php
/*
* Psi client password decrypter
*
* Copyright (C) 2010 Matrix86
* matrix86 [_AT_] tuxmealux [_DOT_] net
* http://www.tuxmealux.net
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
banner();
$xml = simplexml_load_file( XMLFILE );
$i=0;
$a = "a".$i++;
$jid = (string) $xml->accounts->$a->jid;
$pwd = (string) $xml->accounts->$a->password;
echo "[#] 1 Account Found.\n";
echo "\t[!] Username: $jid\n";
echo "\t[!] Password: ".decrypt_psi
( $jid,
$pwd ).
"\n\n";
$a = "a".$i++;
$jid = (string) $xml->accounts->$a->jid;
$pwd = (string) $xml->accounts->$a->password;
}
function banner(){
echo "\n *****************************************************\n";
echo " * Psi (Jabber client) password decrypter *\n";
echo " *****************************************************\n";
echo " * Author: Matrix86 *\n";
echo " * Site: http://www.tuxmealux.net *\n";
echo " *****************************************************\n\n";
}
function decrypt_psi($jid, $passwd) {
$i=0;
$plain="";
for($p=
0;
$p <
strlen($passwd);
$p+=
4) {
$jidascii =
ord($jid[$i++
]);
$hex =
"0x".
substr($passwd,
$p,
4);
$plain .=
chr($jidascii ^
$dec);
}
return $plain;
}
?>