Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 108.162.216.135
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libexpect-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
kibitz
[ DIR ]
drwxr-xr-x
1.A.Intro
2.37
KB
-rw-r--r--
2.A.ftp
3.01
KB
-rwxr-xr-x
2.B.rlogin
3.95
KB
-rwxr-xr-x
3.A.debugging
1.93
KB
-rwxr-xr-x
4.A.top
922
B
-rwxr-xr-x
5.A.top
1.11
KB
-rwxr-xr-x
5.B.top
2.39
KB
-rwxr-xr-x
6.A.smtp-verify
3.18
KB
-rwxr-xr-x
6.B.modem-init
1.79
KB
-rwxr-xr-x
README
644
B
-rw-r--r--
ssh.pl.gz
833
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 4.A.top
#!/usr/bin/perl # This example is a replay of sorts of the rlogin example #before except in this example we turn control of the process back #to the user through use of interact(). use Expect; # $Expect::Debug=2; $Expect::Exp_Internal=1; $RSH='/usr/bin/ssh'; $host_to_login_to=shift(@ARGV); # Get the password. We will show how to do this without printing the # password to the screen later. print "Enter password: "; $password=<STDIN>; chomp $password; $rsh=Expect->spawn($RSH,$host_to_login_to); # Look for a password prompt. $rsh->expect(30,'-re','word:\s$')||(die"Never got password prompt\n"); print $rsh "$password\r"; # Look for a prompt. Prompt can be # $ > or ] followed by a whitespace. $prompt = '[\]\$\>\#]\s$'; # Note the use of -re $rsh->expect(30,'-re',$prompt)||(die "Never got prompt on host\n"); # Start top print $rsh "exec top\r"; # OK, now return control to user. $rsh->interact();
Close