[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.147.126.199: ~ $
#!/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/local/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();



Filemanager

Name Type Size Permission Actions
1.A.Intro File 2.37 KB 0644
2.A.ftp File 3.01 KB 0644
2.B.rlogin File 3.95 KB 0644
3.A.debugging File 1.93 KB 0644
4.A.top File 928 B 0644
5.A.top File 1.11 KB 0644
5.B.top File 2.39 KB 0644
6.A.smtp-verify File 3.18 KB 0644
6.B.modem-init File 1.79 KB 0644
README File 644 B 0644