Put signposts back into the trap into the fake files

.env, JSON, YAML, SQL and Git config carry URLs marked with the serving
catch, so a later request shows where the address came from. MCP exposes
the marker. Switch: Flypaper__Drip__Signposts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-26 21:24:04 +01:00
1 parent 7c11bf211e
commit 302b40c172
14 files changed
+199 -27

No files matched your search

+10 -1
View File
@@ -1,5 +1,6 @@
using System.Globalization;
using Flypaper.Core.Models;
using Flypaper.Core.Strategies;
using Flypaper.Storage.Entities;
using Microsoft.EntityFrameworkCore;
@@ -61,6 +62,13 @@ public sealed class CatchQueries(IDbContextFactory<FlypaperDbContext> dbContextF
events = events.Where(e => e.Target != null && e.Target.ToLower().Contains(text));
}
if (!string.IsNullOrWhiteSpace(filter.Marker))
{
var marker = filter.Marker.Trim();
var prefix = $"{marker[..8]}-{marker[8..]}%";
events = events.Where(e => EF.Functions.Like(e.SessionId.ToString(), prefix));
}
var rows = await events.OrderByDescending(e => e.StartedAt).ThenByDescending(e => e.Id).Take(Clamp(filter.Limit)).ToListAsync(ct);
return rows.Select(ToRecord).ToList();
}
@@ -176,7 +184,8 @@ public sealed class CatchQueries(IDbContextFactory<FlypaperDbContext> dbContextF
e.Asn,
e.Provider,
e.Target,
e.ClientInfo);
e.ClientInfo,
SignpostLinks.MarkerOf(e.SessionId));
private sealed class TopRow
{