⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
libssh2-1.9.0
/
tests
/
View File Name :
sshd_fixture.sh.in
#!/bin/sh # Written by Simon Josefsson. # Start sshd, invoke parameters, saving exit code, kill sshd, and # return exit code. srcdir="@SSHD_TEST_CONFIG_DIR@" SSHD="@SSHD_EXECUTABLE@" cmd="\"$1\"" PRIVKEY=$srcdir/etc/user export PRIVKEY PUBKEY=$srcdir/etc/user.pub export PUBKEY if test -n "$DEBUG"; then libssh2_sshd_params="-d -d" fi chmod go-rwx "$srcdir"/etc/host* "$SSHD" -f /dev/null -h "$srcdir/etc/host" \ -o 'Port 4711' \ -o 'Protocol 2' \ -o "AuthorizedKeysFile \"$srcdir/etc/user.pub\"" \ -o 'UsePrivilegeSeparation no' \ -o 'StrictModes no' \ -D \ $libssh2_sshd_params & sshdpid=$! trap "kill ${sshdpid}; echo signal killing sshd; exit 1;" EXIT : "started sshd (${sshdpid})" sleep 3 if ! kill -0 ${sshdpid} then echo "SSHD exited before test started" exit 1 fi : Invoking $cmd... eval "$cmd" ec=$? : Self-test exit code $ec : "killing sshd (${sshdpid})" kill "${sshdpid}" > /dev/null 2>&1 trap "" EXIT exit $ec