403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/nginx/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/nginx/fetch-directives.pl
#!/usr/bin/perl
use strict;
use warnings;

my @mods;
my %donemod;
foreach my $l (&download("http://wiki.nginx.org/DirectiveIndex")) {
	if ($l =~ /href="\/(Nginx([^"]*)Module)"/) {
		my $page = $1;
		my $mod = $2;
		$mod =~ s/([A-Z])/_$1/g;
		$mod =~ s/^_//;
		$mod = lc($mod);
		push(@mods, [ $page, $mod ]) if (!$donemod{$mod}++);
		}
	}
push(@mods, [ "CoreModule", "core" ]);

my @dirs;
foreach my $m (@mods) {
	my ($page, $mod) = @$m;
	my $dir;
	foreach my $l (&download("http://wiki.nginx.org/$page")) {
		if ($l =~ /<b>syntax:<\/b> (<i>)?([^< ]+)/i) {
			$dir = { 'name' => $2,
				 'mod' => $mod };
			push(@dirs, $dir);
			}
		elsif ($l =~ /<b>default:<\/b> <i>([^<]+)</i && $dir) {
			$dir->{'default'} = $1;
			$dir->{'default'} =~ s/^\Q$dir->{'name'}\E\s+//;
			if ($dir->{'default'} eq 'compile-time option' ||
			    $dir->{'default'} eq 'system dependent' ||
			    $dir->{'default'} =~ /No value specified/) {
				$dir->{'default'} = '';
				}
			$dir->{'default'} =~ s/;\s*$//;
			}
		elsif ($l =~ /<b>context:<\/b> <i>([^<]+)</i && $dir) {
			$dir->{'context'} = $1;
			$dir->{'context'} =~ s/\s//g;
			$dir->{'context'} =~ s/\([^\)]+\)//g;
			$dir = undef;
			}
		}
	}

foreach my $dir (@dirs) {
	print join("\t", $dir->{'mod'}, $dir->{'name'}, $dir->{'default'} || "-", $dir->{'context'} || "-"),"\n";
	}

sub download
{
my ($url) = @_;
my @lines = `wget -O - -q $url 2>/dev/null`;
return @lines;
}

Youez - 2016 - github.com/yon3zu
LinuXploit