示例#1
0
def main():
    cg = CyberGhost(None, XPATH, None, REGURL)
    cg.driver_start()
    login, passwd = generation_passwd(6), generation_passwd(6)
    cg.registration([login, passwd])
    puk = input(login + " press enter to close:\n")
    cg.driver_stop()
    with open(OUTFILE, 'a') as f:
        f.writelines(':'.join((login, passwd, puk,)))
        f.write('\n')
示例#2
0
def main():
    cg = CyberGhost(None, XPATH, None, REGURL)
    cg.driver_start()
    login, passwd = generation_passwd(6), generation_passwd(6)
    cg.registration([login, passwd])
    puk = input(login + " press enter to close:\n")
    cg.driver_stop()
    with open(OUTFILE, 'a') as f:
        f.writelines(':'.join((
            login,
            passwd,
            puk,
        )))
        f.write('\n')
示例#3
0
        CG_USERS = f.readlines()

    filter = lambda s: replace("^\ufeff", "", s)
    user = filter(CG_USERS[0]).split(":")

    return user[:2]


if __name__ == "__main__":
    logger = Logger()
    logger.store("I", "SYSTEM", "HELLO",
                "<=================HELLO=======================>")

    cg = CyberGhost(
        loger=logger,
        elements=elements["cg"],
        result_text=result_text,
        url=urls["cyber"]
    )
    rs_load = RsLoad(
        user=rs_user,
        url=urls,
        page=cur_page,
        headers=headers,
        xpath=elements["rs"],
        loger=logger,
        history=files["story"])

    status = dict(
        new_keys_count=0,
        accounts_activate=0,
        accounts=0