Creating shortcut for a c application

  • Thread starter Thread starter kthouz
  • Start date Start date
  • Tags Tags
    Application
Click For Summary

Discussion Overview

The discussion revolves around the technical aspects of executing a C application automatically when a folder containing it is opened. Participants explore the feasibility of this action, touching on concepts related to executable behavior, Windows registry settings, and potential security implications.

Discussion Character

  • Debate/contested
  • Technical explanation

Main Points Raised

  • One participant expresses a desire to create a C application that runs automatically when a folder is opened, seeking guidance on how to achieve this.
  • Another participant raises ethical concerns, suggesting that the community may not be inclined to assist in writing potentially malicious code.
  • Some participants assert that executables cannot run simply by opening a folder, noting that hidden file extensions and deceptive icons could be involved in misleading users.
  • There are claims that Windows registry settings might allow for certain programs to run at startup, but not specifically upon opening a folder.
  • One participant mentions that the registry is accessed frequently when a folder is opened, implying there could be opportunities for exploits, though this remains speculative.

Areas of Agreement / Disagreement

Participants generally disagree on the possibility of automatically executing a program upon opening a folder, with some asserting it is not feasible while others suggest potential methods through registry manipulation.

Contextual Notes

Participants mention the limitations of the discussion, particularly regarding the ethical implications of creating such functionality and the specific conditions under which executables can run.

kthouz
Messages
188
Reaction score
0
I was trying to understand how those kind of virus run immediately when you open a folder whcih contains it.
I wrote a simple c application that writes my name in a certain location on my computer and now i want to know how i can do so that when i open the folder which contains that c application then this one runs immeditely. I am thinkin about creatin an shortcut icon but i don't know how.
so if anyone else got a clue let me know.
 
Technology news on Phys.org
I'm not sure folks here want to teach you how to write malicious code.

If you're really into this kinda thing try phrack.com
 
No. The executable can only execute if it's ran. Opening a folder will never run an executable. Now, hidden file extensions and deceptive file icons are a different story...
 
The Windows registry undoubtedly has settings that could be used to do that.
 
CRGreathouse said:
The Windows registry undoubtedly has settings that could be used to do that.

You can get it to run a particular program on startup, but not automatically run a program on opening a folder.

(Not talking about autorun feature upon disc insertion.)
 
KTC said:
You can get it to run a particular program on startup, but not automatically run a program on opening a folder.

(Not talking about autorun feature upon disc insertion.)

The registry is queried thousands of times when a folder is opened. There are lots of opportunities there.

At the very least you could tag along when any program is started; there's a setting for that. It's an exploit on some worms I've cleaned.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 8 ·
Replies
8
Views
1K