ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:32.52 GB of 70.42 GB (46.18%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ share/ debconf/ - drwxr-xr-x

Directory:
Viewing file:     fix_db.pl (1.96 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!
use strict;
use Debconf::Db;
use Debconf::Log q{warn};

Debconf::Db->load;

if (! @ARGV || $ARGV[0] ne 'end') {
    my $fix=0;
    my $ok;
    my $counter=0;
    do {
        $ok=1;
    
        my %templates=();
        my $ti=$Debconf::Db::templates->iterator;
        while (my $t=$ti->iterate) {
            $templates{$t}=Debconf::Template->get($t);
        }
    
        my %questions=();
        my $qi=Debconf::Question->iterator;
        while (my $q=$qi->iterate) {
            if (! defined $q->template) {
                warn "question \"".$q->name."\" has no template field; removing it.";
                $q->addowner("killme",""); # make sure it has one owner at least, so removal is triggered
                foreach my $owner (split(/, /, $q->owners)) {
                    $q->removeowner($owner);
                }
                $ok=0;
                $fix=1;
            }
            elsif (! exists $templates{$q->template->template}) {
                warn "question \"".$q->name."\" uses nonexistant template ".$q->template->template."; removing it.";
                foreach my $owner (split(/, /, $q->owners)) {
                    $q->removeowner($owner);
                }
                $ok=0;
                $fix=1;
            }
            else {
                $questions{$q->name}=$q;
            }
        }
        
        foreach my $t (keys %templates) {
            my @owners=$Debconf::Db::templates->owners($t);
            if (! @owners) {
                warn "template \"$t\" has no owners; removing it.";
                $Debconf::Db::templates->addowner($t, "killme","");
                $Debconf::Db::templates->removeowner($t, "killme");
                $fix=1;
            }
            foreach my $q (@owners) {
                if (! exists $questions{$q}) {
                    warn "template \"$t\" claims to be used by nonexistant question \"$q\"; removing that.";
                    $Debconf::Db::templates->removeowner($t, $q);
                    $ok=0;
                    $fix=1;
                }
            }
        }
        $counter++;
    } until ($ok || $counter > 20);

    if ($fix) {
        Debconf::Db->save;
        exec($0, "end");
        die "exec of self failed";
    }
}

foreach my $templatefile (glob("/var/lib/dpkg/info/*.templates")) {
    my ($package) = $templatefile =~ m:/var/lib/dpkg/info/(.*?).templates:;
        Debconf::Template->load($templatefile, $package);
}

Debconf::Db->save;
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.1532 seconds