Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
duck /
lib /
checks /
[ HOME SHELL ]
Name
Size
Permission
Action
appstream.pm
3.03
KB
-rw-r--r--
control_file.pm
2.76
KB
-rw-r--r--
copyright_file.pm
3.88
KB
-rw-r--r--
list_file.pm
4.42
KB
-rw-r--r--
patch_files.pm
3.99
KB
-rw-r--r--
systemd.pm
2.77
KB
-rw-r--r--
upstream_metadata.pm
4.55
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : control_file.pm
# duck - check for debian/control files # Copyright (C) 2016 Simon Kainz <skainz@debian.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # he Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # On Debian GNU/Linux systems, the complete text of the GNU General # Public License can be found in `/usr/share/common-licenses/GPL-2'. # # You should have received a copy of the GNU General Public License # along with this program. If not, you can find it on the World Wide # Web at https://www.gnu.org/copyleft/gpl.html, or write to the Free # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1301, USA. package DUCK::control_file; use strict; use warnings; use autodie; use Data::Dumper; use Parse::DebControl qw(parse_file); my %try_https=( "Homepage" => 1, "Vcs-Browser" =>1 #TODO: more entries?? ); my %options=( "f:" => " -f file\tspecify path to control file", "F" => " -F\t\tskip processing of debian/control file"); sub opts() { return keys %options; } sub desc() { my $r; foreach (sort keys %options) { $r.=$options{$_}."\n"; } return $r; } sub run() { my ($sname,$params,$entries_ref)=@_; my %opt=%$params; # my @entries=@$entries_ref; if (!$opt{F} ) { my $cf_parser = new Parse::DebControl; if ($opt{f}) { if (! -r $opt{f}) { print STDERR "Unable to open user-specified control file: ".$opt{f}."\n"; exit(2); } } if (!$opt{f}) { if (! -r "debian/control") { return; } } my $opts= {stripComments => 'true'}; my $cf=($opt{f} or "debian/control"); # no user specified file/path, try to find default debian/control file if ( (!$opt{f}) && (-r "debian/control")||($opt{f}) ) { my @data_file = $cf_parser->parse_file($cf, $opts); my @cfdata=$data_file[0][0]; # create list of urls from debian/control foreach my $cfline1 (@data_file) { foreach my $cfline2 (@$cfline1) { foreach my $k (keys %$cfline2) { my $identifier=$cf.$k.$cfline2->{$k}; push (@$entries_ref, [$cf,$k,$cfline2->{$k},0, { filename => $cf, certainty => "certain", checkmethod => $k, val => $cfline2->{$k}, origline => $k.": ".$cfline2->{$k}, verbose => $cf.": ".$k.": ".$cfline2->{$k} } ]); } } } } } return; } 1;
Close