Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 21:13

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

Advertisement



VB.NET String/4Bytes adress

Discussion on VB.NET String/4Bytes adress within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 17
Join Date: Apr 2010
Posts: 1,689
Received Thanks: 3,641
VB.NET String/4Bytes adress

Hey i try make a hack into a game call S4 League in VB.NET....Well the problem is the 4bytes and String adress....I mean Float in VB.NET write as Memory.WriteFloat
So how can i make 4byte hack?I tried Memory.WriteLong and WriteInt but problem :/
Also at String have problem in Memory.WriteString a error from memory.vb....
I think there is a problem in memory.vb....so can anyone help?
Sorry if i failed in english and if you don't understand what i mean
~>Jάson<~ is offline  
Old 07/20/2011, 20:30   #2
 
elite*gold: 0
Join Date: Jul 2011
Posts: 14
Received Thanks: 2
if i got it right then it should work with
Quote:
<DllImport("kernel32.dll", SetLastError:=True)> _
Public Shared Function WriteProcessMemory(ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByVal lpBuffer As Byte(), ByVal nSize As System.UInt32, <Out()> ByRef lpNumberOfBytesWritten As IntPtr) As Boolean
End Function
Byte() = byte
Integer() = 4byte
Single() = float

should be right ^^
Miraculi ii is offline  
Old 07/21/2011, 23:19   #3
 
elite*gold: 0
Join Date: Nov 2005
Posts: 95
Received Thanks: 9
Also, since .net is managed, strings are actually in the managed space. When dealing with strings, youre actually dealing with a char* (pointer to the memory space in which the actual "string" is stored). If you tried to write a string to an unmanaged memory section, you would probably be writing the pointer instead of the content...

I suppose you could try byte blah = yourstring.ToByte();

.net tends to behave really weird when dealing with unmanaged code...
mgX is offline  
Old 07/21/2011, 23:54   #4
 
elite*gold: 17
Join Date: Apr 2010
Posts: 1,689
Received Thanks: 3,641
I tried mem.WriteLong(blablabla) but then process won't start :/
~>Jάson<~ is offline  
Old 07/22/2011, 00:36   #5
 
elite*gold: 0
Join Date: Nov 2005
Posts: 95
Received Thanks: 9
Well, there is another problem. string in .net is unicode, and what you want is ASCII...pretty sure at least. Are you writing to the correct address? Try converting to ascii...
mgX is offline  
Old 07/22/2011, 13:49   #6


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
I don't get what you want to do.

Do you want to write a String to a specific address?
buFFy! is offline  
Thanks
1 User
Old 07/23/2011, 01:02   #7
 
elite*gold: 17
Join Date: Apr 2010
Posts: 1,689
Received Thanks: 3,641
Quote:
Originally Posted by mgX View Post
Well, there is another problem. string in .net is unicode, and what you want is ASCII...pretty sure at least. Are you writing to the correct address? Try converting to ascii...

Quote:
Originally Posted by u-coRe View Post
I don't get what you want to do.

Do you want to write a String to a specific address?
The adress is correct
I try mem.WriteLong but bug.the process cant start
~>Jάson<~ is offline  
Old 07/23/2011, 10:55   #8


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Why do you want to use WriteLong?
Please tell us exactly WHAT you want to do, and either write your best english or talk german (if you can )
buFFy! is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
string.txt
06/26/2011 - Metin2 Private Server - 1 Replies
Hallo,. Ich habe nach langer zeit mir ein server gemacht aus lw und könnntet ihr mir ein link zur übersetzten string.txt schicken und sagen wo ich das einfügen soll damals wusste ich es aber habs voll vergessen MFG
[C++] string zwischen string
11/11/2010 - C/C++ - 6 Replies
tag gibts direkt ne funktion, mit der man einen passenden string zwischen dem string suchen kann? also meine net .find() sondern sowas ähnliches, die in diesem beispiel "mein string sucht" Bsp: "<span id=\"lalala\">"+string mein_string+"</span>" understanden? :-)
String.au3
09/11/2010 - AutoIt - 2 Replies
Hey, hat jemand die Datei für mich? Ich finde im Internet nichts (ich hoffe ich habe nichts übersehn) Mfg
[C++]Dev C++ string to int
08/06/2010 - C/C++ - 25 Replies
Schonwieder ich :P Also ich versuchs ma gut zu beschreiben. Ich habe nen string in dem steht 1 und bevor einer fragt warum ich nicht direkt int benutzte es würde dan nicht funktioniern. Also ich möchte den string in dem 1 steht in eine int variable umwandeln und danach irgendwan wieder zurück wie schaffe ich das? mit atoi habe ich es nicht hingekriegt und auch nicht mit strtoint
C# String zum Key
05/05/2010 - .NET Languages - 7 Replies
Hallo liebe User, Ich habe seit langer Zeit ein Problem das mich ne Weile beschäftigt. Es geht um Hotkeys und Strings.. Was ich machen will: Ich habe jetzt diesen Code:



All times are GMT +1. The time now is 21:13.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.