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
@@ -19,13 +19,17 @@ public sealed class FileContentTests
|
||||
[InlineData("/backup/db.sql", "sql-drip")]
|
||||
[InlineData("/.git/config", "git-drip")]
|
||||
[InlineData("/robots.txt", "robots-drip")]
|
||||
[InlineData("/SDK/webLanguage", "hikvision-drip")]
|
||||
[InlineData("/ISAPI/System/deviceInfo", "hikvision-drip")]
|
||||
[InlineData("/wp-login.php", "wordpress-drip")]
|
||||
[InlineData("/blog/WP-Login.php", "wordpress-drip")]
|
||||
public void Matches_known_paths(string path, string expected) =>
|
||||
FileContent.Match(path).ShouldNotBeNull().Name.ShouldBe(expected);
|
||||
|
||||
[Theory]
|
||||
[InlineData("/")]
|
||||
[InlineData("/index.php")]
|
||||
[InlineData("/wp-login.php")]
|
||||
[InlineData("/sdkfoo")]
|
||||
[InlineData("/environment")]
|
||||
[InlineData("")]
|
||||
[InlineData(null)]
|
||||
@@ -39,6 +43,8 @@ public sealed class FileContentTests
|
||||
[InlineData("/dump.sql", "-- MySQL dump")]
|
||||
[InlineData("/.git/config", "[core]")]
|
||||
[InlineData("/robots.txt", "User-agent:")]
|
||||
[InlineData("/SDK/webLanguage", "<?xml")]
|
||||
[InlineData("/wp-login.php", "<!DOCTYPE html>")]
|
||||
public void Generates_an_endless_file_that_starts_like_the_real_thing(string path, string start)
|
||||
{
|
||||
var profile = FileContent.Match(path).ShouldNotBeNull();
|
||||
|
||||
Reference in new issue
Block a user