Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.21.247.221
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/root/proc/3/task/3/root/proc/3/root/proc/3/cwd/usr/share/doc/uwsgi-core/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/root/proc/3/task/3/root/proc/3/root/proc/3/cwd/usr/share/doc/uwsgi-core/tests/Responder.pm
package Responder;

sub new {
	my $class = shift;

	my $self = {
		_env => shift,
		_counter => 0,
		_fd => -1,
	};

	bless $self, $class;

	return $self;
}

sub getline {
	my $self = shift;

	if ($self->{_counter} > 10) {
		return undef;
	}
	elsif ($self->{_counter} == 3) {
		$self->{_counter}++;
		$self->{_fd} = uwsgi::async_connect("81.174.68.52:80");
		return uwsgi::wait_fd_write($self->{_fd}, 3);
	}
	elsif ($self->{_counter} == 4) {
		$self->{_counter}++;
		return "connected to http://projects.unbit.it<br/>";
	}
	elsif ($self->{_counter} == 7) {
		$self->{_counter}++;
		print "suspending the app...\n";
		uwsgi::async_sleep(3);
		uwsgi::suspend();
		print "resumed the app\n";
		return "Suspended and Resumed the app<br/>";
	}
	elsif ($self->{_counter} % 2 == 0) {
		$self->{_counter}++;
		print "sleeping...\n";
		return uwsgi::async_sleep(1);
	}
	else {
		$self->{_counter}++;
		return "Hello World ".$self->{_counter}."<br/>";
	}
}

sub close {
	my $self = shift;
	uwsgi::log("goodbye...\n");
}

1

Anon7 - 2022
AnonSec Team