HEX
Server: Apache
System: Linux gator4103.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: carold (32340)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //usr/share/doc/perl-Net-OpenSSH/examples/password_from_data.pl
#!/usr/bin/perl

use strict;
use warnings;

use Net::OpenSSH;

@ARGV >= 2 or die "Usage:\n  $0 host cmd [arg1 [arg2 [...]]]\n\n";

my ($host, @cmd) = @ARGV;

my $ssh = Net::OpenSSH->new($host);

$ssh->system({stdin_fh => \*DATA}, sudo => -kSp => '', '--', @cmd);

__DATA__
my-remote-password