Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2005, 00:28
aldente aldente is offline
VIP
 
Join Date: Jul 2003
Posts: 266
Rept. Given: 27
Rept. Rcvd 7 Times in 5 Posts
Thanks Given: 35
Thanks Rcvd at 10 Times in 9 Posts
aldente Reputation: 7
Programs kills itself - how to avoid that?

Hello!

There is a software NAT router (http://www.nat32.com/download/nat32e.zip) which demo-version is limited by a maximum runtime of one hour. After that, the program terminates itself.

I played around in WDASM and searched for all calls to Kernel32.ExitProcess, but that was no real help. There is also a call to SetTimer, but I had no success with that either.

The programs kills itself after one hour - manipulating the system clock does not help.

Are there any other ways to delay an action for one hour? How does a program end itself (is there anything I can have a look for)?


Or maybe even someone of you may have a look at NAT32 directly...
Reply With Quote
  #2  
Old 09-17-2005, 00:50
cyberbob's Avatar
cyberbob cyberbob is offline
VIP
 
Join Date: Aug 2004
Posts: 93
Rept. Given: 23
Rept. Rcvd 118 Times in 28 Posts
Thanks Given: 6
Thanks Rcvd at 30 Times in 14 Posts
cyberbob Reputation: 100-199 cyberbob Reputation: 100-199
Quote:
Originally Posted by Big_or_what
How does a program end itself (is there anything I can have a look for)?
Maybe try to look for:
Sleep
GetCurrentProcessId
OpenProcess
TerminateProcess
Reply With Quote
  #3  
Old 09-17-2005, 01:13
sapu
 
Posts: n/a
Try giving a look also for:
PostQuitMessage
PostMessage(WM_QUIT/WM_CLOSE/WM_DESTROY)
EndDialog

Using an API Monitor program will probably make your life easier.
A nice one should be found on: hxxp://www.rohitab.com/apimonitor
Reply With Quote
  #4  
Old 09-17-2005, 01:51
baatazu
 
Posts: n/a
or a nice trick, TerminateThread. I have seen some programs terminating themself by killing its own threads one-by-one using TerminateThread
Reply With Quote
  #5  
Old 09-17-2005, 05:19
aldente aldente is offline
VIP
 
Join Date: Jul 2003
Posts: 266
Rept. Given: 27
Rept. Rcvd 7 Times in 5 Posts
Thanks Given: 35
Thanks Rcvd at 10 Times in 9 Posts
aldente Reputation: 7
OK, User32.PostQuitMessage is called before termination, I guess this was a great help for my further research.

Thank you all for your help!
Reply With Quote
  #6  
Old 09-17-2005, 20:13
condzero
 
Posts: n/a
Maybe possible that prog does GetTickCount. Moves initial value to some data field. Then repeats GetTickCount at specified intervals comparing new value with old. Just a thought.
Reply With Quote
  #7  
Old 09-18-2005, 22:56
hosiminh hosiminh is offline
Friend
 
Join Date: Aug 2004
Posts: 203
Rept. Given: 2
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 0
Thanks Rcvd at 4 Times in 4 Posts
hosiminh Reputation: 1
hxxp://www.diamondcs.com.au/freeutilities/apt-techniques.php
Reply With Quote
  #8  
Old 09-20-2005, 00:11
pluscontrol
 
Posts: n/a
try with:

softsnoop by yoda
"SoftSnoop is a small debugger which uses the Debug API's to show the normal debug events but SoftSnoop is also able to spy API calls."
h++p://y0da.cjb.net/
h++p://scifi.pages.at/yoda9k/files/SS13.zip

autodebug
"Automatic recording input parameters and output result of the traced APIs in the target program. not need to rebuild the source code, you can monitor the input and output of APIs."
h++p://www.autodebug.com/download.php
Reply With Quote
  #9  
Old 09-21-2005, 02:57
aldente aldente is offline
VIP
 
Join Date: Jul 2003
Posts: 266
Rept. Given: 27
Rept. Rcvd 7 Times in 5 Posts
Thanks Given: 35
Thanks Rcvd at 10 Times in 9 Posts
aldente Reputation: 7
Quote:
Originally Posted by pluscontrol
autodebug
"Automatic recording input parameters and output result of the traced APIs in the target program. not need to rebuild the source code, you can monitor the input and output of APIs."
h++p://www.autodebug.com/download.php
looks quite interesting...

you got a working keygen for that? the one i found causes the newer versions to kill themselves ( )...
Reply With Quote
  #10  
Old 09-22-2005, 04:15
pluscontrol
 
Posts: n/a
Quote:
Originally Posted by Big_or_what
looks quite interesting...

you got a working keygen for that? the one i found causes the newer versions to kill themselves ( )...


I have an old version, i have version 3..... tell me if you want it.
Reply With Quote
  #11  
Old 09-22-2005, 11:15
nskSem
 
Posts: n/a
May be: than stack is aligned, used "ret" -> after system calls "ExitThread".

Process may generate exception and catch it, and in SEH jump onto "exit place" in system dll's.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
avoid rapishare.de waiting Shub-Nigurrath General Discussion 52 04-03-2005 11:57
How to avoid RAR corruption? Rhodium General Discussion 3 10-27-2003 03:20
SoftIce kills Mouse aldente General Discussion 11 09-03-2003 16:13


All times are GMT +8. The time now is 23:56.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )