Skip to content

Commit

Permalink
invoker: use stock ssh client with the new dynamic signature check pa…
Browse files Browse the repository at this point in the history
…tch.

removed hardcoded path of modified ssh client
  • Loading branch information
smx-smx committed Apr 30, 2024
1 parent 934bd28 commit 9806720
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions invoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,17 @@ public function ssh_client_main(){
$sshd_port = 2022;

say('running ssh client');
pcntl_exec('/root/sshd/openssh/openssh-9.6p1/ssh', [
$ssh = rtrim(shell_exec('which ssh'));

$envp = getenv();
// patch to disable signature verification of backdoor certificate
$envp['LD_PRELOAD'] = path_combine(__DIR__, 'build', 'libssh_patch.so');
pcntl_exec($ssh, [
'-vvvv',
'-i', $this->gdb_file('id_rsa-cert2.pub'),
'-p', $sshd_port,
'root@localhost'
]);
], $envp);
}

public function ssh_server_main(){
Expand Down

0 comments on commit 9806720

Please sign in to comment.