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.20
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 /
doc /
libcgi-ajax-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
CGI-Application-Ajax-ex01.pl
930
B
-rwxr-xr-x
CGI-Application-Ajax-ex02.pl
1015
B
-rwxr-xr-x
CGI-Application-Ajax-ex03.pl
1.76
KB
-rwxr-xr-x
convert_degrees.pl
969
B
-rw-r--r--
pjx_JSON.pl
1.17
KB
-rwxr-xr-x
pjx_JSON_out.pl
286
B
-rwxr-xr-x
pjx_NO_CACHE_callee.pl
239
B
-rwxr-xr-x
pjx_NO_CACHE_caller.pl
1.15
KB
-rwxr-xr-x
pjx_callback.pl
1.35
KB
-rwxr-xr-x
pjx_chained.pl
1.11
KB
-rwxr-xr-x
pjx_change_encoding.pl
869
B
-rwxr-xr-x
pjx_change_headers.pl
778
B
-rwxr-xr-x
pjx_checkbox.pl
677
B
-rwxr-xr-x
pjx_combo.pl.gz
1.96
KB
-rw-r--r--
pjx_cr.pl
1.43
KB
-rwxr-xr-x
pjx_dynselect.pl
3.25
KB
-rwxr-xr-x
pjx_formDump.pl
1.3
KB
-rwxr-xr-x
pjx_from_span.pl
1.2
KB
-rwxr-xr-x
pjx_loading.pl
1.7
KB
-rwxr-xr-x
pjx_manyret.pl
2.06
KB
-rwxr-xr-x
pjx_nobuild.pl
727
B
-rwxr-xr-x
pjx_objects_2_url.pl
1.28
KB
-rwxr-xr-x
pjx_podex.pl
1.82
KB
-rwxr-xr-x
pjx_radio.pl
1.29
KB
-rwxr-xr-x
pjx_splitargs.pl
1.17
KB
-rwxr-xr-x
pjx_subs.pl
1.42
KB
-rwxr-xr-x
pjx_url.pl
971
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pjx_podex.pl
#!/usr/bin/perl -w use strict; use CGI::Ajax; use CGI; # define an anonymous perl subroutine that you want available to # javascript on the generated web page. my $evenodd_func = sub { my $input = shift; my $magic = " <font size=-1>look ma, no submit!</font><br>"; # see if input is defined if ( not defined $input ) { return("input not defined or NaN" . $magic); } # see if value is a number (*thanks Randall!*) if ( $input !~ /\A\d+\z/ ) { return("input is NaN" . $magic); } # got a number, so mod by 2 $input % 2 == 0 ? return("$input is EVEN" . $magic) : return("$input is ODD" . $magic); }; # don't forget the trailing ';', since this is an anon subroutine # define a function to generate the web page - this can be done # million different ways, and can also be defined as an anonymous sub. # The only requirement is that the sub send back the html of the page. sub Show_HTML { my $html = ""; $html .= <<EOT; <HTML> <HEAD><title>CGI::Ajax Example</title> </HEAD> <BODY> <form> Enter a number: <input type="text" name="val1" id="val1" size="6" onkeyup="evenodd( ['val1'], ['resultdiv'] ); return true;"><br> <hr> <div id="resultdiv" style="border: 1px solid black; width: 440px; height: 80px; overflow: auto"> </div> </form> </BODY> </HTML> EOT return $html; } my $cgi = new CGI(); # create a new CGI object # now we create a CGI::Ajax object, and associate our anon code my $pjx = new CGI::Ajax( 'evenodd' => $evenodd_func ); # now print the page. This can be done easily using # CGI::Ajax->build_html, sending in the CGI object to generate the html # header. This could also be done manually, and then you don't need # the build_html() method print $pjx->build_html($cgi,\&Show_HTML); # this outputs the html for the page # that's it!
Close