Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2005, 13:05
Eskimobob
 
Posts: n/a
I have a couple programs that use the loopback funtion on defined ports to check to see if there's a copy of the program running. I suspect if they really wanted to do it this way the program could have to statically defined ports (bad Idea in general) and it could check them both to see if there's a copy. If a message is sent it replies.

Concerning:
"(firewall blocking doesnt seem like an option!)" -- Are we speaking of every firewall or the external only firewalls.

Have you tried to block the process from sending out a message? I mean some programs such as ZoneAlarm and other internal firewalls can control the ability for a program to send any messages across any ports.
You could also try to block the port that it's sending information through after it's open.
Reply With Quote
  #2  
Old 04-06-2005, 22:35
visu
 
Posts: n/a
There are various possibilities of detecting multiple instances, some also includes kernel objects. Using network is not really a smart solution and unlikely to be used.

Also have a look here

hxxp://www.codeproject.com/cpp/avoidmultinstance.asp
hxxp://www.flounder.com/nomultiples.htm

By the way, which application is that ?

Visu
Reply With Quote
  #3  
Old 04-09-2005, 02:56
just4urim
 
Posts: n/a
As "Visu" said , there're various possibilities of detecting multiple instances . One of these coul be a semaphor declaration . To avoid runing of another instances , you can declar a semaphor with special name and at the bigining just create your named semaphor and if the API return by ALLREADY_EXIST error , it shows that another instance has been run later .
Reply With Quote
Reply

Thread Tools
Display Modes

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
Starting a debugging session with Flexlm lmgrd and a vendor specific daemon zaratustra General Discussion 14 12-30-2005 19:55
beating IsDebuggerPresent for my unpacker 0x539 General Discussion 14 03-02-2005 05:01


All times are GMT +8. The time now is 09:24.


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