Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.117.142.62
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
bcu /
libgd-gd-2.2.3 /
docs /
naturaldocs /
[ HOME SHELL ]
Name
Size
Permission
Action
project
[ DIR ]
drwxr-xr-x
license.txt
3.04
KB
-rwxr-xr-x
nobgd.pl
1.18
KB
-rwxr-xr-x
preamble.txt
3.23
KB
-rwxr-xr-x
run_docs.sh
1.39
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : nobgd.pl
#!/usr/bin/env perl # Copy C source files (i.e. *.[ch]) from $src to $dest, first # stripping out uses of the macro BGD_DECLARE(<type>). A line must # begin with 'BGD_DECLARE' for it to be considered a use. use strict; use warnings; use File::Basename; my ($src, $dest) = @ARGV; die "Invalid arguments: nobgd.pl <src-dir> <dest-dir>\n" unless ($src && $dest && -d $src && -d $dest); for my $file (glob("$src/*.c"), glob("$src/*.h")) { do {local $| = 1; print "."}; fixup($file, $dest); } print "\n"; sub fixup { my ($src, $destDir) = @_; my $dest = $destDir . "/" . basename($src); my $content = slurp($src); $content =~ s{^ BGD_DECLARE \( ([^)]+) \)}{$1}gmx; unslurp($dest, $content); } sub slurp { my ($filename) = @_; local $/; # no file separator my $data; open my $fh, "<", $filename or die "Unable to read file '$filename'.\n"; $data = <$fh>; close($fh); return $data; } sub unslurp { my ($filename, $data) = @_; die "Refusing to overwrite file '$filename'\n" if -f $filename; open my $fh, ">", $filename or die "Unable to open '$filename' for writing.\n"; print {$fh} $data or die "Error writing file '$filename'\n"; close ($fh); }
Close