From d0c978bf87c4a22acffbd830078b1953516966fd Mon Sep 17 00:00:00 2001 From: Oleksandr Honcharov <0976053529@ukr.net> Date: Fri, 7 Jun 2024 00:47:45 +0300 Subject: [PATCH] init --- files.txt | 368 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ go.mod | 3 + main.go | 80 ++++++++++++ 3 files changed, 451 insertions(+) create mode 100644 files.txt create mode 100644 go.mod create mode 100644 main.go diff --git a/files.txt b/files.txt new file mode 100644 index 0000000..89d095d --- /dev/null +++ b/files.txt @@ -0,0 +1,368 @@ +bin\bt.dat +bin\enc.dat +bin\loader.mjs +BugTrap-x64.dll +dotnet\runtime\.version +dotnet\runtime\api-ms-win-core-console-l1-1-0.dll +dotnet\runtime\api-ms-win-core-datetime-l1-1-0.dll +dotnet\runtime\api-ms-win-core-debug-l1-1-0.dll +dotnet\runtime\api-ms-win-core-errorhandling-l1-1-0.dll +dotnet\runtime\api-ms-win-core-file-l1-1-0.dll +dotnet\runtime\api-ms-win-core-file-l1-2-0.dll +dotnet\runtime\api-ms-win-core-file-l2-1-0.dll +dotnet\runtime\api-ms-win-core-handle-l1-1-0.dll +dotnet\runtime\api-ms-win-core-heap-l1-1-0.dll +dotnet\runtime\api-ms-win-core-interlocked-l1-1-0.dll +dotnet\runtime\api-ms-win-core-libraryloader-l1-1-0.dll +dotnet\runtime\api-ms-win-core-localization-l1-2-0.dll +dotnet\runtime\api-ms-win-core-memory-l1-1-0.dll +dotnet\runtime\api-ms-win-core-namedpipe-l1-1-0.dll +dotnet\runtime\api-ms-win-core-processenvironment-l1-1-0.dll +dotnet\runtime\api-ms-win-core-processthreads-l1-1-0.dll +dotnet\runtime\api-ms-win-core-processthreads-l1-1-1.dll +dotnet\runtime\api-ms-win-core-profile-l1-1-0.dll +dotnet\runtime\api-ms-win-core-rtlsupport-l1-1-0.dll +dotnet\runtime\api-ms-win-core-string-l1-1-0.dll +dotnet\runtime\api-ms-win-core-synch-l1-1-0.dll +dotnet\runtime\api-ms-win-core-synch-l1-2-0.dll +dotnet\runtime\api-ms-win-core-sysinfo-l1-1-0.dll +dotnet\runtime\api-ms-win-core-timezone-l1-1-0.dll +dotnet\runtime\api-ms-win-core-util-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-conio-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-convert-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-environment-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-filesystem-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-heap-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-locale-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-math-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-multibyte-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-private-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-process-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-runtime-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-stdio-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-string-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-time-l1-1-0.dll +dotnet\runtime\api-ms-win-crt-utility-l1-1-0.dll +dotnet\runtime\Ben.Demystifier.dll +dotnet\runtime\Bootstrapper.dll +dotnet\runtime\Bootstrapper.xml +dotnet\runtime\clrcompression.dll +dotnet\runtime\clretwrc.dll +dotnet\runtime\clrjit.dll +dotnet\runtime\Colorful.Console.dll +dotnet\runtime\coreclr.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\cs\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\dbgshim.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\de\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\es\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\fr\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\hostpolicy.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\it\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\ja\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\ko\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\MessagePack.Annotations.dll +dotnet\runtime\MessagePack.dll +dotnet\runtime\Microsoft.Bcl.AsyncInterfaces.dll +dotnet\runtime\Microsoft.Build.Tasks.CodeAnalysis.dll +dotnet\runtime\Microsoft.CodeAnalysis.CSharp.dll +dotnet\runtime\Microsoft.CodeAnalysis.CSharp.Scripting.dll +dotnet\runtime\Microsoft.CodeAnalysis.CSharp.Workspaces.dll +dotnet\runtime\Microsoft.CodeAnalysis.dll +dotnet\runtime\Microsoft.CodeAnalysis.Scripting.dll +dotnet\runtime\Microsoft.CodeAnalysis.VisualBasic.dll +dotnet\runtime\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll +dotnet\runtime\Microsoft.CodeAnalysis.Workspaces.dll +dotnet\runtime\Microsoft.CSharp.dll +dotnet\runtime\Microsoft.DiaSymReader.Native.amd64.dll +dotnet\runtime\Microsoft.DiaSymReader.Native.x86.dll +dotnet\runtime\Microsoft.NETCore.App.deps.json +dotnet\runtime\Microsoft.VisualBasic.Core.dll +dotnet\runtime\Microsoft.VisualBasic.Core.targets +dotnet\runtime\Microsoft.VisualBasic.dll +dotnet\runtime\Microsoft.Win32.Primitives.dll +dotnet\runtime\Microsoft.Win32.Registry.dll +dotnet\runtime\mscordaccore.dll +dotnet\runtime\mscordaccore_amd64_amd64_4.6.25708.001.dll +dotnet\runtime\mscordaccore_amd64_amd64_4.6.25815.002.dll +dotnet\runtime\mscordaccore_amd64_amd64_4.700.19.46205.dll +dotnet\runtime\mscordaccore_amd64_amd64_4.700.19.60701.dll +dotnet\runtime\mscordbi.dll +dotnet\runtime\mscorlib.dll +dotnet\runtime\mscorrc.debug.dll +dotnet\runtime\mscorrc.dll +dotnet\runtime\NeoSmart.Hashing.dll +dotnet\runtime\netstandard.dll +dotnet\runtime\Newtonsoft.Json.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\pl\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\pt-BR\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\ru\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\runtimes\unix\lib\netstandard1.3\System.Text.Encoding.CodePages.dll +dotnet\runtime\runtimes\win\lib\netstandard1.3\System.Text.Encoding.CodePages.dll +dotnet\runtime\sos.dll +dotnet\runtime\SOS.NETCore.dll +dotnet\runtime\sos_amd64_amd64_4.6.25708.001.dll +dotnet\runtime\sos_amd64_amd64_4.6.25815.002.dll +dotnet\runtime\SOS_README.md +dotnet\runtime\Standart.Hash.xxHash.dll +dotnet\runtime\System.AppContext.dll +dotnet\runtime\System.Buffers.dll +dotnet\runtime\System.Collections.Concurrent.dll +dotnet\runtime\System.Collections.dll +dotnet\runtime\System.Collections.Immutable.dll +dotnet\runtime\System.Collections.NonGeneric.dll +dotnet\runtime\System.Collections.Specialized.dll +dotnet\runtime\System.ComponentModel.Annotations.dll +dotnet\runtime\System.ComponentModel.Composition.dll +dotnet\runtime\System.ComponentModel.DataAnnotations.dll +dotnet\runtime\System.ComponentModel.dll +dotnet\runtime\System.ComponentModel.EventBasedAsync.dll +dotnet\runtime\System.ComponentModel.Primitives.dll +dotnet\runtime\System.ComponentModel.TypeConverter.dll +dotnet\runtime\System.Composition.AttributedModel.dll +dotnet\runtime\System.Composition.Convention.dll +dotnet\runtime\System.Composition.Hosting.dll +dotnet\runtime\System.Composition.Runtime.dll +dotnet\runtime\System.Composition.TypedParts.dll +dotnet\runtime\System.Configuration.dll +dotnet\runtime\System.Console.dll +dotnet\runtime\System.Core.dll +dotnet\runtime\System.Data.Common.dll +dotnet\runtime\System.Data.DataSetExtensions.dll +dotnet\runtime\System.Data.dll +dotnet\runtime\System.Diagnostics.Contracts.dll +dotnet\runtime\System.Diagnostics.Debug.dll +dotnet\runtime\System.Diagnostics.DiagnosticSource.dll +dotnet\runtime\System.Diagnostics.FileVersionInfo.dll +dotnet\runtime\System.Diagnostics.Process.dll +dotnet\runtime\System.Diagnostics.StackTrace.dll +dotnet\runtime\System.Diagnostics.TextWriterTraceListener.dll +dotnet\runtime\System.Diagnostics.Tools.dll +dotnet\runtime\System.Diagnostics.TraceSource.dll +dotnet\runtime\System.Diagnostics.Tracing.dll +dotnet\runtime\System.dll +dotnet\runtime\System.Drawing.dll +dotnet\runtime\System.Drawing.Primitives.dll +dotnet\runtime\System.Dynamic.Runtime.dll +dotnet\runtime\System.Globalization.Calendars.dll +dotnet\runtime\System.Globalization.dll +dotnet\runtime\System.Globalization.Extensions.dll +dotnet\runtime\System.IO.Compression.Brotli.dll +dotnet\runtime\System.IO.Compression.dll +dotnet\runtime\System.IO.Compression.FileSystem.dll +dotnet\runtime\System.IO.Compression.ZipFile.dll +dotnet\runtime\System.IO.dll +dotnet\runtime\System.IO.FileSystem.AccessControl.dll +dotnet\runtime\System.IO.FileSystem.dll +dotnet\runtime\System.IO.FileSystem.DriveInfo.dll +dotnet\runtime\System.IO.FileSystem.Primitives.dll +dotnet\runtime\System.IO.FileSystem.Watcher.dll +dotnet\runtime\System.IO.IsolatedStorage.dll +dotnet\runtime\System.IO.MemoryMappedFiles.dll +dotnet\runtime\System.IO.Pipes.AccessControl.dll +dotnet\runtime\System.IO.Pipes.dll +dotnet\runtime\System.IO.UnmanagedMemoryStream.dll +dotnet\runtime\System.Linq.dll +dotnet\runtime\System.Linq.Expressions.dll +dotnet\runtime\System.Linq.Parallel.dll +dotnet\runtime\System.Linq.Queryable.dll +dotnet\runtime\System.Memory.dll +dotnet\runtime\System.Net.dll +dotnet\runtime\System.Net.Http.dll +dotnet\runtime\System.Net.HttpListener.dll +dotnet\runtime\System.Net.Mail.dll +dotnet\runtime\System.Net.NameResolution.dll +dotnet\runtime\System.Net.NetworkInformation.dll +dotnet\runtime\System.Net.Ping.dll +dotnet\runtime\System.Net.Primitives.dll +dotnet\runtime\System.Net.Requests.dll +dotnet\runtime\System.Net.Security.dll +dotnet\runtime\System.Net.ServicePoint.dll +dotnet\runtime\System.Net.Sockets.dll +dotnet\runtime\System.Net.WebClient.dll +dotnet\runtime\System.Net.WebHeaderCollection.dll +dotnet\runtime\System.Net.WebProxy.dll +dotnet\runtime\System.Net.WebSockets.Client.dll +dotnet\runtime\System.Net.WebSockets.dll +dotnet\runtime\System.Numerics.dll +dotnet\runtime\System.Numerics.Vectors.dll +dotnet\runtime\System.ObjectModel.dll +dotnet\runtime\System.Private.CoreLib.dll +dotnet\runtime\System.Private.DataContractSerialization.dll +dotnet\runtime\System.Private.Uri.dll +dotnet\runtime\System.Private.Xml.dll +dotnet\runtime\System.Private.Xml.Linq.dll +dotnet\runtime\System.Reflection.DispatchProxy.dll +dotnet\runtime\System.Reflection.dll +dotnet\runtime\System.Reflection.Emit.dll +dotnet\runtime\System.Reflection.Emit.ILGeneration.dll +dotnet\runtime\System.Reflection.Emit.Lightweight.dll +dotnet\runtime\System.Reflection.Extensions.dll +dotnet\runtime\System.Reflection.Metadata.dll +dotnet\runtime\System.Reflection.Primitives.dll +dotnet\runtime\System.Reflection.TypeExtensions.dll +dotnet\runtime\System.Resources.Reader.dll +dotnet\runtime\System.Resources.ResourceManager.dll +dotnet\runtime\System.Resources.Writer.dll +dotnet\runtime\System.Runtime.CompilerServices.Unsafe.dll +dotnet\runtime\System.Runtime.CompilerServices.VisualC.dll +dotnet\runtime\System.Runtime.dll +dotnet\runtime\System.Runtime.Extensions.dll +dotnet\runtime\System.Runtime.Handles.dll +dotnet\runtime\System.Runtime.InteropServices.dll +dotnet\runtime\System.Runtime.InteropServices.RuntimeInformation.dll +dotnet\runtime\System.Runtime.InteropServices.WindowsRuntime.dll +dotnet\runtime\System.Runtime.Intrinsics.dll +dotnet\runtime\System.Runtime.Loader.dll +dotnet\runtime\System.Runtime.Numerics.dll +dotnet\runtime\System.Runtime.Serialization.dll +dotnet\runtime\System.Runtime.Serialization.Formatters.dll +dotnet\runtime\System.Runtime.Serialization.Json.dll +dotnet\runtime\System.Runtime.Serialization.Primitives.dll +dotnet\runtime\System.Runtime.Serialization.Xml.dll +dotnet\runtime\System.Runtime.WindowsRuntime.dll +dotnet\runtime\System.Runtime.WindowsRuntime.UI.Xaml.dll +dotnet\runtime\System.Security.AccessControl.dll +dotnet\runtime\System.Security.Claims.dll +dotnet\runtime\System.Security.Cryptography.Algorithms.dll +dotnet\runtime\System.Security.Cryptography.Cng.dll +dotnet\runtime\System.Security.Cryptography.Csp.dll +dotnet\runtime\System.Security.Cryptography.Encoding.dll +dotnet\runtime\System.Security.Cryptography.OpenSsl.dll +dotnet\runtime\System.Security.Cryptography.Primitives.dll +dotnet\runtime\System.Security.Cryptography.X509Certificates.dll +dotnet\runtime\System.Security.dll +dotnet\runtime\System.Security.Principal.dll +dotnet\runtime\System.Security.Principal.Windows.dll +dotnet\runtime\System.Security.SecureString.dll +dotnet\runtime\System.ServiceModel.Web.dll +dotnet\runtime\System.ServiceProcess.dll +dotnet\runtime\System.Text.Encoding.CodePages.dll +dotnet\runtime\System.Text.Encoding.dll +dotnet\runtime\System.Text.Encoding.Extensions.dll +dotnet\runtime\System.Text.Encodings.Web.dll +dotnet\runtime\System.Text.Json.dll +dotnet\runtime\System.Text.RegularExpressions.dll +dotnet\runtime\System.Threading.Channels.dll +dotnet\runtime\System.Threading.dll +dotnet\runtime\System.Threading.Overlapped.dll +dotnet\runtime\System.Threading.Tasks.Dataflow.dll +dotnet\runtime\System.Threading.Tasks.dll +dotnet\runtime\System.Threading.Tasks.Extensions.dll +dotnet\runtime\System.Threading.Tasks.Parallel.dll +dotnet\runtime\System.Threading.Thread.dll +dotnet\runtime\System.Threading.ThreadPool.dll +dotnet\runtime\System.Threading.Timer.dll +dotnet\runtime\System.Transactions.dll +dotnet\runtime\System.Transactions.Local.dll +dotnet\runtime\System.ValueTuple.dll +dotnet\runtime\System.Web.dll +dotnet\runtime\System.Web.HttpUtility.dll +dotnet\runtime\System.Windows.dll +dotnet\runtime\System.Xml.dll +dotnet\runtime\System.Xml.Linq.dll +dotnet\runtime\System.Xml.ReaderWriter.dll +dotnet\runtime\System.Xml.Serialization.dll +dotnet\runtime\System.Xml.XDocument.dll +dotnet\runtime\System.Xml.XmlDocument.dll +dotnet\runtime\System.Xml.XmlSerializer.dll +dotnet\runtime\System.Xml.XPath.dll +dotnet\runtime\System.Xml.XPath.XDocument.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\tr\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\ucrtbase.dll +dotnet\runtime\WindowsBase.dll +dotnet\runtime\xxHash.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\zh-Hans\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.CSharp.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.Scripting.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.VisualBasic.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.VisualBasic.Workspaces.resources.dll +dotnet\runtime\zh-Hant\Microsoft.CodeAnalysis.Workspaces.resources.dll +dotnet\vehicleData.json +ragemp-server.exe \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..9a9693e --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module main + +go 1.22.4 diff --git a/main.go b/main.go new file mode 100644 index 0000000..05c022d --- /dev/null +++ b/main.go @@ -0,0 +1,80 @@ +package main + +import ( + "bufio" + "bytes" + _ "embed" + "fmt" + "io" + "net/http" + "os" + "path/filepath" + "strings" + "sync" +) + +//go:embed files.txt +var fileData []byte + +func main() { + baseURL := "https://cdn.rage.mp/updater/prerelease_server/server-files/" + + var wg sync.WaitGroup // WaitGroup for synchronization + + scanner := bufio.NewScanner(bytes.NewReader(fileData)) + for scanner.Scan() { + filePath := scanner.Text() + + filePath = strings.ReplaceAll(filePath, "\\", "/") + + // 1. Determine Download URL + var downloadURL string = baseURL + filePath + + fmt.Println("download path", downloadURL) + wg.Add(1) // Increment WaitGroup counter + + go func(filePath, downloadURL string) { // Use goroutine for concurrent download + defer wg.Done() // Decrement WaitGroup counter when done + + // 2. Download and Save the File + response, err := http.Get(downloadURL) + if err != nil { + fmt.Println("Error downloading file:", err, filePath) + return + } + defer response.Body.Close() + + // --- CREATE SUBDIRECTORIES IF NECESSARY --- + fullSavePath := filePath // Maintain the original file path with subdirectories + if !strings.Contains(filePath, ".") { // If it's a directory, append a separator + fullSavePath += "/" + } + dir := filepath.Dir(fullSavePath) // Get the directory part + if _, err := os.Stat(dir); os.IsNotExist(err) { + os.MkdirAll(dir, 0755) // Create all missing directories + } + + outFile, err := os.OpenFile(fullSavePath, os.O_CREATE|os.O_RDWR, 0644) + if err != nil { + fmt.Println("Error creating file:", err, filePath) + return + } + defer outFile.Close() + + _, err = io.Copy(outFile, response.Body) + if err != nil { + fmt.Println("Error copying file:", err, filePath) + return + } + outFile.Sync() + + fmt.Println("Downloaded:", filePath) + }(filePath, downloadURL) // Pass arguments to the goroutine + } + + wg.Wait() // Wait for all downloads to complete + + if err := scanner.Err(); err != nil { + fmt.Println("Error reading file:", err) + } +}