![]() |
|
[C#] I'm trying to add startup to my runPE - 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#] I'm trying to add startup to my runPE (/showthread.php?tid=6064930) |
I'm trying to add startup to my runPE - ArcticSlay - Apr 8, 2020 When I am trying to add startup to my RunPE and make the file attributes hidden it doesn't work... Any help? Or where/how should I declare it to take this effect? Code public struct AddToStartupI also have a result of my scan result with basic obfuscation and was curious if I can have more help. https://antiscan.me/scan/new/result?id=O4mSeqkuMdpf RE: I'm trying to add startup to my runPE - VisualSoft - Apr 9, 2020 You can have a look at my source I just released : https://hackforums.net/showthread.php?tid=6064508 RE: I'm trying to add startup to my runPE - ArcticSlay - Apr 9, 2020 (Apr 9, 2020 01:39 AM)VisualSoft Wrote: You can have a look at my source I just released : https://hackforums.net/showthread.php?tid=6064508 I was actually trying to look at this source but couldn't get the whole source lol! It looks very nice with anther encryption and the startup. RE: I'm trying to add startup to my runPE - __Digital__ - Apr 11, 2020 using Microsoft.Win32; RegistryKey hwApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);// change to LocalMachine if you want to run it for all users string hwAppPath = Application.ExecutablePath.ToString(); // You can set any exe's full path here. hwApp.SetValue("HelloWorld", hwAppPath); RE: I'm trying to add startup to my runPE - ArcticSlay - Apr 12, 2020 Update: I got it to add to startup with your help and some looking over from other peoples code, I have it on the local machine, it shows up in the task manager startup and can be enabled, next ill try and hide the file with FileInfo Info = new FileInfo(Application.ExecutablePath) Info.Attributes = FileAttributes.Hidden; RE: I'm trying to add startup to my runPE - Obistone - Apr 12, 2020 (Apr 12, 2020 09:30 PM)ArcticSlay Wrote: Update: I got it to add to startup with your help and some looking over from other peoples code, I have it on the local machine, it shows up in the task manager startup and can be enabled, next ill try and hide the file with FileInfo Info = new FileInfo(Application.ExecutablePath) Info.Attributes = FileAttributes.Hidden; Are you trying to hide the file itself or the file's startup entry? RE: I'm trying to add startup to my runPE - ArcticSlay - Apr 13, 2020 (Apr 12, 2020 11:07 PM)Obistone Wrote: Are you trying to hide the file itself or the file's startup entry? The file itself/startup, I was taking it through trying to add a public class then calling to it but still no update, it runs on startup but can be removed by the user through task manager as they can see it in the processes. RE: I'm trying to add startup to my runPE - Mohinder - Apr 13, 2020 (Apr 13, 2020 12:31 AM)ArcticSlay Wrote: The file itself/startup, I was taking it through trying to add a public class then calling to it but still no update, it runs on startup but can be removed by the user through task manager as they can see it in the processes. You could check either your file has still persistence. If not.. add it again. |