Hack Forums
[.NET] Visual Basics: .EXE Compiler Module - 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: [.NET] Visual Basics: .EXE Compiler Module (/showthread.php?tid=5821030)



Visual Basics: .EXE Compiler Module - Thresh - Apr 5, 2018

This can be used for a crypter for example.   😉

Source: bit. ly/2Ixr3NQ


Code
Imports System.CodeDom.Compiler
Public Class iCompiler

   Public Shared Sub GenerateExecutable(ByVal Output As String, ByVal Source As String, ByVal Icon As String)
       On Error Resume Next

       Dim Compiler As ICodeCompiler = (New VBCodeProvider).CreateCompiler()
       Dim Parameters As New CompilerParameters()
       Dim cResults As CompilerResults

       Parameters.GenerateExecutable = True
       Parameters.OutputAssembly = Output
       Parameters.CompilerOptions = "/target:winexe"
       Parameters.ReferencedAssemblies.Add("System.dll")
       Parameters.ReferencedAssemblies.Add("System.Data.dll")
       Parameters.ReferencedAssemblies.Add("System.Windows.Forms.dll")

       Dim Version = New Dictionary(Of String, String)
       Version.Add("CompilerVersion", "v2.0")

       Parameters.CompilerOptions = "/filealign:0x00000200 /optimize+ /platform:X86 /debug- /target:winexe"

       Dim ICO As String = IO.Path.GetTempPath & "\iCompiler.ico"

       If Icon <> "" Then
           IO.File.Copy(Icon, ICO)
           Parameters.CompilerOptions &= " /win32icon:" & ICO
       End If

       cResults = Compiler.CompileAssemblyFromSource(Parameters, Source)

       If cResults.Errors.Count > 0 Then
           For Each CompilerError In cResults.Errors
               MessageBox.Show("Error: " & CompilerError.ErrorText, "", MessageBoxButtons.OK, MessageBoxIcon.Error)
           Next
       ElseIf cResults.Errors.Count = 0 Then

       End If
       If Icon <> "" Then : IO.File.Delete(ICO) : End If
   End Sub
End Class



RE: Visual Basics: .EXE Compiler Module - adenfr - Apr 5, 2018

goooooooooood thanks bro for the source


RE: Visual Basics: .EXE Compiler Module - Ninja - Apr 5, 2018

Nice. Now we will see more crypters on the market next week.


RE: Visual Basics: .EXE Compiler Module - zeroexp - Apr 5, 2018

https://github.com/malwares/Crypter/blob/master/%5BVB.Net%5D%20ForcedHacking%20Crypter%20Source/ForcedHacking/ForcedHacking/iCompiler.vb

Link source.


RE: Visual Basics: .EXE Compiler Module - Ninja - Apr 5, 2018

(Apr 5, 2018 01:57 PM)Wops Wrote:  https://github.com/malwares/Crypter/blob/master/%5BVB.Net%5D%20ForcedHacking%20Crypter%20Source/ForcedHacking/ForcedHacking/iCompiler.vb

Link source.

So no new crypters on the market? Feels sad man... :^(


RE: Visual Basics: .EXE Compiler Module - Aristocles - Apr 5, 2018

(Apr 5, 2018 02:43 PM)Ninja Wrote:  So no new crypters on the market? Feels sad man... :^(

This method is 100% detected as of now, it has been used more than 5 years ago.


RE: Visual Basics: .EXE Compiler Module - RudolphC - Apr 6, 2018

(Apr 5, 2018 08:58 PM)Martin Heidegger Wrote:  This method is 100% detected as of now, it has been used more than 5 years ago.

Oh really? I though this was clean and undetected as fuck


RE: Visual Basics: .EXE Compiler Module - Ninja - Apr 6, 2018

(Apr 5, 2018 08:58 PM)Martin Heidegger Wrote:  This method is 100% detected as of now, it has been used more than 5 years ago.

I was being sarcastic broski


RE: Visual Basics: .EXE Compiler Module - ubbelol - Apr 8, 2018

(Apr 5, 2018 08:58 PM)Martin Heidegger Wrote:  This method is 100% detected as of now, it has been used more than 5 years ago.

Compiling with csc/vbc is detected?


RE: Visual Basics: .EXE Compiler Module - Washi - Apr 8, 2018

(Apr 8, 2018 02:52 AM)ubbelol Wrote:  Compiling with csc/vbc is detected?

Seems like it. Your best bet is to uninstall Visual Studio and stop coding in .NET all together. We're all doomed.