Giter Club home page Giter Club logo

yetanotherobfuscator's Introduction

yetAnotherObfuscator

A C# obfuscator tool that can bypass Windows Defender antivirus. I made this tool mainly as an excuse to learn more about C# and how obfuscators function.

This is an alpha release, so expect some nice bugs.

image info

Usage:

Drag drop the C# exe into yetAnotherObfuscator.exe Or provide the C# exe as an argument:

.\yetAnotherObfuscator.exe <PATH_TO_EXE>

Contributors โœจ

@Resit

yetanotherobfuscator's People

Contributors

0xb11a1 avatar arstoahrta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yetanotherobfuscator's Issues

Seatbelt unable to properly resolve type 'Seatbelt.Commands.LolbasCommand+LolbasDTO'

Tested w/ SeatBelt. Just did a basic clone of this project and SeatBelt, compiled both, then copied SeatBelt.exe into the directory. Output is below. Looks to fail when attempting to resolve 'Seatbelt.Commands.LolbasCommand'.

PS C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug> ls


    Directory: C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----          6/6/2023  12:18 PM                app.publish
-a----        11/19/2022   7:46 AM        1167872 dnlib.dll
-a----        11/19/2022   7:46 AM        1854717 dnlib.xml
-a----         4/12/2023   6:25 PM         697856 Seatbelt.exe
-a----          6/6/2023  12:18 PM           1884 yetAnotherObfuscator.application
-a----          6/6/2023  12:18 PM          12288 yetAnotherObfuscator.exe
-a----          6/6/2023  12:17 PM            272 yetAnotherObfuscator.exe.config
-a----          6/6/2023  12:18 PM           5302 yetAnotherObfuscator.exe.manifest
-a----          6/6/2023  12:18 PM          34304 yetAnotherObfuscator.pdb


PS C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug> $(ls .\Seatbelt.exe).fullname
C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug\Seatbelt.exe
PS C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug>
PS C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug>
PS C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug> .\yetAnotherObfuscator.exe        
  __    __  ______  _____
 /\ \  /\ \/\  _  \/\  __`\
 \ `\`\\/'/\ \ \L\ \ \ \/\ \
  `\ `\ /'  \ \  __ \ \ \ \ \
    `\ \ \   \ \ \/\ \ \ \_\ \
      \ \_\   \ \_\ \_\ \_____\
       \/_/    \/_/\/_/\/_____/
Enter exe path: C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug\Seatbelt.exe
[+] Working on: C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug\Seatbelt.exe
[+] Injecting the decryption method
[+] Encrypting all strings with encryption key: uvRT5AELd8uSvpZm6prD5NtWRqYKwnlGr2cLcCCaIc
[+] Changing classes names
[+] Saving the obfuscated file
[+] Changing exe GUID if it exists
[+] All done, the obfuscated exe in: C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug\Seatbelt.exe._obf.exe

PS C:\Dev\C#\yetAnotherObfuscator\yetAnotherObfuscator\bin\Debug> .\Seatbelt.exe._obf.exe
Unhandled terminating exception: System.TypeLoadException: Could not load type 'Seatbelt.Commands.LolbasCommand+LolbasDTO' from assembly 'Seatbelt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
   at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit)
   at Seatbelt.Output.Sinks.VGV4dE91dHB1dFNpbmtB.InitializeCustomTextFormatters()
   at Seatbelt.Output.Sinks.VGV4dE91dHB1dFNpbmtB..ctor(SVRleHRXcml0ZXJB writer, Boolean filterResults)
   at Seatbelt.U2VhdGJlbHRB.OutputSinkFromArgs(String outputFileArg)
   at Seatbelt.U2VhdGJlbHRB..ctor(String[] args)
   at Seatbelt.UHJvZ3JhbUFB.Main(String[] args)

GUID not found

Hi, first of all, thank you for your hard work.
Second of all, I'm not very smart.
I would like to know why this error GUID not found ?
123

Unhandled Exception: System.BadImageFormatException

Is this not compatible for .NET Core or console app? or just .NET Framework app?

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'file:///D:\app.exe' or one of its dependencies. The module was expected to contain an assembly manifest.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at yetAnotherObfuscator.Program.Main(String[] args) in D:\yetAnotherObfuscator\yetAnotherObfuscator\Program.cs:line 26

Resource isn't renamed

I got an exception because a resource isn't renamed
System.Resources.MissingManifestResourceException

Hmmm

just convert string to Base64 , ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.