Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» ~=?{The future is here, TastyExploit officially open to the public}?=~
Tue Mar 02, 2010 11:00 pm by Dami

» My first aa script
Tue Mar 02, 2010 7:00 am by wafflemaster

» the real story behind Maverin
Tue Mar 02, 2010 1:33 am by SoundOfDeat

» Random spam
Mon Mar 01, 2010 11:52 pm by Danny1994

» [Request] EMS v56 Exe
Mon Mar 01, 2010 12:39 am by Dami

» [Blacklist] NX-Trading Blacklist.
Mon Mar 01, 2010 12:38 am by Danny1994

» I have a question regarding the meso farmer
Sat Feb 27, 2010 10:30 pm by Dami

» What are you listening to now?
Sat Feb 27, 2010 7:57 pm by Noname111111

» Video(s) Of The Day
Sat Feb 27, 2010 7:37 pm by Noname111111

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
free forum
 



Need help with an auto login bot.

View previous topic View next topic Go down

Need help with an auto login bot.

Post by pokemaster on Fri Feb 12, 2010 7:45 am

I want to make a bot that logs itself in again when a dc happens. So it would first press enter (to remove the disconnected popup), then fill in the password, enter, pin and enter again. Mouseclick 2 times to select server and channel.

Since I mostly program in PHP (and shit like Matlab), I turned to AutoIT.

