Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libcairo-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
png
[ DIR ]
drwxr-xr-x
freetype-font.pl
761
B
-rw-r--r--
glyph-text.pl
1.25
KB
-rw-r--r--
mime-unique-id.pl
6.33
KB
-rwxr-xr-x
pdf-tagged-text.pl
7.01
KB
-rwxr-xr-x
png-streams.pl
693
B
-rw-r--r--
simple.pl
1.24
KB
-rw-r--r--
subclassing.pl
1.06
KB
-rw-r--r--
twisted-text.pl
8.18
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : simple.pl
#!/usr/bin/perl # # $Id$ # use strict; use warnings; use Cairo; use constant { IMG_WIDTH => 640, IMG_HEIGHT => 480, M_PI => 3.14159265, }; die "png backend not supported" unless (Cairo::HAS_PNG_FUNCTIONS); $0 =~ /(.*)\.pl/; my $png = "$1.png"; my $surf = Cairo::ImageSurface->create ('argb32', IMG_WIDTH, IMG_HEIGHT); my $cr = Cairo::Context->create ($surf); $cr->rectangle (0, 0, IMG_WIDTH, IMG_HEIGHT); $cr->set_source_rgba (1, 1, 1, 0.5); $cr->fill; # black $cr->save; $cr->set_source_rgba (0, 0, 0, 0.5); $cr->translate (IMG_WIDTH / 2, IMG_HEIGHT - (IMG_HEIGHT / 4)); do_star (); $cr->restore; # red $cr->save; $cr->set_source_rgba (1, 0, 0, 0.5); $cr->translate (IMG_WIDTH / 2, IMG_HEIGHT / 4); do_star (); $cr->restore; # green $cr->save; $cr->set_source_rgba (0, 1, 0, 0.5); $cr->translate (IMG_WIDTH / 4, IMG_HEIGHT / 2); do_star (); $cr->restore; # blue $cr->save; $cr->set_source_rgba (0, 0, 1, 0.5); $cr->translate (IMG_WIDTH - (IMG_WIDTH / 4), IMG_HEIGHT / 2); do_star (); $cr->restore; $cr->show_page; $surf->write_to_png ($png); sub do_star { my $mx = IMG_WIDTH / 3.0; my $count = 100; foreach (0..$count-1) { $cr->new_path; $cr->move_to (0, 0); $cr->rel_line_to (-$mx, 0); $cr->stroke; $cr->rotate ((M_PI * 2) / $count); } }
Close