吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 6080|回复: 5
收起左侧

[Android Tools] JEB 1.5.201408040(full) Python版注册机,作者:CodeColorist

[复制链接]
scz 发表于 2015-7-28 18:02
JEB 1.5.201408040(full) Python版注册机,作者:CodeColorist
https://gist.github.com/ChiChou/6a6427068965752c3c7b
http://scz.617.cn/misc/201507281725.txt

CodeColorist把Mac OS X的补上,我把Linux的补上。这个Python版JEB注册机同时支
持Windows、Darwin、Linux。区别就是取序列号不同:

wmic bios get serialnumber
ioreg -l
cat /var/lib/dbus/machine-id

#! /usr/bin/env python
# -*- coding: cp936 -*-

#
# Copyleft (c) 2014, 2025
# ------------------------------------------------------------------------
# Author      : CodeColorist
#             : https://gist.github.com/ChiChou/6a6427068965752c3c7b
# Original    : quard@pediy
#             : wangshy@pediy
#             : scz
#             : http://scz.617.cn/misc/201507251700.txt
#             : http://scz.617.cn/misc/201507271722.txt
#             : http://scz.617.cn/misc/201507281725.txt
#             :
# Create      : 2014-04-23 17:01
# Modify      : 2015-07-28 17:25
# ------------------------------------------------------------------------
# The only thing they can't take from us are our minds. !H
#

import struct, time, hashlib, platform, re, subprocess

def License_GetSerialNumber () :
    system  = platform.system()
    ctrl    =   \
    {
        'Windows'   :
        [
            'wmic bios get serialnumber',
            r'SerialNumber\s+(\S+)\s+'
        ],
        'Darwin'    :
        [
            'ioreg -l',
            r'"IOPlatformSerialNumber" = "(\S+)"'
        ],
        'Linux'     :
        [
            'cat /var/lib/dbus/machine-id',
            r'(\S+)'
        ]
    }
    if system in ctrl :
        command, regular    \
                    = ctrl[system]
        p           = subprocess.Popen  \
        (
            command.split( ' ' ),
            stdin   = subprocess.PIPE,
            stdout  = subprocess.PIPE,
            stderr  = subprocess.PIPE
        )
        out, err    = p.communicate()
        if not err :
            return( re.search( regular, out, re.S ).group( 1 ) )
        else:
            raise Exception( "Failed to retrieve serial number.\n%s" % err )
    else :
        raise Exception( "OS not supported." )
#
# end of License_GetSerialNumber
#


def License_sum ( val ) :
    i   = 0
    while val > 0 :
        i      += ( val & 0xF )
        val   >>= 4
    #
    # end of while
    #
    return( i % 10 )
#
# end of License_sum
#

def License_GetMachineId ( SerialNumber ) :
    md5     = hashlib.md5()
    md5.update( SerialNumber )
    digest  = md5.digest()
    return( struct.unpack( '<Q', digest[:8])[0] )
#
# end of License_GetMachineId
#

def License_GetMachineId_2 ( MachineId ) :
    low     = MachineId & 0xFFFFFFFF
    high    = MachineId >> 32
    n       = low + 376273029 + 287454020 & 0xFFFFFFFF
    m       = high - 52416167 + 1432778632 & 0x7FFFFFFF
    buf     = struct.pack( '>LL', m, n )
    return( struct.unpack( '>Q', buf )[0] )
#
# end of License_GetMachineId_2
#

def License_GenerateKey ( MachineId, timestamp ) :
    l   = License_GetMachineId_2( MachineId )
    t   = timestamp & 0xFFFFFFFF ^ 0x56739ACD
    return( '%dZ%d%d' % ( l, t, License_sum( t ) ) )
#
# end of License_GenerateKey
#

def main () :
    SerialNumber    = License_GetSerialNumber()
    MachineId       = License_GetMachineId( SerialNumber )
    timestamp       = int( time.time() + 86400 * 365 * 100 )
    ret             =   \
    "SerialNumber    : %s\n"    \
    "MachineId       : %x\n"    \
    "MachineId_2     : %x\n"    \
    "License key     : %s"      \
    %   \
    (
    SerialNumber,
    MachineId,
    License_GetMachineId_2( MachineId ),
    License_GenerateKey( MachineId, timestamp )
    )
    print ret
#
# end of main
#

if __name__ == '__main__' :
    main()


免费评分

参与人数 1热心值 +1 收起 理由
odmin + 1 感谢发布原创作品,吾爱破解论坛因你更精彩.

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

Goddkiller 发表于 2015-7-28 18:17
thx fore share it~~awesome tool`~
爷依然潇洒 发表于 2015-7-28 18:37
gswxy 发表于 2015-8-26 18:31
本帖最后由 gswxy 于 2015-8-26 18:39 编辑

可以使用了 谢谢大神
herowuking 发表于 2015-9-12 11:35
感谢分享~~话说楼主网盘分享里面有好东西!
wnagzihxain 发表于 2016-5-30 18:29
哇,突然发现您是shencz师傅,感谢注册机
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-8 00:59

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表