Things go ok, apart from the fact that whenever you send keys during login, nothing happens (which is perfectly normal, due to mykeydefense). And for the pin part, my solution was to have the bot click the enter button while holding down CTRL quick, then press V to paste the pin in the field (without using the virtual keyboard). So with AutoIT it would be too unreliable (but what's funny is you can use a pin like 0000, and a password of 00000000 and store 0000 in clipboard. For password you send CTRL V two times).

What's worse is that AutoIT's memory reading and pixelreading functions don't work without a bypass, so I have no good way of determining if I just got dced.


So I'm looking for some help in making an auto login, but with better solution in C++. It would have to be able to send your password into that field, and have some good solution to typing in the pin (without any bypass, and probably no packet sending either).

Some straight up questions I got are:

1. If I have a Maplestory pointer with address 0040000 and offset 007, how do I read it to store the results in the variable NEXONFAIL?

2. Does C++ itself have a inbuilt function for reading pixels on the screen? Say #000000 in the square (0, 0) to (100, 100)?

3. Anyone have good solution for typing in the pin?


That's all for now. I'll start from the C++ basics tomorrow, take a look at hello world and so on... The language as a whole seems a bit more complicated than PHP, long lines, a lot of arguments for functions (long words too . Shocked )
avatar
pokemaster
New member
New member

Posts : 37
Join date : 2010-02-02

Back to top Go down

Re: Need help with an auto login bot.

Post by Dami on Sat Feb 13, 2010 2:30 am

I meant to make auto logon function for damitf already, but as it had all the other minor bugs i never got that far.
Well i have few ideas for auto logon part, and im actually using the copy paste part for my own pin as its faster.

I recon you dont use autoit as its one of the lazy ass programs which shouldnt have been made.
But for the reason that auto logon for ems is quite unique for now, but as it is something to be used to sell my programs, i cant be asked to help on this problem.

Some of the apis are blocked so you wont use them against protected programs such as for this reason, ofc they can be bypassed.
But as pixel reading in my opinion is always retarded and clumsy way of doing just anything, i reckon you dont use it. There is few pointers which you can use to determide exactly where you are on the login screen or in game, but you need to find them 1st Smile
avatar
Dami
Dragon
Dragon

Posts : 1414
Join date : 2009-08-10
Age : 28
Location : Finland

Back to top Go down

Re: Need help with an auto login bot.

Post by wafflemaster on Sat Feb 13, 2010 12:15 pm

1. If I have a Maplestory pointer with address 0040000 and offset 007, how do I read it to store the results in the variable NEXONFAIL?

Code:
DWORD NEXONFAIL;
NEXONFAIL = *(DWORD*)(*(DWORD*)0x0040000 + 0x007)

2. Does C++ itself have a inbuilt function for reading pixels on the screen? Say #000000 in the square (0, 0) to (100, 100)?

not sure; msdn ftw?

3. Anyone have good solution for typing in the pin?

I just send packets. The structure below won't do you much good, but you can still use it if you want. I usually just create my own structs for whatever I need (stuff that actually changes, like the mini dungeon entry packets).

Code:

struct PACKET {
   DWORD Null;
   LPVOID lpData;
   DWORD nSize;
   DWORD Null2;
};
typedef DWORD (__stdcall *SENDPACKET)(PACKET *Buffer);

char* atohx(char* dst, const char * src);
void WINAPI msSendPacketA(__in LPCSTR lpPacketStr);

SENDPACKET SendPacket;

DWORD SendAddy = (DWORD)ScanAOB(SendAob, (BYTE*)0x00400000, 0x600000, 30);//0x004866AC;   //B8 ? ? ? 00 E8 ? ? ? 00 51 56 57 8B F9 8D 77 ? 8B CE 89 ? ? E8 ? ? ? ? 8B 47 ?
DWORD ClassAddy = (DWORD)ScanAOB(ClassAob, (BYTE*)0x00400000, 0x600000, 28);//0x0046B20D;   //8b 0d ? ? ? ? 83 65 ? ? 8d 45 ? 50 e8 ? ? ? ? 83 4d ? ? 8d 4d ? c7 46
DWORD PESendJmp = SendAddy + 5;
DWORD PEClass = *(DWORD*)&Buffer[ClassAddy+2];

inline char* atohx(char* dst, const char * src)
{   
   char *ret = dst;
   for(int lsb, msb; *src; src += 2)
   {   
      msb = tolower(*src);
      lsb = tolower(*(src + 1));
      msb -= isdigit(msb) ? 0x30 : 0x57;
      lsb -= isdigit(lsb) ? 0x30 : 0x57;
      if((msb < 0x0 || msb > 0xf) || (lsb < 0x0 || lsb > 0xf))
      {
         *ret = 0;
         return NULL;
      }
      *dst++ = (char)(lsb | (msb << 4)); 
   }
   *dst = 0;
   return ret;
}

//-------------Sending Packet Functions --------------------
void WINAPI msSendPacketA(__in LPCSTR lpPacketStr)
{
   SIZE_T stLen = strlen( lpPacketStr );
   SendPacket = (SENDPACKET)PESendJmp;
   PACKET Packet;
   Packet.Null = 0;
   Packet.Null2 = 0;   
   Packet.nSize = stLen/2;
   BYTE bPacket[150];
   Packet.lpData = atohx((char*)bPacket, lpPacketStr);

   _asm
   {
      mov ecx, PEClass
      mov ecx, [ecx]
   }
   SendPacket( &Packet );
   delete[] bPacket;
   return;
}

that was from a source my friend sent me

wafflemaster
V.I.P
V.I.P

Posts : 123
Join date : 2009-10-27

Back to top Go down

Re: Need help with an auto login bot.

Post by pokemaster on Mon Feb 15, 2010 7:20 am

Thanks wafflemaster, it helps a bit. I've taken some looks at PE sources, I'll eventually figure it out how to correctly update them to EMS. Your posts over at w8baby is helping too Very Happy
avatar
pokemaster
New member
New member

Posts : 37
Join date : 2010-02-02

Back to top Go down

Re: Need help with an auto login bot.

Post by wafflemaster on Mon Feb 15, 2010 4:03 pm

Most public PE sources are quite old. The function I gave you was at least a year old. Try looking at the bhDisconnector src.

also, I mainly just use w8baby for trolling. half of my posts there are garbage.

Edit: the thing I posted doesn't need to be converted.

wafflemaster
V.I.P
V.I.P

Posts : 123
Join date : 2009-10-27

Back to top Go down

Re: Need help with an auto login bot.

Post by pokemaster on Mon Feb 15, 2010 10:44 pm

wafflemaster wrote:
also, I mainly just use w8baby for trolling. half of my posts there are garbage.

That's mostly what I do on EMS MPC, though a month or two back their moderators became strict with locking posts and issuing infractions.
avatar
pokemaster
New member
New member

Posts : 37
Join date : 2010-02-02

Back to top Go down

Re: Need help with an auto login bot.

Post by Dami on Mon Feb 15, 2010 11:29 pm

pokemaster wrote:
wafflemaster wrote:
also, I mainly just use w8baby for trolling. half of my posts there are garbage.

That's mostly what I do on EMS MPC, though a month or two back their moderators became strict with locking posts and issuing infractions.

Im trolling on every forum iv been posting, its just easier to not give straight answers for people and make them waste time, just like i had to waste my time on testing or figuring something out.
avatar
Dami
Dragon
Dragon

Posts : 1414
Join date : 2009-08-10
Age : 28
Location : Finland

Back to top Go down

Re: Need help with an auto login bot.

Post by wafflemaster on Tue Feb 16, 2010 4:55 am

Trolling on EMS forums is actually pretty easy. You can just blame it on bad English.

wafflemaster
V.I.P
V.I.P

Posts : 123
Join date : 2009-10-27

Back to top Go down

Re: Need help with an auto login bot.

Post by pokemaster on Wed Feb 17, 2010 10:17 pm

I'm quite certain I've updated the two addresses to the current version of EMS, and made sure that I got the arrays right. (Though in my situation I had the hardcoded AOB, instead of having variable ?s)

Still, whenever I run bhPE or bhDisconnector with the updated addresses, I dc as soon as I send a packet (legit ones, posted on Dafo).

Though just as a gentleman said on Dafo, updated the addresses alone weren't enough. Something else has to be changed, hmmm...
avatar
pokemaster
New member
New member

Posts : 37
Join date : 2010-02-02

Back to top Go down

Re: Need help with an auto login bot.

Post by Danny1994 on Thu Feb 18, 2010 12:03 am

pokemaster wrote:Still, whenever I run bhPE or bhDisconnector with the updated addresses, I dc as soon as I send a packet (legit ones, posted on Dafo).

Though just as a gentleman said on Dafo, updated the addresses alone weren't enough. Something else has to be changed, hmmm...
It could be the packet wich changed.
Try to find the "updated" packet thing with WireShark/MapleSnowSniffer.


Last edited by Danny1994 on Thu Feb 18, 2010 1:39 am; edited 1 time in total
avatar
Danny1994
Silver Member
Silver Member

Posts : 376
Join date : 2009-08-16
Age : 23
Location : Germany

Back to top Go down

Re: Need help with an auto login bot.

Post by Dami on Thu Feb 18, 2010 12:54 am

I recon you check on what kind of form that packet you are sending is having.
That program could simply form them package wrong, i havent seen that source before so i dont know if its even suppose to work.

I blame the shit these faggots fill internet with.
avatar
Dami
Dragon
Dragon

Posts : 1414
Join date : 2009-08-10
Age : 28
Location : Finland

Back to top Go down

Re: Need help with an auto login bot.

Post by wafflemaster on Fri Feb 19, 2010 1:58 pm

If you use msSendPacketA, do this:
Code:
msSendPacketA("PacketWithNoSpaces");

Spaces will fuck shit up.

wafflemaster
V.I.P
V.I.P

Posts : 123
Join date : 2009-10-27

Back to top Go down

Re: Need help with an auto login bot.

Post by Dami on Fri Feb 19, 2010 5:11 pm

wafflemaster wrote:If you use msSendPacketA, do this:
Code:
msSendPacketA("PacketWithNoSpaces");

Spaces will fuck shit up.

I blame the shit these faggots fill internet with.

--

Its not actually extremely fucking hard to make it detect spaces and to remove em...
avatar
Dami
Dragon
Dragon

Posts : 1414
Join date : 2009-08-10
Age : 28
Location : Finland

Back to top Go down

Re: Need help with an auto login bot.

Post by wafflemaster on Fri Feb 19, 2010 6:17 pm

But it is boring... Razz

wafflemaster
V.I.P
V.I.P

Posts : 123
Join date : 2009-10-27

Back to top Go down

Re: Need help with an auto login bot.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum