Modifier un script

Jaolish

Membre
Inscription
26 Juillet 2016
Messages
335
Réactions
34
Points
1 516
Bonjour,
Quelqu'un peut-il me modifier ce script afin que je puisse activer le mode menu sans la clef ? car j'essaye mais je n'y arrive pas. Merci d'avance




Code:
void userAuthThread(uint64_t)
{
    Sleep(35000);
    while (true)
    {
        if (!userInfo.didAuth)
        {
            decryptMacFmt();
            decryptReqPathFmt();
            decryptSiteUrl();
            decryptFindStartStr();
            decryptSquigChar();
            decryptWelcomeMsgFmt();
            decryptErrorLoginMsg();
            decryptErrorReadKeyMsg();
            decryptNonHostThreadName();
            decryptHttpGetFmt();
            decryptErrorConnectingStr();
            decryptFilePathStr();
            decryptbf4CheckStr();
            decryptmw3ReauthStr();
            decryptmw3DisconnectErr();
            if (GetUserKey())
            {
                CellNetCtlInfo netInfo;
                cellNetCtlGetInfo(CELL_NET_CTL_INFO_ETHER_ADDR, &netInfo);
                char *tmpMac = (char*)netInfo.ether_addr.data;
                _snprintf(userInfo.macAddress, 32, (const char*)macAddrFmt, tmpMac[0] & 0xFF, tmpMac[1] & 0xFF, tmpMac[2] & 0xFF, tmpMac[3] & 0xFF, tmpMac[4] & 0xFF, tmpMac[5] & 0xFF);
                char requestPath[100];
                _snprintf(requestPath, 100, (const char*)reqPathFmt, userInfo.key, userInfo.macAddress);
                char *response = Request((const char*)siteUrl, requestPath);
                char *findStr = strstr(response, (const char*)findStartStr);
                if (findStr)
                {
                    int startName = (int)findStr + 0x7;
                    int endName = (int)((char*)strstr(response, (const char*)squigChar));
                    int length = endName - startName;
                    memcpy(userInfo.name, (void*)startName, length);
                    memcpy((void*)&AuthAddrs, (void*)(endName + 0x1), sizeof(AuthAddrs));
                    MidFunctionHook(AuthAddrs.a_DamageMidHook, (int)DamageDataMidHook);
                    MidFunctionHook(AuthAddrs.a_RectanglesHook, (int)Rectangles_Hook);
                    HookFunctionStart(AuthAddrs.a_Draw_HudInvHook, (int)Draw_HudInvStub, (int)Draw_HudInvHook, 4);
                    HookFunctionStart(AuthAddrs.a_PrimaryWeaponFireHook, (int)PrimaryWeaponFire_Stub, (int)PrimaryWeaponFire_Hook, 1);
                    HookFunctionStart(AuthAddrs.a_GetRectHook, (int)GetRectAddr_Stub, (int)GetRectAddr_Hook, 3);
                    char buffer[20] = { 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00 };
                    memcpy((void*)AuthAddrs.a_RandomFix, buffer, 5 * 4);
                    char nop[4] = { 0x60, 0x00, 0x00, 0x00 };
                    write_process((void*)AuthAddrs.a_RandomFix2, nop, 4);
                    write_process((void*)AuthAddrs.a_RandomFix3, nop, 4);
                    userInfo.hasAccess = false;
                    char welcomeMsg[100];
                    _snprintf(welcomeMsg, 100, (const char*)welcomeMsgFmt, userInfo.name);
                    dialog_ret = 0;
                    cellMsgDialogOpen2(type_dialog_ok, welcomeMsg, dialog_fun2, NULL, NULL);
                    wait_dialog();
                    sys_ppu_thread_t id;
                    sys_ppu_thread_create(&id, main_thread, 0, 0x400, 0x7000, 0, (const char*)nonHostThreadName);
                }
                else
                {
                    userInfo.hasAccess = true;
                    dialog_ret = 0;
                    cellMsgDialogOpen2(type_dialog_ok, (const char*)errorLoginMsg, dialog_fun2, NULL, NULL);
                    wait_dialog();
                    system_call_1(41, 0);
                }
            }
            else
            {
                userInfo.hasAccess = true;
                dialog_ret = 0;
                cellMsgDialogOpen2(type_dialog_ok, (const char*)errorReadKeyMsg, dialog_fun2, NULL, NULL);
                wait_dialog();
                system_call_1(41, 0);
            }
            decryptMacFmt();
            decryptReqPathFmt();
            decryptFindStartStr();
            decryptSquigChar();
            decryptWelcomeMsgFmt();
            decryptErrorLoginMsg();
            decryptErrorReadKeyMsg();
            decryptNonHostThreadName();
            decryptFilePathStr();
            userInfo.didAuth = false;
        }

        if (userInfo.didAuth)
        {
            Sleep(300000);
            char checkRequest[100] = {};
            _snprintf(checkRequest, 100, (const char*)bf4CheckStr, userInfo.key);
            char *response = Request((const char*)siteUrl, checkRequest);
            if (strstr(response, (const char*)mw3ReauthStr))
            {

            }
            else
            {
                dialog_ret = 0;
                cellMsgDialogOpen2(type_dialog_ok, (const char*)mw3DisconnectErr, dialog_fun2, NULL, NULL);
                wait_dialog();
                userInfo.hasAccess = false;
                system_call_1(41, 0);
            }
        }
    }
}

Merci d'avance
 
Dernière édition:

Avionix

Administrateur
Inscription
31 Mars 2012
Messages
14 160
Réactions
4 090
Points
31 403
Bonjour,
Quelqu'un peut-il me modifier ce script afin que je puisse activer le mode menu sans la clef ? car j'essaye mais je n'y arrive pas. Merci d'avance



Code:
void userAuthThread(uint64_t)
{
    Sleep(35000);
    while (true)
    {
        if (!userInfo.didAuth)
        {
            decryptMacFmt();
            decryptReqPathFmt();
            decryptSiteUrl();
            decryptFindStartStr();
            decryptSquigChar();
            decryptWelcomeMsgFmt();
            decryptErrorLoginMsg();
            decryptErrorReadKeyMsg();
            decryptNonHostThreadName();
            decryptHttpGetFmt();
            decryptErrorConnectingStr();
            decryptFilePathStr();
            decryptBO2CheckStr();
            decryptmw3ReauthStr();
            decryptmw3DisconnectErr();
            if (GetUserKey())
            {
                CellNetCtlInfo netInfo;
                cellNetCtlGetInfo(CELL_NET_CTL_INFO_ETHER_ADDR, &netInfo);
                char *tmpMac = (char*)netInfo.ether_addr.data;
                _snprintf(userInfo.macAddress, 32, (const char*)macAddrFmt, tmpMac[0] & 0xFF, tmpMac[1] & 0xFF, tmpMac[2] & 0xFF, tmpMac[3] & 0xFF, tmpMac[4] & 0xFF, tmpMac[5] & 0xFF);
                char requestPath[100];
                _snprintf(requestPath, 100, (const char*)reqPathFmt, userInfo.key, userInfo.macAddress);
                char *response = Request((const char*)siteUrl, requestPath);
                char *findStr = strstr(response, (const char*)findStartStr);
                if (findStr)
                {
                    int startName = (int)findStr + 0x7;
                    int endName = (int)((char*)strstr(response, (const char*)squigChar));
                    int length = endName - startName;
                    memcpy(userInfo.name, (void*)startName, length);
                    memcpy((void*)&AuthAddrs, (void*)(endName + 0x1), sizeof(AuthAddrs));
                    MidFunctionHook(AuthAddrs.a_DamageMidHook, (int)DamageDataMidHook);
                    MidFunctionHook(AuthAddrs.a_RectanglesHook, (int)Rectangles_Hook);
                    HookFunctionStart(AuthAddrs.a_Draw_HudInvHook, (int)Draw_HudInvStub, (int)Draw_HudInvHook, 4);
                    HookFunctionStart(AuthAddrs.a_PrimaryWeaponFireHook, (int)PrimaryWeaponFire_Stub, (int)PrimaryWeaponFire_Hook, 1);
                    HookFunctionStart(AuthAddrs.a_GetRectHook, (int)GetRectAddr_Stub, (int)GetRectAddr_Hook, 3);
                    char buffer[20] = { 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00 };
                    memcpy((void*)AuthAddrs.a_RandomFix, buffer, 5 * 4);
                    char nop[4] = { 0x60, 0x00, 0x00, 0x00 };
                    write_process((void*)AuthAddrs.a_RandomFix2, nop, 4);
                    write_process((void*)AuthAddrs.a_RandomFix3, nop, 4);
                    userInfo.hasAccess = false;
                    char welcomeMsg[100];
                    _snprintf(welcomeMsg, 100, (const char*)welcomeMsgFmt, userInfo.name);
                    dialog_ret = 0;
                    cellMsgDialogOpen2(type_dialog_ok, welcomeMsg, dialog_fun2, NULL, NULL);
                    wait_dialog();
                    sys_ppu_thread_t id;
                    sys_ppu_thread_create(&id, main_thread, 0, 0x400, 0x7000, 0, (const char*)nonHostThreadName);
                }
                else
                {
                    userInfo.hasAccess = true;
                    dialog_ret = 0;
                    cellMsgDialogOpen2(type_dialog_ok, (const char*)errorLoginMsg, dialog_fun2, NULL, NULL);
                    wait_dialog();
                    system_call_1(41, 0);
                }
            }
            else
            {
                userInfo.hasAccess = true;
                dialog_ret = 0;
                cellMsgDialogOpen2(type_dialog_ok, (const char*)errorReadKeyMsg, dialog_fun2, NULL, NULL);
                wait_dialog();
                system_call_1(41, 0);
            }
            decryptMacFmt();
            decryptReqPathFmt();
            decryptFindStartStr();
            decryptSquigChar();
            decryptWelcomeMsgFmt();
            decryptErrorLoginMsg();
            decryptErrorReadKeyMsg();
            decryptNonHostThreadName();
            decryptFilePathStr();
            userInfo.didAuth = false;
        }

        if (userInfo.didAuth)
        {
            Sleep(300000);
            char checkRequest[100] = {};
            _snprintf(checkRequest, 100, (const char*)BO2CheckStr, userInfo.key);
            char *response = Request((const char*)siteUrl, checkRequest);
            if (strstr(response, (const char*)mw3ReauthStr))
            {

            }
            else
            {
                dialog_ret = 0;
                cellMsgDialogOpen2(type_dialog_ok, (const char*)mw3DisconnectErr, dialog_fun2, NULL, NULL);
                wait_dialog();
                userInfo.hasAccess = false;
                system_call_1(41, 0);
            }
        }
    }
}

Merci d'avance
Tu peux préciser le jeu ( MW3 je suppose ) et la plateforme :p PS3 je pense aussi :mmh:
 

Jaolish

Membre
Inscription
26 Juillet 2016
Messages
335
Réactions
34
Points
1 516
Tu peux préciser le jeu ( MW3 je suppose ) et la plateforme :p PS3 je pense aussi :mmh:
Merci de ta réponse, bf4 ^^ pour ps3 , peut etre dois-je fournir le auth au complet ? mais il me semble qu'en modifiant les else cela suffit, mais j'essaye et n'y arrive pas xD
 

Avionix

Administrateur
Inscription
31 Mars 2012
Messages
14 160
Réactions
4 090
Points
31 403
Merci de ta réponse, bf4 ^^ pour ps3 , peut etre dois-je fournir le auth au complet ? mais il me semble qu'en modifiant les else cela suffit, mais j'essaye et n'y arrive pas xD
Met le piece joint tous de même , je ne m'y connais pas , mais au moins si il faut modifier autre chose il auront toutes les carte en mains ;)
 

Jaolish

Membre
Inscription
26 Juillet 2016
Messages
335
Réactions
34
Points
1 516
Bizarre d'utiliser une boucle infinie
oui xD peut etre modifier autre chose:
le auth dans prx.cpp:
Code:
#define __CELL_ASSERT__
#include <cellstatus.h>
#include <sys/prx.h>
#include <sys/ppu_thread.h>
#include <string.h>
#include <sys/memory.h>
#include <sys/timer.h>
#include <sys/process.h>
#include <ppu_intrinsics.h>
#include <stdarg.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <cstdlib>
#include <math.h>
#include <netex/libnetctl.h>
#include <sys/socket.h>
#include <ppu_asm_intrinsics.h>
#include <ppu_intrinsics.h>
#include <cell/dbgfont.h>
#include <cell/gcm.h>
#include "PS3.h"
#include "Dialog.h"
#include "Auth.h"
#include "BF4.h"

SYS_MODULE_INFO(BF4_Sweg, 0, 1, 1);
SYS_MODULE_START(_BF4_Sweg_prx_entry);
 
