Hack Forums
[C#] Copy the file to AppData then close the main file then execute the copied file from.. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Copy the file to AppData then close the main file then execute the copied file from.. (/showthread.php?tid=4941804)



Copy the file to AppData then close the main file then execute the copied file from.. - DaHaxor - Aug 8, 2015

Where is the c# code of

copying the Main file (exe) into AppData folder then closes the Main file (exe), then runs the second file copied to AppData folder. Im doing this for my virus so its hard to delete / find out by the victim.

Like the concept below:
Please remove the spaces!! Thank you so much much for helping me!!
http : / / puu.sh/juLGJ/77c01d6996.png


* - Angel Beats‌‌ - Aug 8, 2015

Look up how to run a cmd with the process class and also how to get application executing path and appdata location.


* - DaHaxor - Aug 8, 2015

If this is not possible,

Is there any way to infect the files coming from the Main(Virus) exe file. ?

Like when you open the Virus it will infect the chrome.exe then once the victim open chrome.exe the virus will run again.

Possible or Not ?

Pardon me for my bad english :( Im sorry!


* - Terry A. Davis - Aug 8, 2015

(Aug 8, 2015 11:16 PM)DaHaxor Wrote:  Like when you open the Virus it will infect the chrome.exe then once the victim open chrome.exe the virus will run again.

This is called binding it is possible, just search around for binder source code, but again, I think you're gonna need admin to infect Chrome (Isn't it in Program Files) so the end user will know what you're doing.


* - DaHaxor - Aug 9, 2015

(Aug 8, 2015 11:49 PM)Perfect Cell Wrote:  This is called binding it is possible, just search around for binder source code, but again, I think you're gonna need admin to infect Chrome (Isn't it in Program Files) so the end user will know what you're doing.

Hmmm... I will try it. I guess this is the correct answer of my second problem.

How about the first one ?


* - Terry A. Davis - Aug 9, 2015

(Aug 9, 2015 05:01 AM)DaHaxor Wrote:  Hmmm... I will try it. I guess this is the correct answer of my second problem.

How about the first one ?

(Aug 8, 2015 11:15 PM)Angеl Beats Wrote:  Look up how to run a cmd with the process class and also how to get application executing path and appdata location.

Right under your post... I can't extend that further.