• XSS.stack #1 – первый литературный журнал от юзеров форума

Буст часов стим

S1nus

floppy-диск
Пользователь
Регистрация
05.12.2019
Сообщения
2
Реакции
8
Я конечно не знаю, но мне кажется 99% этого форума этот скрипт вообще не нужен
Если что скрипт работает с аккаунтами только без гуарда
Что бы накручивать на игру часы надо указать её ид в 36 строке кода
[CLIKE]
Python:
import threading
from steam import SteamClient
#from steam.enums.emsg import EMsg
import time
#import steam.protobufs.steammessages_player_pb2
#import traceback

def loginsteamc(login,password):
    client = SteamClient()
    client.cli_login(login,password)
    return client

def steamboosth (gamelist,client,):
    client.games_played(gamelist)
    client.get_product_info(apps=gamelist, packages=[], timeout=15)

def thread_login(login,password,gamelist,num,clients,clientslogpass):
    try:
        client = SteamClient()
        client.cli_login(login,password)
        if client == 'invalid password':
            print(str(login) + ' - invalid password! Skip')
            #return 'err'
        elif client == 'need code':
            print(str(login) + ' - need code! Skip')
            #return 'err'
        else:
            client.games_played(gamelist)
            client.get_product_info(apps=gamelist, packages=[], timeout=15)
            print ('{}: {} - Loggin'.format(num+1,login))
            #return client,login,password
    except:
        print(str(login) + 'Propuskaem acc (kakaya to ebanaya oshobka epta)')
        #return 'err'

gamelist = [730, 570, 433850]
clients = list()
clientslogpass = list()
thread_list = list()
i1 = 0
f = open('acc.txt')
print ('start program...\nOpen acc.txt...')
for i in f:
        q = i.replace(':',';').strip('\n').strip(' ').strip('\r').split(';')
        t = threading.Thread(target=thread_login, name='Thread {}'.format(i), args=(q[0], q[1], gamelist,i1,clients,clientslogpass))
        thread_list.append(t)
        t.start()
        #print ('{}: {} thread has started'.format(i1,q[0]))
        time.sleep(.4)
        if i1%100 == 0 and i1 != 0:
            print('\n---------------')
            print('---sleep 30s---')
            print('---------------\n')
            time.sleep(30)
            print('\n---------------')
            print('---end sleep---')
            print('---------------\n')
        i1 += 1
f.close()

for t in thread_list:
    t.join()

print('all accounts was been login')
time.sleep(120)

start_time = time.time()
i1 = 0
f = open('acc.txt')
for i in f:
    try:
        q = i.replace(':',';').strip('\n').strip(' ').strip('\r').split(';')
        client = loginsteamc(q[0], q[1])
        if client == 'invalid password':
            print(str(q[0]) + ' - invalid password! Skip')
            continue
        elif client == 'need code':
            print(str(q[0]) + ' - need code! Skip')
            continue
        else:
            steamboosth(gamelist,client)
            clients.append(client)
            clientslogpass.append([q[0], q[1]])
            print (str(i1+1) + ': ' + str(q[0]) + ' - ReLoggin')
            i1 += 1
    except Exception:
        print(str(q[0]) + 'Propuskaem acc (kakaya to ebanaya oshobka epta)')
        i1 += 1
        continue
f.close()

print ('{} min boosted'.format((time.time()-start_time)/60))
#while True:
#    for i in clients:
#        steamboosth(gamelist,i)
#    time.sleep(60)

while True:
    i1 = 0
    for i in clients:
        i.logout()
        try:
            client = loginsteamc(clientslogpass[i1][0], clientslogpass[i1][1])
            if client == 'invalid password':
                print(str(q[0]) + ' - invalid password! Skip')
                continue
            if client == 'need code':
                print(str(q[0]) + ' - need code! Skip')
                continue
        except Exception:
            print('Propuskaem acc (kakaya to ebanaya oshobka epta)')
            i1 += 1
            continue

        steamboosth(gamelist,client)
        clients[i1] = client
        clientslogpass[i1] = ([clientslogpass[i1][0], clientslogpass[i1][1]])
        print (str(i1+1) + ': ' + str(clientslogpass[i1][0]) + ' - ReLoggin')
        i1 += 1
    print ('{} min boosted'.format((time.time()-start_time)/60))
[/CLIKE]
 
Более стабильный скрипт но на винде все равно работает плохо (На 75 строке ставьте минимум 0.4 задержку).
На линуксе работает без ошибок. Как я понял на винде частенько вылетает из за защиты от многократного входа и фикс нужно искать через либы стима (а мне лень)
Python:
import gevent.monkey
gevent.monkey.patch_all()

import threading
from steam import SteamClient
from steam.enums import EResult
import time
#import steam.protobufs.steammessages_player_pb2
#import traceback

def loginsteamc(login='', password='', login_key=None, auth_code=None, two_factor_code=None, login_id=None):
    client = SteamClient()
    client.password = password
    result = client.login(login,password,login_key,auth_code,two_factor_code,login_id)
    while result in (EResult.AccountLogonDenied, EResult.InvalidLoginAuthCode,
                    EResult.AccountLoginDeniedNeedTwoFactor, EResult.TwoFactorCodeMismatch,
                    EResult.TryAnotherCM, EResult.ServiceUnavailable,
                    EResult.InvalidPassword,):
        time.sleep(0.1)

        if result == EResult.InvalidPassword:
            print ('{} - invalid password'.format(login))
            return None

        elif result in (EResult.AccountLogonDenied, EResult.InvalidLoginAuthCode,
                        EResult.AccountLoginDeniedNeedTwoFactor, EResult.TwoFactorCodeMismatch):
            print ('{} - need auth code'.format(login))
            return None

        elif result in (EResult.TryAnotherCM, EResult.ServiceUnavailable):
            print ('Many login last time, wait 10 min')
            time.sleep(600)
            client.reconnect(maxdelay=15)

        client.login(username, password, login_key, auth_code, two_factor_code)
    return client

def steamboosth (gamelist,client,):
    client.games_played(gamelist)
    client.get_product_info(apps=gamelist, packages=[], timeout=15)

def thread_login(login,password,gamelist,num,clients):
    try:
        client = loginsteamc(login, password)
        steamboosth (gamelist, client)
        print ('{}: {} - Loggin'.format(num+1,login))
        if client != None:
            clients.append(client)
    except:
        print(str(login) + ' - Propuskaem acc (kakaya to ebanaya oshobka epta)')
        #return 'err'

def chek_acc_amount(acc):
    f = open(acc)
    for i in enumerate(f):
        pass
    else:
        if 'i' in locals():
            f.close()
            return i[0]+1
        else:
            f.close()
            return 0

gamelist = [730, 570, 433850]
clients = list()
thread_list = []

f = open('acc.txt')
for i in enumerate(f):
    user = i[1].replace(':',';').strip('\n').strip(' ').strip('\r').split(';')
    t = threading.Thread(target=thread_login, name='Thread {}'.format(i), args=(user[0],user[1],gamelist,i[0],clients))
    thread_list.append(t)
    t.start()
    time.sleep(.1)  #On windows minimum 0.4 sec!!!!
    if (i[0]+1)%50 == 0:
        time.sleep(10)
f.close()

for t in thread_list:
    t.join()
del thread_list

print('all thread ready\n Sleep 10 min')
time.sleep(600)

while True:
    print ('Start relogin')
    for i in clients:
        i.reconnect()
        print('{} - reconnected'.format(i.username))
    print('\nAll account reconnecting\nSleep 30 min\n')
    time.sleep(1800)
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх