Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 04:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoLogin help

Discussion on AutoLogin help within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 4
Received Thanks: 0
AutoLogin help

Code:
/*
Auto Login by SoniKk69 via system.ini
*/
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <iomanip>
#include <math.h>
#include <string>
#include <time.h>
#include <stdlib.h>
#include <windows.h>
#include <process.h>
#pragma pack(1)

using namespace std;

#define ASM            void __declspec(naked)
#define    EXPORT        __declspec(dllexport) __cdecl
#define    THREAD        DWORD WINAPI
#define Naked __declspec( naked )
#define INST_NOP 0x90
#define INST_CALL 0xe8
#define INST_JMP 0xe9
#define INST_BYTE 0x00
#define SHORT_JZ 0x74
#define MAXWAIT 100000
#define _DWORD DWORD
#define _WORD WORD
#define _BYTE BYTE

LPVOID MemcpyEx(DWORD lpDest, DWORD lpSource, int len)
{
    DWORD oldSourceProt,oldDestProt=0;
     VirtualProtect((LPVOID)lpSource,len,PAGE_EXECUTE_READWRITE,&oldSourceProt);
       VirtualProtect((LPVOID)lpDest,len,PAGE_EXECUTE_READWRITE,&oldDestProt);
       memcpy((void*)lpDest,(void*)lpSource,len);
      VirtualProtect((LPVOID)lpDest,len,oldDestProt,&oldDestProt);
     VirtualProtect((LPVOID)lpSource,len,oldSourceProt,&oldSourceProt);
    return (LPVOID)lpDest;
};

DWORD Intercept(int instruction, DWORD lpSource, DWORD lpDest, int len)
{
    DWORD realtarget;
    LPBYTE buffer = new BYTE[len];
    
    memset(buffer,0x90,len);

    if (instruction != INST_NOP && len >= 5)
    {
    buffer[(len-5)] = instruction;
    DWORD dwJMP = (DWORD)lpDest - (lpSource + 5 + (len-5));
    memcpy(&realtarget,(void*)(lpSource+1),4);
    realtarget = realtarget+lpSource+5;
    memcpy(buffer + 1 + (len-5),&dwJMP,4);
    }
    if (instruction == SHORT_JZ)
    {
        buffer[0]=instruction;
        buffer[1]=(BYTE)lpDest;
    }
    if (instruction == INST_BYTE)
    {
        buffer[0]=(BYTE)lpDest;
    }
    MemcpyEx(lpSource, (DWORD) buffer, len);
    delete[] buffer;
    return realtarget;
}

DWORD SearchPattern(char* pattern,DWORD start_offset ,DWORD ende)
{
        DWORD offset=start_offset;
        DWORD start=offset; 
        DWORD backoffset=0;
        DWORD size =strlen(pattern)-1;
        DWORD foundoffset=0;
 
        char * pEnd=pattern;
        while(1)
        {
                char &myposition=*(char*)offset;
                if ((pEnd[1]!='x'))
                {
                        char temp=(char)strtoul(pEnd, &pEnd, 0x10);
                        if (temp==myposition)
                        {
                                if (foundoffset==0)
                                {
                                        foundoffset=offset;
                                }
                        }
                        else
                        {
                                pEnd=pattern;
                                if (foundoffset != 0)
                                        offset=foundoffset;
                                foundoffset=0;
                        }
                }
                else
                {
                 pEnd=&pEnd[2];
                }
                offset++;
                if (((DWORD)pEnd-(DWORD)pattern>=size)||(offset>=ende))
                        break;
        }
        return foundoffset;
}
HINSTANCE hLThis = 0;
HINSTANCE hL = 0;
FARPROC p[332] = {0};
void GetLogin(void* pParams);
DWORD sendadr_ = SearchPattern("55 8B EC 83 EC 18 83 3D x x x x 00 74 07 33 C0 E9 x x x x 8A 45 08 A2 x x x 00 83 3D x x x 00 01 75 0C"
                                      ,0x00400000,0x007FFFFF);
DWORD sendadr = sendadr_+ 0x06;

__declspec(naked) int __cdecl Send_To_Server (BYTE type , LPCSTR format , ... )
{
    __asm
    {
        push ebp
        mov ebp, esp
        sub esp, 0x18
        jmp sendadr
    }
}




char Login_ID[255]; 
char Login_PW[255];
char Login_PW_Second[255];
void Send_SecondPW()
{
    Sleep(200);
        Send_To_Server(0x88,"bs",0,Login_PW_Second);
    Sleep(100);
}
void Send_Login()
{
        Send_To_Server(0x02,"ss",Login_ID,Login_PW);
    Sleep(500);
        Send_SecondPW();
}

void CommandHandler()
{
    for (int i = 0;i<10;i++)
    {
        Send_To_Server(0x15,"bbb",226,0,0);
    }
        Beep(500,500);
}

void GetLogin(void* pParams)
{ 

    DWORD destSize;
    destSize=100;
    GetPrivateProfileString("Auto_Login","ID","NULL",Login_ID,destSize,".\\system.ini"); 
    GetPrivateProfileString("Auto_Login","PW","NULL",Login_PW,destSize,".\\system.ini");
    GetPrivateProfileString("Auto_Login","2PW","NULL",Login_PW_Second,destSize,".\\system.ini");
    Sleep(100);
    Send_Login();
}

void Load_Auto_Login(void* start_parameter)
{
    Sleep(10000);
    GetLogin(0);
    Sleep(30000);
    CommandHandler();
}
im using this and KalSendHack to create a autologin. my problem is that ive no clue how to make it select server and connect before sending the packet.
any ideas?
Toff is offline  
Reply


Similar Threads Similar Threads
[Autologin] New autologin for SBOT => log12project
10/06/2009 - SRO Hacks, Bots, Cheats & Exploits - 66 Replies
Hey guys ! First , i hopes that there is the right section and that im allowed to post thats ... anyway its only to shar a nice tool ive found ! So... A friend gave me a link for an autologin named log12 As i know the firsts versions comes out somes weeks ago Ive tried it and its working fine for me !
Autologin?
09/21/2009 - SRO Private Server - 2 Replies
i can't find any working autologin for ecsro... i thought that a keypresser that just keeps pressing "enter" would work fine.... but i dont know how to make one... if someone could do one he/she would receive my thanks (and surelly the thanks of a lot of people :D) thank you.
One more AutoLogin (2nd)
04/02/2008 - SRO Hacks, Bots, Cheats & Exploits - 11 Replies
Okay ich gebs auf, Menschen ohne Kenntnisse beleidigen einen als Betrüger und Virenverbreiter, niemand hat in irgendeiner Weise interesse. Ich finde keinen Button zum Löschen, wenn ein Mod das hier liest bitte entfernen, es hat hier einfach keinen Sinn irgendetwas anzubieten.
[REQ]Autologin
01/27/2008 - Silkroad Online - 1 Replies
We need an old autologin, without capta, for private server :P what detect dc-s, automaticali login, select char-start, and press F6 ty .p



All times are GMT +2. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.