靶机服务端(适用于Linux系统控制靶机的情况)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
810 B

4 weeks ago
using TargetService.Components;
4 weeks ago
using EGFramework;
EGBlazorController MainApp = new EGBlazorController();
MainApp.Init();
MainApp.Start();
4 weeks ago
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
4 weeks ago
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
4 weeks ago
}
4 weeks ago
app.UseHttpsRedirection();
4 weeks ago
app.UseStaticFiles();
app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
4 weeks ago
app.Run("http://0.0.0.0:6556");