Add Hikvision and WordPress login decoy profiles
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
13468bbdf9
commit
aeafaa71a8
5 files changed
+67
-3
No files matched your search
@@ -17,6 +17,8 @@ public static class FileContent
|
||||
[
|
||||
new("git-drip", "text/plain; charset=utf-8", path => path.Contains("/.git/", StringComparison.Ordinal), GitConfig),
|
||||
new("robots-drip", "text/plain; charset=utf-8", path => LastSegment(path) == "robots.txt", Robots),
|
||||
new("wordpress-drip", "text/html; charset=UTF-8", path => LastSegment(path) == "wp-login.php", WordPressLogin),
|
||||
new("hikvision-drip", "application/xml", path => path.StartsWith("/sdk/", StringComparison.Ordinal) || path.StartsWith("/isapi/", StringComparison.Ordinal), Hikvision),
|
||||
new("env-drip", "text/plain; charset=utf-8", path => IsEnv(LastSegment(path)), Env),
|
||||
new("json-drip", "application/json", path => path.EndsWith(".json", StringComparison.Ordinal), Json),
|
||||
new("xml-drip", "application/xml", path => path.EndsWith(".xml", StringComparison.Ordinal), Xml),
|
||||
@@ -58,6 +60,59 @@ public static class FileContent
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<string> WordPressLogin(IRandomSource random)
|
||||
{
|
||||
yield return """
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>Log In ‹ Portal — WordPress</title>
|
||||
<meta name='robots' content='max-image-preview:large, noindex, noarchive' />
|
||||
<link rel='stylesheet' id='login-css' href='/wp-admin/css/login.min.css?ver=6.4.3' media='all' />
|
||||
<meta name='viewport' content='width=device-width' />
|
||||
</head>
|
||||
<body class="login no-js login-action-login wp-core-ui locale-en-us">
|
||||
<div id="login">
|
||||
<h1><a href="https://wordpress.org/">Powered by WordPress</a></h1>
|
||||
<form name="loginform" id="loginform" action="/wp-login.php" method="post">
|
||||
<p>
|
||||
<label for="user_login">Username or Email Address</label>
|
||||
<input type="text" name="log" id="user_login" class="input" value="" size="20" autocapitalize="off" autocomplete="username" required="required" />
|
||||
</p>
|
||||
<div class="user-pass-wrap">
|
||||
<label for="user_pass">Password</label>
|
||||
<input type="password" name="pwd" id="user_pass" class="input password-input" value="" size="20" autocomplete="current-password" required="required" />
|
||||
</div>
|
||||
<p class="submit">
|
||||
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In" />
|
||||
<input type="hidden" name="redirect_to" value="/wp-admin/" />
|
||||
<input type="hidden" name="testcookie" value="1" />
|
||||
</p>
|
||||
</form>
|
||||
<p id="nav"><a href="/wp-login.php?action=lostpassword">Lost your password?</a></p>
|
||||
<p id="backtoblog"><a href="/">← Go to Portal</a></p>
|
||||
</div>
|
||||
|
||||
""";
|
||||
|
||||
while (true)
|
||||
{
|
||||
yield return $"<!-- {Hex(random, 32)} -->\n";
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<string> Hikvision(IRandomSource random)
|
||||
{
|
||||
yield return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<LanguageList version=\"2.0\" xmlns=\"http://www.hikvision.com/ver20/XMLSchema\">\n";
|
||||
|
||||
var id = 1;
|
||||
while (true)
|
||||
{
|
||||
yield return $" <Language>\n <id>{id++}</id>\n <name>{LoremText.Word(random)}</name>\n <enabled>{(random.Next(0, 2) == 0 ? "true" : "false")}</enabled>\n </Language>\n";
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<string> Json(IRandomSource random)
|
||||
{
|
||||
yield return "{\n \"name\": \"portal\",\n \"version\": \"1.4.2\",\n \"private\": true,\n \"entries\": [\n";
|
||||
|
||||
Reference in new issue
Block a user