void userAuthThread(uint64_t)
{
    Sleep(35000);
    while (true)
    {
        if (!userInfo.didAuth)
        {
            decryptMacFmt();
            decryptReqPathFmt();
            decryptSiteUrl();
            decryptFindStartStr();
            decryptSquigChar();
            decryptWelcomeMsgFmt();
            decryptErrorLoginMsg();
            decryptErrorReadKeyMsg();
            decryptNonHostThreadName();
            decryptHttpGetFmt();
            decryptErrorConnectingStr();
            decryptFilePathStr();
            decryptbf4CheckStr();
            decryptmw3ReauthStr();
            decryptmw3DisconnectErr();
            if (GetUserKey())
            {
                
                CellNetCtlInfo netInfo;
                cellNetCtlGetInfo(CELL_NET_CTL_INFO_ETHER_ADDR, &netInfo);
                char *tmpMac = (char*)netInfo.ether_addr.data;
                _snprintf(userInfo.macAddress, 32, (const char*)macAddrFmt, tmpMac[0] & 0xFF, tmpMac[1] & 0xFF, tmpMac[2] & 0xFF, tmpMac[3] & 0xFF, tmpMac[4] & 0xFF, tmpMac[5] & 0xFF);
                char requestPath[100];
                _snprintf(requestPath, 100, (const char*)reqPathFmt, userInfo.key, userInfo.macAddress);
                char *response = Request((const char*)siteUrl, requestPath);
                char *findStr = strstr(response, (const char*)findStartStr);
                if (findStr)
                {
                    int startName = (int)findStr + 0x7;
                    int endName = (int)((char*)strstr(response, (const char*)squigChar));
                    int length = endName - startName;
                    memcpy(userInfo.name, (void*)startName, length);
                    memcpy((void*)&AuthAddrs, (void*)(endName + 0x1), sizeof(AuthAddrs));
                    MidFunctionHook(AuthAddrs.a_DamageMidHook, (int)DamageDataMidHook);
                    MidFunctionHook(AuthAddrs.a_RectanglesHook, (int)Rectangles_Hook);
                    HookFunctionStart(AuthAddrs.a_Draw_HudInvHook, (int)Draw_HudInvStub, (int)Draw_HudInvHook, 4);
                    HookFunctionStart(AuthAddrs.a_PrimaryWeaponFireHook, (int)PrimaryWeaponFire_Stub, (int)PrimaryWeaponFire_Hook, 1);
                    HookFunctionStart(AuthAddrs.a_GetRectHook, (int)GetRectAddr_Stub, (int)GetRectAddr_Hook, 3);
                    char buffer[20] = { 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00 };
                    memcpy((void*)AuthAddrs.a_RandomFix, buffer, 5 * 4);
                    char nop[4] = { 0x60, 0x00, 0x00, 0x00 };
                    write_process((void*)AuthAddrs.a_RandomFix2, nop, 4);
                    write_process((void*)AuthAddrs.a_RandomFix3, nop, 4);
                    userInfo.hasAccess = true;
                    char welcomeMsg[100];
                    _snprintf(welcomeMsg, 100, (const char*)welcomeMsgFmt, userInfo.name);
                    dialog_ret = 0;
                    cellMsgDialogOpen2(type_dialog_ok, welcomeMsg, dialog_fun2, NULL, NULL);
                    wait_dialog();
                    sys_ppu_thread_t id;
                    sys_ppu_thread_create(&id, main_thread, 0, 0x400, 0x7000, 0, (const char*)nonHostThreadName);
                }
                else
                {
                    userInfo.hasAccess = true;
                    dialog_ret = 0;
                    cellMsgDialogOpen2(type_dialog_ok, (const char*)errorLoginMsg, dialog_fun2, NULL, NULL);
                    wait_dialog();
                    system_call_1(41, 0);
                }
            }
            else
            {
                userInfo.hasAccess = true;
                dialog_ret = 0;
                cellMsgDialogOpen2(type_dialog_ok, (const char*)errorReadKeyMsg, dialog_fun2, NULL, NULL);
                wait_dialog();
                system_call_1(41, 0);
            }
            decryptMacFmt();
            decryptReqPathFmt();
            decryptFindStartStr();
            decryptSquigChar();
            decryptWelcomeMsgFmt();
            decryptErrorLoginMsg();
            decryptErrorReadKeyMsg();
            decryptNonHostThreadName();
            decryptFilePathStr();
            userInfo.didAuth = false;
        }

        if (userInfo.didAuth)
        {
            Sleep(300000);
            char checkRequest[100] = {};
            _snprintf(checkRequest, 100, (const char*)bf4CheckStr, userInfo.key);
            char *response = Request((const char*)siteUrl, checkRequest);
            if (strstr(response, (const char*)mw3ReauthStr))
            {

            }
            else
            {

            }
        }
    }
}
extern "C" int _BF4_Sweg_prx_entry(void)
{
    Printf = (int(*)(const char*, ...))GetSysPrxForUserFunction(0x9F04F7AF);
    decryptAuthThreadName();
    sys_ppu_thread_t id;
    sys_ppu_thread_create(&id, userAuthThread, 0, 0x300, 0x6000, 0, (const char*)authThreadName);
    return SYS_PRX_RESIDENT;
}

je peux pas tout poster j'ai "Oops! We ran into some problems. Please try again later. More error details may be in the browser console." sur le site

Personne pour enlever le auth du menu ? :(
 
Haut