|
You last visited: Today at 11:33
Advertisement
HOW TO ADD REDIRRECT IP FEATURE ON AUTO it
Discussion on HOW TO ADD REDIRRECT IP FEATURE ON AUTO it within the SRO Coding Corner forum part of the Silkroad Online category.
12/11/2010, 16:10
|
#1
|
elite*gold: 0
Join Date: Feb 2006
Posts: 279
Received Thanks: 29
|
HOW TO ADD REDIRRECT IP FEATURE ON AUTO it
i want to add redirect ip feature on my script but i dont know how to add.. if someone can help me how to add redirect ip... thnx
|
|
|
12/11/2010, 17:52
|
#2
|
elite*gold: 0
Join Date: Jun 2009
Posts: 3,448
Received Thanks: 2,330
|
Quote:
Originally Posted by daftones
i want to add redirect ip feature on my script but i dont know how to add.. if someone can help me how to add redirect ip... thnx
|
Why you need autoit when you have edx loader?
|
|
|
12/12/2010, 08:19
|
#3
|
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
|
Quote:
Originally Posted by dimkacool
Why you need autoit when you have edx loader?
|
Because he wants to code his own loader and he doesn't know C++?
|
|
|
12/12/2010, 11:43
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 443
Received Thanks: 597
|
Quote:
Originally Posted by dimkacool
Why you need autoit when you have edx loader?
|
Quote:
Originally Posted by lesderid
Because he wants to code his own loader and he doesn't know C++?
|
Both, stop posting if you dont know how to help him.
@topic
Sorry, i think the easiest way would be detouring the connect function. And in c++ its so much easier than in AutoIt. Here is a tutorial how to create a easy dll in c++ to detour it:
Quote:
Download MS Detours 1.5:
Copy the header file into Visual Studio 2xxx\VC\Include\ and the library file into Visual Studio 2xxxx\VC\lib .
Create a new empty Win32 project(dynamic link library | dll and multibyte). Add a cpp file and insert this code:
Code:
#include <winsock2.h>
#include <stdio.h>
#include <windows.h>
#include "Detours.h"
#pragma comment(lib, "Detours.lib")
#pragma comment(lib, "ws2_32.lib")
typedef int (WINAPI * trampoline_connect)(SOCKET s, const sockaddr *name, int namelen);
trampoline_connect orginal_connect;
int WINAPI my_connect(SOCKET s, const sockaddr *name, int namelen)
{
sockaddr_in si;
memcpy(&si, name, sizeof(sockaddr_in));
si.sin_addr.S_un.S_addr = inet_addr[COLOR="Red"]("127.0.0.1"[/COLOR]);
return orginal_connect(s, (sockaddr*)&si, sizeof(sockaddr_in));
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
{
orginal_connect = (trampoline_connect)DetourFunction((PBYTE)GetProcAddress(GetModuleHandle("ws2_32.dll"),"connect"), (PBYTE)my_connect);
}
}
return TRUE;
}
Compile the project in Release Mode. The last thing to do is injecting the dll into the sro_client process.Im using WinInject(google), but every other injector is fine,too.
Regards
|
The red marked code is the ip you wanna redirect silkroad to.
If you created the dll succesfully you have to inject it via your autoit application when silkroad is starting.
Regards
|
|
|
12/12/2010, 11:49
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 3,777
Received Thanks: 1,455
|
@Shadoz75
Also possible in C#?
|
|
|
12/12/2010, 12:20
|
#6
|
elite*gold: 0
Join Date: Dec 2007
Posts: 2,400
Received Thanks: 1,517
|
Quote:
Originally Posted by saif1999
@Shadoz75
Also possible in C#?
|
It should be if you can use the Detours library. (which you can)
@Shadow: I was only trying to defend the TS from dimka's comment. I'm sorry if you thought it was meant offensive or the start a discussion. (it wasn't)
|
|
|
12/12/2010, 15:52
|
#7
|
elite*gold: 0
Join Date: Mar 2009
Posts: 443
Received Thanks: 597
|
Quote:
Originally Posted by saif1999
@Shadoz75
Also possible in C#?
|
The ms detour library directly is only for native languages like c++(so no c#.net).But you can create a c++ dll and inject it easily via your c# application, too.
|
|
|
Similar Threads
|
apbrt5000's auto-update feature
05/02/2009 - Silkroad Online - 1 Replies
can someone please type what is in there sropath.ini?
the readme said an example one was supplied, but my rar didnt have it =)
|
"Auto Use Heal Skill" feature from SROKing
04/29/2009 - Silkroad Online - 5 Replies
i am a warrior cleric, how do i use this function? i checked it but the bot didnt switch to cleric rod and heal
or this wont switch weapons?
|
New Feature
05/06/2008 - Conquer Online 2 - 7 Replies
Just wondering. I was thinking there could be a feature were you could choose if 'leechers' could see it. So people under a certain number of thanks. So lets say I post a really awesome bot, but I don't want leechers to get it... i just use the leecher function and now only people over 50 thanks (received) can see the post.
|
GG Updated... Auto Hp, Auto loot, Auto summon not working anymore
11/29/2007 - Dekaron - 21 Replies
GG Updated again! all of my pinacle are not working...
|
All times are GMT +1. The time now is 11:33.
|
|