Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help Please] Changing name of a window.
Goto page Previous  1, 2, 3  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
tommmmmm
Expert Cheater
Reputation: 0

Joined: 09 Apr 2006
Posts: 147
Location: Poland

PostPosted: Fri Sep 04, 2009 1:32 pm    Post subject: Reply with quote

I wish I were paying more attention on the ASM class last year....

Making new string or dumping the esp value to a file (writting to file I had during the course so I presume I still have some usable code somewhere) requeries some data to define - which can be done in data structure section. I read first 200-300 lines of that exe file... there is no data section part.....

The real deal programms still surprise me....

I bet that within 12 hours of intensive googling I can find out answer of this. But laziness is a big sin I know...

_________________
My old signature contained a link to UCE for 822 GG MapleStory. So yeah, I decided to edit the signature....
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Sep 04, 2009 1:35 pm    Post subject: Reply with quote

you don't need 12 hours of intensive googling you just need to follow the instructions i gave

there is no need to dump esp value to a file. making new string can be done with a simple hex editor or within hex dump of ollydbg

lmao what the hell were you doing during your asm class..
Back to top
View user's profile Send private message
tommmmmm
Expert Cheater
Reputation: 0

Joined: 09 Apr 2006
Posts: 147
Location: Poland

PostPosted: Fri Sep 04, 2009 3:12 pm    Post subject: Reply with quote

I've been thinking about Java and wondering why such low lvl language as c++ still exists...
_________________
My old signature contained a link to UCE for 822 GG MapleStory. So yeah, I decided to edit the signature....
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Sep 04, 2009 3:17 pm    Post subject: Reply with quote

once it exists it's not gonna randomly pop out of existence is it ?

also c++ will be faster if you're coding native code because of the lack of the VM. of course that also means it lacks portability when compared to java but a similarly coded program would be faster in c++

http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Fri Sep 04, 2009 6:06 pm    Post subject: Reply with quote

C/C++ is usable on any other OS, assuming that you aren't using any WINAPI's.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Sep 04, 2009 6:19 pm    Post subject: Reply with quote

void:] wrote:
C/C++ is usable on any other OS, assuming that you aren't using any WINAPI's.

in terms of portability C++ is no match for Java. java code can be compiled on various systems as long as it is supported with no change in code. in most cases c++ code will require fiddling and small changes
Back to top
View user's profile Send private message
Bswap
Newbie cheater
Reputation: 0

Joined: 18 Aug 2009
Posts: 21

PostPosted: Sat Sep 05, 2009 2:21 am    Post subject: Reply with quote

Quote:
tommmmmm
Expert Cheater
Post: 146


Expert cheater who can't do basic code injection. Someone really has to consider revising his title.

So, you are unable to locate where the string is referenced in the deadlisting, it's no biggie... there are always backdoors.

Cheat solution. Code up a loader (CreateProcess) and wait for it to fully initialize (WaitForInputIdle)... then programmatically obtani a handle (FindWindow) and change window caption (SetWindowText). Terminate Loader (ExitProcess).

E.g.

Code:
.DATA

   szNotepad db "c:\windows\notepad.exe", 0
   szOldCaption db "Notepad", 0
   szNewCaption db "rainbows and lollipops...", 0

   _SI STARTUPINFO <>
   _PI PROCESS_INFORMATION <>


.CODE
START:

   invoke   CreateProcess, addr szNotepad, 0, 0, 0, 0, 0, 0, 0, ADDR _SI, ADDR _PI
   invoke   WaitForInputIdle, _PI.hProcess, INFINITE
   invoke   FindWindow, addr szOldCaption, 0
   invoke   SetWindowText, eax, addr szNewCaption
   invoke   ExitProcess, 0


END START
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Sep 05, 2009 3:33 am    Post subject: Reply with quote

Slugsnack wrote:
void:] wrote:
C/C++ is usable on any other OS, assuming that you aren't using any WINAPI's.

in terms of portability C++ is no match for Java. java code can be compiled on various systems as long as it is supported with no change in code. in most cases c++ code will require fiddling and small changes


you'd probably shit yourself if you saw mozillas portability standards.

the mozilla framework is designed to be run close to anywhere, including places that don't have access to MSVC or GCC.
Back to top
View user's profile Send private message
tommmmmm
Expert Cheater
Reputation: 0

