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.13
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 /
libjson-parse-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
array.pl
133
B
-rw-r--r--
assert.pl
231
B
-rw-r--r--
bad-utf8.pl
363
B
-rw-r--r--
bad-utf8.txt
376
B
-rw-r--r--
chr.pl
285
B
-rw-r--r--
collide.pl
223
B
-rw-r--r--
ebi.pl
229
B
-rw-r--r--
first-bit.pl
814
B
-rw-r--r--
hash.pl
132
B
-rw-r--r--
json-tiny-round-trip-demo.pl
1.16
KB
-rw-r--r--
kani.pl
313
B
-rw-r--r--
key-collision.pl
217
B
-rw-r--r--
long-number.pl
198
B
-rw-r--r--
sasori.pl
222
B
-rw-r--r--
synopsis.pl
186
B
-rw-r--r--
tokenize-synopsis.pl
629
B
-rwxr-xr-x
true-subs.pl
223
B
-rw-r--r--
unicode-details.pl
1.08
KB
-rw-r--r--
validjson
1.09
KB
-rwxr-xr-x
whitespace-synopsis.pl
410
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : validjson
#!/usr/bin/perl use warnings; use strict; use lib '/home/ben/projects/Json3/blib/lib'; use lib '/home/ben/projects/Json3/blib/arch'; use JSON::Parse 'assert_valid_json'; use Getopt::Long; my $ok = GetOptions ( "verbose" => \my $verbose, "help" => \my $help, ); if (! $ok || $help) { usage (); exit; } for my $file (@ARGV) { eval { open my $in, "<:raw", $file or die "Can't open '$file': $!"; my $text = ''; while (my $line = <$in>) { $text .= $line; } close $in or die $!; assert_valid_json ($text); }; if ($@) { my $error = $@; $error =~ s/\n+$//; if ($error !~ /\Q$file/) { $error = "$file: $error"; } if ($error =~ /validjson line [0-9]+\.$/) { $error =~ s/\sat\s\S+\sline.*$/\./; } print "$error\n"; } else { if ($verbose) { print "'$file' is valid JSON.\n"; } } } sub usage { print <<EOF; $0: validate JSON. Default behaviour is to produce nothing except errors. Options: --verbose Get confirmation that the files are valid. --help View this message. This script requires JSON::Parse to be installed. EOF exit; }
Close