User Controls

I'm probably missing something but...

  1. #1
    Sophie Pedophile Tech Support
    Don't judge me too harshly i haven't been coding in C# for that long. I'm working on a trojan and as a means to get persistence i wrote this service. The idea is that it starts a portable executable as a sub process with elevated privileges. I also plan to include some stuff that allow a powershell script to interact with it but i haven't written most of that yet but as it stands my service should be ready to be compiled. I've added a manifest and settings that include means by which the operating system will authenticate the service(Which is where the elevated privileges will come from). The only issue is i get this error.


    Error CS0122 'ServiceBase.ServiceBase()' is inaccessible due to its protection level NtSecSvc
    %\%USERPROFILE%\source\repos\NtSecSvc\Service1.cs



    NtSecSvc is the namespace, i don't know what they mean with "Protection Level". Although i had an error earlier that had to do with the positioning of this function:


    public static void Main()
    {
    System.ServiceProcess.ServiceBase[] ServicesToRun;
    ServiceBase serviceBawasse = new ServiceBase();
    ServicesToRun = new System.ServiceProcess.ServiceBase[]
    {
    serviceBase
    };
    System.ServiceProcess.ServiceBase.Run(ServicesToRun);
    }


    Where they were complaining how it should be first in the class, which it was, but after tweaking a bit that error message seems to have gone away.

    In any case below is my source code. If you have any idea on what i am doing wrong i'd appreciate some insight. Been working for a while now to get this right, but i'm fresh out of ideas. Thanks in advance guys.

  2. #2
    Kev Space Nigga
    I can only give you moral support. Make the normies pay their fucking taxes for being on our turf, homie.
  3. #3
    Sophie Pedophile Tech Support
    Originally posted by Kev I can only give you moral support. Make the normies pay their fucking taxes for being on our turf, homie.

    Hmm yes. I'm working on it. But i have to work on this with Visual Studio because it is beyond the scope of .NET Core, and it's been challenging since i usually do everything on Linux. I don't get it when people say Linux is complicated, Windows is arcane as fuck under the slick UI.
  4. #4
    Kev Space Nigga
    Most people dont get past the learning curve with linux, having to memorize all kinds of commands to do simple shit that takes a few clicks with windows, but yes, as you said, it gets needlessly complicated once you get into anything beyond that.
    Are you making a botnet or something?
  5. #5
    Sophie Pedophile Tech Support
    Originally posted by Kev Most people dont get past the learning curve with linux, having to memorize all kinds of commands to do simple shit that takes a few clicks with windows, but yes, as you said, it gets needlessly complicated once you get into anything beyond that.
    Are you making a botnet or something?

    I'm always making things. Well most of the time. Did a lot of OSS stuff recently, but i got kind of bored of that. But not of coding and security in general. I'm not an expert in anything computer science related, but i am at the point that i have a pretty clear vision for what i want out of all this. Security is great, but there is something fundamental i enjoy about programming. I settled that the natural evolution of coding and offensive security leads to malware. So far it's been instructive in a lot of interesting ways.

    Also i taught myself Linux the hard way, try until you get it. As a result, i got pretty good at Bash, i have to restrain myself from banging out a shell script for all the things. Lol, you should see my github, you'd understand.
  6. #6
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  7. #7
    Kev Space Nigga
    Originally posted by Sophie I'm always making things.

    Industrious man, right on.

    I settled that the natural evolution of coding and offensive security leads to malware. So far it's been instructive in a lot of interesting ways.

    Oh shit, should I tread more carefully from now on when telling you I dont love you? I mean I do but youll never replace JoePedo in my heart. Dun DOS me bro!

    Also i taught myself Linux the hard way, try until you get it. As a result, i got pretty good at Bash, i have to restrain myself from banging out a shell script for all the things. Lol, you should see my github, you'd understand.

    wait, if you know linux, why bother programming on windows?

    Sadly for me, I cant let go of windows much like i'll never let go of our BTLC king, too much nostalgia. Windows 10 might be a nail in the coffin tho, i will not go near it. The day i get a new computer that doesnt support windows 7/8.1 is the day I might abandon winblows altogether. I said the same when vista was out but 7 saved the day, but windows 10 is even worse than 8.1.
Jump to Top