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

C# 

c# modify string in compiled c#

hello
i want to ask how to modify string in compiled c#,
i donot like CODEDOM as it has limited functions!
if i compile c# application , how to make another application that change string in the first application?
looks like the stub in crypter?
I would gladly explain the whole process, but I'll link you to this video instead, it's an easy to follow guide (Made for HF even):

is that valid for big projects?
my program has big methods functions
thanks again sir for your response
(Mar 13, 2021 07:53 AM)mayar2021 Wrote:  is that valid for big projects?
my program has big methods functions
thanks again sir for your response

It's very basic but will put you in the right direction, here's an example using resources, and here's a keylogger repo that contains a stub/builder.
when i tried that video" [C#] Creating a stub & builder - Frosty"
i get the error
drive[WARNING POSSIBLY INFECTED]google.com/u/0/uc?id=1aeU3uqM0lUDC90vCy0Wp3z1vNWQfB8oe&export=download

when i tried that video" [C#] Creating a stub & builder - Frosty"
i get theerror
[img]drive[WARNING POSSIBLY INFECTED]google.com/u/0/uc?id=1aeU3uqM0lUDC90vCy0Wp3z1vNWQfB8oe&export=download[/img]
(Mar 13, 2021 09:33 AM)mayar2021 Wrote:  when i tried that video" [C#] Creating a stub & builder - Frosty"
  i get theerror
drive[WARNING POSSIBLY INFECTED]google.com/u/0/uc?id=1aeU3uqM0lUDC90vCy0Wp3z1vNWQfB8oe&export=download

when i tried that video" [C#] Creating a stub & builder - Frosty"
i get theerror
[img]drive[WARNING POSSIBLY INFECTED]google.com/u/0/uc?id=1aeU3uqM0lUDC90vCy0Wp3z1vNWQfB8oe&export=download[/img]

I'll help you out some more:

Builder/Builder.csproj

Code
<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net48</TargetFramework>
        <LangVersion>latest</LangVersion>
    </PropertyGroup>

</Project>

Builder/Program.cs

Code
using System.IO;

namespace Builder
{
    internal static class Program
    {
        private static void Main()
        {
            using var fileStream = new FileStream("Stub.exe", FileMode.Open, FileAccess.ReadWrite, FileShare.None);
            using var binaryWriter = new BinaryWriter(fileStream);
            fileStream.Position = fileStream.Length + 1;
            binaryWriter.Write("***Hello, World");
        }
    }
}

Stub/Stub.csproj

Code
<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net48</TargetFramework>
        <LangVersion>latest</LangVersion>
    </PropertyGroup>

    <ItemGroup>
      <ProjectReference Include="..\Builder\Builder.csproj" />
    </ItemGroup>

</Project>

Stub/Program.cs

Code
using System;
using System.IO;
using System.Text;

namespace Stub
{
    internal static class Program
    {
        private static void Main()
        {
            using var streamReader = new StreamReader(System.Reflection.Assembly.GetEntryAssembly()?.Location ?? throw new InvalidOperationException());
            using var binaryReader = new BinaryReader(streamReader.BaseStream);
            var stubBytes = binaryReader.ReadBytes(Convert.ToInt32(streamReader.BaseStream.Length));
            var stubSettings = Encoding.ASCII.GetString(stubBytes)
                .Substring(Encoding.ASCII.GetString(stubBytes).IndexOf("***", StringComparison.Ordinal)).Replace("***", "");
            Console.WriteLine(stubSettings);
            Console.ReadLine();
        }
    }
}
https://hackforums.net/showthread.php?tid=5904533

Got a few examples here.
fuck.
[Image: wyEbCMi.png]
Not trying to be a dick, It just comes naturally.
you are fantastic coder , good example


Possibly Related Threads...
Thread / Author Replies Views Last Post
by nucleo_type09Apr 28, 2024 06:49 AM 0 322 Apr 28, 2024 06:49 AM
Last Post: nucleo_type09
[.NET] by zlg43647Oct 28, 2022 07:06 AM 2 240 Oct 28, 2022 07:06 AM
Last Post: zlg43647
[.NET] by mayar2021Mar 14, 2021 10:21 AM 4 199 Mar 14, 2021 10:21 AM
Last Post: HFDone