Script permettant de décoder le password OBF de jetty.

  • Prendre le password OBF de la version Jetty installé.

  • #! /usr/bin/python
    
    # Jetty Deobfuscation Tool
    
    
    
    import sys
    
    def d_jetty(ct):
    
        pt = ""
        b = bytearray(len(ct)/4)
        i=0
    
        for x in b:
    
            t = ct[i:i+4]
            i0 = int(t,36)
            i1 = i0 / 256
            i2 = i0 % 256
            x = (i1+i2-254)/2
            pt+=chr(x)
            i+=4
    
        return pt
    
    
    
    if (len(sys.argv) == 2):
        raw_ct = sys.argv[1]
    else:
        print "Jetty Deobfuscation Tool v1.0"
        print "./jdt "
        exit(0)
    
    print d_jetty(raw_ct)