Joined: 09 Apr 2006
Posts: 147
Location: Poland

PostPosted: Sat Sep 05, 2009 4:29 am    Post subject: Reply with quote

Bswap wrote:
Quote:
tommmmmm
Expert Cheater
Post: 146


Expert cheater who can't do basic code injection. Someone really has to consider revising his title.


:/

_________________
My old signature contained a link to UCE for 822 GG MapleStory. So yeah, I decided to edit the signature....
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Sep 05, 2009 9:24 pm    Post subject: Reply with quote

Bswap wrote:
Quote:
tommmmmm
Expert Cheater
Post: 146


Expert cheater who can't do basic code injection. Someone really has to consider revising his title.


You'll quickly learn that the forum titles are not a good measure of relative intelligence, but rather the amount of free time they have on their hands. Smile
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Sep 06, 2009 7:07 am    Post subject: Reply with quote

Slugsnack wrote:
void:] wrote:
C/C++ is usable on any other OS, assuming that you aren't using any WINAPI's.

in terms of portability C++ is no match for Java. java code can be compiled on various systems as long as it is supported with no change in code. in most cases c++ code will require fiddling and small changes


Maybe it is easier to get java to run on a toaster but you have to install the VM first and it's pretty damn big! Compare this to an 8KB C program :\. If there's an arch, there's probably a C compiler for it.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Sep 06, 2009 7:18 am    Post subject: Reply with quote

Noz3001 wrote:
Slugsnack wrote:
void:] wrote:
C/C++ is usable on any other OS, assuming that you aren't using any WINAPI's.

in terms of portability C++ is no match for Java. java code can be compiled on various systems as long as it is supported with no change in code. in most cases c++ code will require fiddling and small changes


Maybe it is easier to get java to run on a toaster but you have to install the VM first and it's pretty damn big! Compare this to an 8KB C program :\. If there's an arch, there's probably a C compiler for it.

a few decades ago the main focus of a program was its speed, size and memory usage. this was because clock cycles, HDD size and memory size were very limited commodities. the focus has since shifted very much since getting a large amount of the above has become inexpensive and common. this is the main reason why 'virtual' languages are becoming so important. the industry is inundated with .net/c#/java programmers. speed is critical in very few areas now

there is simply no need to gain the extra clock cycles these days. you can see the way the industry has headed by the demand for types of programmers. an assembly programmer is out of a job pretty fast, at least the demand for them is very low. whereas a computer science graduate with knowledge of java can get a job pretty easy

at uni, we constantly have presenters coming in from large investment banks, major computing firms, etc. and if you listen carefully you can see that extra little speed is really not what they are looking for. virtualisation, virtual languages.. everything is turning virtual now : |

good algorithm design is 'good enough' as opposed to a few decades back when people would code very carefully to make sure they avoided a particular register stall or something. actually i saw something incredible the other day when debugging a very old program the other day.. there was a conditional jump to something that was like 2 bytes ahead which appeared to be to half an instruction. i was like pfsh that gonna crash. what had happened was that it just happened that the 'half instruction' was actually the bytes for another instruction.. so it was like one instruction encoded inside another and the programmer has recognised that and taken the time to make the conditional jump there. WOW. you would never see something like that in this age
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Sep 06, 2009 2:06 pm    Post subject: Reply with quote

Yeah, I was talking about having to download the JRE before you can run any Java program. It's massive.

C doesn't have this problem.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Sep 06, 2009 4:07 pm    Post subject: Reply with quote

if you're talking about on an embedded system like a toaster then the manufacturers would be the ones loading the runtime environment onto the firmware, not quite sure what point you're trying to make. from an end user POV there would be no difference whereas from a developer POV java would probably be easier, at least if there were some code you wanted to use from another project you could do so directly with no changes
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Sep 06, 2009 7:24 pm    Post subject: Reply with quote

Slugsnack wrote:
if you're talking about on an embedded system like a toaster then the manufacturers would be the ones loading the runtime environment onto the firmware, not quite sure what point you're trying to make. from an end user POV there would be no difference whereas from a developer POV java would probably be easier, at least if there were some code you wanted to use from another project you could do so directly with no changes


Lol, what im saying is that for java you need the jre which is pretty big where c executables are as little as 3KB. This is another advantage c has.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites