Creating shortcut for a c application

  • Thread starter Thread starter kthouz
  • Start date Start date
  • Tags Tags
    Application
AI Thread Summary
The discussion revolves around the mechanics of how viruses can execute upon opening a folder. A user seeks to create a C application that runs automatically when the folder containing it is opened. However, it is clarified that executables do not run simply by opening a folder; they must be executed manually. The conversation touches on the potential for using hidden file extensions and deceptive icons to trick users, as well as the Windows registry, which has settings that could theoretically allow for certain programs to run at startup or in response to other triggers. Despite these insights, there is a consensus that directly running a program upon folder access is not feasible without user interaction. The topic also hints at the existence of exploits used by malware, but the focus remains on the limitations of folder interactions in executing applications.
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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top