• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Augural Sentinel

#1
C/C++ Programming / Re: ReadProcessMemory
April 10, 2006, 09:12 AM
Well, I'm going to have to do a bit more searching then.  I found an article that makes ReadProcessMemory feasible, but like you said, it doesn't do any good if I can't find the pointer.
#2
C/C++ Programming / Re: ReadProcessMemory
April 10, 2006, 08:48 AM
In this case, wouldn't DLL injection be best if I can't use ReadProcessMemory if the pointer can't be found?

I have a basic idea of how to go about doing DLL injection with ASM, but I have no clue how to get it to work in conjunction with another program written in C++.  I guess I'll have to go do a bit of searching on Google.
#3
C/C++ Programming / Re: ReadProcessMemory
April 10, 2006, 08:39 AM
How do trainers for games work then?  Memory addresses are going to change every time the game is run, so the trainers have to get that value somehow.  What would be a solution to this then?  And just a note, no, I'm not making anything like a trainer.
#4
C/C++ Programming / Re: ReadProcessMemory
April 07, 2006, 05:08 AM
Quote from: Adron on April 07, 2006, 04:33 AM
Though at this time it might be appropriate to point out that values in registers do not quite stay the same throughout the execution of a program.
Yeah, I realized that after awhile.  I guess I'm going to have to find where in the code the memory address is determined.
#5
C/C++ Programming / Re: ReadProcessMemory
April 06, 2006, 05:00 AM
Alright, thank you.  I was being told it's absolutely impossible unless I know what the value is in which case I can write a function to search for it in the other program's memory (which would completely defeat the purpose of accessing it in the first place).

Edit:

Okay, I found this line of code in OllyDbg:
MOV BYTE PTR DS:[EDX],AL
When I look at the register EDX, it shows me the memory address that I need.  So, after Googling and searching MSDN, I didn't find much to help my case.  Does anyone know of a starting point to access another program's registers?
#6
C/C++ Programming / ReadProcessMemory
April 05, 2006, 06:34 PM
I'm helping somebody with a program they are making and I need a good reference or an example for ReadProcessMemory.  Would anybody happen to have a link to a site that demonstrates how to properly use this?  I've found examples in C#, but it really needs to be in C++

Basically, I need to read an unknown value from another program's memory.  Since the address changes every time the program is run, I have no idea how to do this.  It appears to be possible to do it with C# unless the code example I found only happens to work once.

At the very least, is it possible to access the registers another program is using?
#7
Web Development / Re: pack()
February 20, 2006, 06:28 PM
I completely forgot to check the B.net docs.  You're right.  I'm just retarded.
#8
Web Development / Re: pack()
February 20, 2006, 05:06 PM
Eh, it still doesn't help a whole lot.  Do I need short or long variable types?
#9
Web Development / pack()
February 20, 2006, 10:18 AM
I don't like using other people's code, especially when I don't understand exactly how something works.  So, after looking through Joe's PHP script for connecting to Battle.net, I started looking through the PHP manual.

So my question is this.  Does PHP's pack() create the correct type of Endians that is needed to log onto Battle.net when you use 'v' and 'V'?

$a = pack('V', 0x00);
$b = pack('v', 0x00);

And would the above be the correct usage?  Or do I need to use a different format character instead of 'V'?
#10
Who WANTS[/i] to see it?  If you like the idea of that thought, you've got something wrong with you :P

I hope that answers your question indirectly.
#11
Does seeing your own mom's count?
#12
Quote from: quasi-modo on January 10, 2006, 12:31 PMso you are saying we need to throw old people and babies into fires because they wont run away?  ???
Jeez, what's wrong with you? ::) You sell the babies on the black market!  Why waste perfectly good produce?  As for the old people, I just said that because a lot of them (not all) tend to be rather feeble and they wouldn't be able to get out.
#13
Quote from: Yegg on January 09, 2006, 02:23 PMWhat is the value of endl? Is it simply '\n'?
I found this with my Googling expertise:
QuoteMany programmers append the endl manipulator after each cout expression, as in:

cout << "user login" << endl;
cout << "enter your name: " << endl;
cin >> name;
 

In the first line, the endl manipulator is added to force a line break. However, it's cheaper in terms of performance to use the '\n' character instead of endl because endl also flushes the stream rather than just adding a line break. Flushing a stream can be a costly operation. The second cout expression too has a redundant endl manipulator because the display must appear on the screen before the cin expression is executed, as cin and cout are tied.

The bottom line: avoid using the endl manipulator if you can because it slows down your program.

I've never heard this before and I've heard that endl is better.  Anyone else know which is "better"?
#14
Did he really expect the mouse to stay in the fire?  Maybe if it was an old person or a baby, one of them might stay in.
#15
Yoni's Math Forum / Re: Function and it's inverse
January 06, 2006, 05:26 AM
Quote from: Shout on January 05, 2006, 09:47 PM
I graphed it on my TI87 and used ZBox around the intersection. It is D.

So how is your answer wrong?

y = 1 - x3
x = 1 - y3
1 - x = y3
3√(1 - x) = y

I had a correction on your answer that was wrong because I didn't use the correct method for finding an inverse.  I just deleted that bit of my post to avoid confusion.