|
You last visited: Today at 12:50
Advertisement
[C#] Vsro redirect
Discussion on [C#] Vsro redirect within the SRO Coding Corner forum part of the Silkroad Online category.
09/15/2012, 03:38
|
#16
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,653
|
Quote:
Originally Posted by iNiperx
Actually im using your code, just changed it a lil (not much) and its in c# but the problem was that i didnt use gate/agent on same port, but now its working..
What im trying to do is change from thread or having both gate/agent in 1 thread without having an error like when changing from login to world server the login will say something like "an existing connection has closed" or w.e but its not an error it just means it changed from gate to agent.. so i want to try to remove (not just ignore it)
Edit: What i meant to say im using your code for the simple proxy but in C#, but in vb.net heres is where the message appears "An existing connection was forcibly closed by the remote host" when changing from login server to world server:
|
Not about vb.net, I also code in vb.net, just wrote that in C# for reference.
And that error is normal (isn't an error actually). Use try catch clause and it's all done.
|
|
|
10/06/2012, 19:57
|
#17
|
elite*gold: 0
Join Date: Jun 2009
Posts: 2,085
Received Thanks: 1,669
|
Quote:
Originally Posted by sarkoplata
Mate i found this ^^
I also try to do the same, will post if i can achieve
Edit:
There you go dude: (All credits to NoN_Stop)
PHP Code:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Diagnostics; namespace Loader { public partial class Form1 : Form { [DllImport("kernel32.dll")] static extern IntPtr LoadLibrary(string dllToLoad); [DllImport("kernel32.dll")] static extern IntPtr OpenProcess(uint dwDesiredAccess, int bInheritHandle, int dwProcessId); [DllImport("kernel32.dll")] static extern uint ReadProcessMemory(IntPtr hProcess, uint lpBaseAddress, uint lpbuffer, uint nSize, uint lpNumberOfBytesRead); [DllImport("kernel32.dll")] static extern uint WriteProcessMemory(IntPtr hProcess, uint lpBaseAddress, byte[] lpBuffer, int nSize, uint lpNumberOfBytesWritten); [DllImport("kernel32.dll")] static extern uint VirtualAllocEx(IntPtr hProcess, IntPtr lpAddress, int dwSize, uint flAllocationType, uint flProtect); [DllImport("kernel32.dll")] static extern IntPtr CreateMutex(IntPtr lpMutexAttributes, bool bInitialOwner, string lpName); [DllImport("kernel32.dll")] static extern IntPtr GetModuleHandle(string lpModuleName); [DllImport("kernel32")] static extern uint GetProcAddress(IntPtr hModule, string procName); [DllImport("kernel32.dll")] static extern uint WritePrivateProfileString(string section, string key, string val, string filePath); [DllImport("kernel32.dll")] static extern uint GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName); public static IntPtr Handle; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { CreateMutex(IntPtr.Zero, false, "Silkroad Online Launcher"); CreateMutex(IntPtr.Zero, false, "Ready"); uint count = 0; Process SilkProcess; SilkProcess = new Process(); SilkProcess.StartInfo.FileName = @"D:\Program Files\Creddy Avengers Loki\sro_client.exe"; SilkProcess.StartInfo.Arguments = "0/22 0 0"; SilkProcess.Start(); Handle = OpenProcess((uint)(0x000F0000L | 0x00100000L | 0xFFF), 0, SilkProcess.Id); uint ConnectionStack = VirtualAllocEx(Handle, IntPtr.Zero, 8, 0x1000, 0x4); byte[] ConnectionStackArray = BitConverter.GetBytes(ConnectionStack); byte[] Connection = { 0x02,0x00, 0x3D, 0xA2, // PORT (15778) 0x7F,0x00,0x00,0x01 // IP (127.0.0.1) }; uint Codecave = VirtualAllocEx(Handle, IntPtr.Zero, 16, 0x1000, 0x4); byte[] CodecaveArray = BitConverter.GetBytes(Codecave - 0x004B08A1 - 5); byte[] CodeCaveFunc = { 0xBF,ConnectionStackArray[0],ConnectionStackArray[1],ConnectionStackArray[2],ConnectionStackArray[3], 0x8B,0x4E,0x04, 0x6A,0x10, 0x68,0xA6,0x08,0x4B,0x00, 0xC3 }; byte[] JMPCodeCave = { 0xE9, CodecaveArray[0], CodecaveArray[1], CodecaveArray[2], CodecaveArray[3] }; WriteProcessMemory(Handle, ConnectionStack, Connection, Connection.Length, count); WriteProcessMemory(Handle, Codecave, CodeCaveFunc, CodeCaveFunc.Length, count); WriteProcessMemory(Handle, 0x004B08A1, JMPCodeCave, JMPCodeCave.Length, count); } } }
|
Hi, please can you do me a favor and release the project file (.vcproj or some like this, i know this is the source, but i dont know what i have to do with this source.
|
|
|
10/06/2012, 20:02
|
#18
|
elite*gold: 1000
Join Date: Apr 2012
Posts: 1,003
Received Thanks: 208
|
Learn C#
|
|
|
|
|
Similar Threads
|
[Question] Autopot for vSro (without redirect)
10/08/2012 - SRO Private Server - 27 Replies
Hi guys,
I'm playing on Perfection (pvp) server, and recently they have added protection, so we can't log in with mbot, etc.
The thing is, the vsro autopot sucks like hell, using pots with about 3-5 secs delay (especially bad with eu characters), and I often have to use hp pot manually.
In the old sjsro times, there was a keypresser autopot which you started after login, and worked like charm.
Is there someone who knows an autopot similar to that? It would be hella great, then I...
|
Fr1 redirect to pb
04/04/2012 - DarkOrbit - 3 Replies
when i try to login to fr1 it redires me to bp site any 1 knows why ?
i tried with 2 acc existing and botted with and a other acc no botted at all still cant login
|
Can't redirect ip o_0?
08/10/2011 - Silkroad Online - 1 Replies
Hey everybody! I'm having a problem installing my ibot. First of all it doesn't detect silkroad because i can't redirect using edxsilkroad launcher or PHmediapatcher. Let me explain more in detail.
I have everything installed (i think o_0)
Whenever i redirect the ip and launch to silkroad, nothing happens when i enter my info in the login screen. It just stay there for a while. If i try launching silkroad using edxsilkroadlauncher5 it give me some random error like %/"!%?/$". Is there...
|
[Guide] EDXLoader Multiclient/Redirect/Swear Filter TSRO/ISRO/VSRO/CSRO/KSRO
09/03/2009 - SRO Hacks, Bots, Cheats & Exploits - 1 Replies
Had alot of people asking how i was able to multi in game today so i thought i would share with others as this should help people in the future aswell. Please note i am only showing you how too, the program used was NOT made by me, all credts go too pushedx.
How to multi client/Redirect/And most loader features in TSRO Tested Working] And Other Official Silrkoad Versions Untested But Confirmed by Pushedx to be working] even with updates:
1. Go here:...
|
Redirect Ip???
08/14/2009 - Silkroad Online - 20 Replies
Hi. Icannot find this.
What i can use for Redirect Ip in Tsro???
I search something, what have Redirect Ip, because i need this for Bot....
Old Loader don't work and http://www.elitepvpers.com/forum/sro-exploits-hacks -bots-guides/301503-tsro-pserver-loader.html that too.
Anyone have something for change redirect ip?
|
All times are GMT +1. The time now is 12:50.
|
|