andy_shev: (Default)
[personal profile] andy_shev
Предоставляю вашему вниманию простой скрипт, который декодирует пароль аськи, если вы заснифили пакетик логина.


#!/usr/bin/python

import sys
import math

key = [ 0xf3, 0x26, 0x81, 0xc4, 0x39, 0x86, 0xdb, 0x92, 0x71, 0xa3, 0xb9, 0xe6, 0x53, 0x7a, 0x95, 0x7c ]

def decode(passwd):
    z = []
    for i in xrange(0,len(passwd)):
        z.append(passwd[i] ^ key[i])
    return z

encpwd = []
for i in xrange(1,len(sys.argv)):
	encpwd.append(int(sys.argv[i],16))

decpwd = decode(encpwd)

print decpwd

strpwd = ''
for i in xrange(0,len(decpwd)):
	strpwd += chr(decpwd[i])
print strpwd


P.S. Писалось очень давно, так что некошерно написано, но работает.

Почему ICQ это плохо.

Profile

andy_shev: (Default)
Andy Shevchenko

March 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 13th, 2026 10:46 am
Powered by Dreamwidth Studios