Group
Extension

Matches 35358

Amazon-PAApi5-Signature ( B/BA/BAYASHI/Amazon-PAApi5-Signature-0.05.tar.gz, BAYASHI, 2023; MetaCPAN )
Amazon-PAApi5-Signature/lib/Amazon/PAApi5/Signature.pm ( view source; MetaCPAN )
_headers->{'content-encoding'} = 'amz-1.0';
    $aws_headers->{'content-type'}     = 'application/json; charset=UTF-8';
    $aws_headers->{'host'}             = $self->host;
    $aws_headers->{'x-amz-
 Amazon::PAApi5::Signature->new(
        'ACCESS_KEY',
        'SECRET_KEY',
        $payload->to_json({
            Keywords    => 'Perl',
            SearchIndex => 'All',
            ItemCount   =>
Alien-Taco ( G/GS/GSB/Alien-Taco-0.003.tar.gz, GSB, 2023; MetaCPAN )
Alien-Taco/lib/Alien/Taco/Object.pm ( view source; MetaCPAN )
}

=back

=head2 JSON Methods

=over 4

=item TO_JSON

This method will be called by the JSON encoder to convert the object
to a hashref which is encodable as JSON.

=cut

sub TO_JSON {
    my $self =
Plack-App-MCCS ( I/ID/IDOPEREL/Plack-App-MCCS-2.002000.tar.gz, IDOPEREL, 2023; MetaCPAN )
Plack-App-MCCS/lib/Plack/App/MCCS.pm ( view source; MetaCPAN )
le (including JSON/XML/JavaScript), append
    # character set to the content type
    $content_type .= '; charset=' . $self->charset
      if $content_type =~ m!^(text/|application/(json|xml|javascri
SPRAGL-Cgi_reply ( S/SP/SPRAGL/SPRAGL-Cgi_reply-1.3.tar.gz, SPRAGL, 2023; MetaCPAN )
SPRAGL-Cgi_reply/lib/SPRAGL/Cgi_reply.pm ( view source; MetaCPAN )
qw(import);

our $VERSION = 1.30;

use File::Spec ();
use File::Basename qw(basename);
use JSON qw(encode_json);

my sub qwac( $s ) {grep{/./} map{split /\s+/} map{s/#.*//r} split/\v+/ , $s;};

our @E
.
    reply_file # Send file and exit.
    reply_html # Send HTML reply and exit.
    reply_json # Send JSON reply and exit.
    set_header # Add or overwrite headers.
    cexec      # CGI exec comman
    };


sub reply_json {
    my ($hashref) = signature(1,0,@_);
    $header{'Content-Type'} = 'application/json; charset=utf-8';
    rcheck;
    print_headers;
    print encode_json($hashref);
    ce
Alien-Taco ( G/GS/GSB/Alien-Taco-0.003.tar.gz, GSB, 2023; MetaCPAN )
Alien-Taco/lib/Alien/Taco/Transport.pm ( view source; MetaCPAN )
s the communication between Taco clients
and servers.

=cut

package Alien::Taco::Transport;

use JSON;

use strict;

our $VERSION = '0.003';

=head1 METHODS

=over 4

=item new(in => $input, out => $
ndles and instantiates a JSON processor object.

=cut

sub new {
    my $class = shift;
    my %opts = @_;

    my $json = new JSON();
    $json->convert_blessed(1);
    $json->ascii(1);

    if (exis
ts $opts{'filter_single'}) {
        $json->filter_json_single_key_object(@{$opts{'filter_single'}});
    }

    binmode $opts{'in'}, ':encoding(UTF-8)';
    binmode $opts{'out'}, ':encoding(UTF-8)';
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Api/Shodan.pm ( view source; MetaCPAN )
    output_mode => [ qw(json|xml) ],
         apikey => [ qw(apikey) ],
         uri => [ qw(shodan_uri) ],
      },
      attributes_default => {
         output_mode => 'json',
         ssl_verify =
   require_modules => {
         'Metabrik::Network::Address' => [ ],
         'Metabrik::String::Json' => [ ],
         'Metabrik::String::Xml' => [ ],
      },
   };
}

sub myip {
   my $self = shif
-info?key='.$apikey) or return;
   my $content = $resp->{content};

   my $sj = Metabrik::String::Json->new_from_brik_init($self) or return;
   my $decoded = $sj->decode($content) or return;

   retur
Alien-Taco ( G/GS/GSB/Alien-Taco-0.003.tar.gz, GSB, 2023; MetaCPAN )
Alien-Taco/lib/Alien/Taco/Server.pm ( view source; MetaCPAN )
 $self = shift;
    filter_struct(shift, sub {
        my $x = shift;
        blessed($x) and not JSON::is_bool($x);
    },
    sub {
        my $nn = my $n = ++ $self->{'nobject'};
        $self->{'o
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Api/Virustotal.pm ( view source; MetaCPAN )
> [ qw(apikey) ],
         output_mode => [ qw(json|xml) ],
      },
      attributes_default => {
         ssl_verify => 0,
         output_mode => 'json',
      },
      commands => {
         check
_domains => [ qw(ipv4_address) ],
      },
      require_modules => {
         'Metabrik::String::Json' => [ ],
         'Metabrik::String::Xml' => [ ],
      },
   };
}

sub check_resource {
   my $s


   $self->log->verbose("check_resource: returned code [$code]");

   my $sj = Metabrik::String::Json->new_from_brik_init($self) or return;
   my $decode = $sj->decode($content) or return;

   return
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Api/Abuseipdb.pm ( view source; MetaCPAN )
heck/[IP]/json?key=[API_KEY]&days=[DAYS]
   #
   $self->get(
      'https://www.abuseipdb.com/check/'.$ip.'/json?key='.$api_key.'&days='.$days
   ) or return;

   my $r = $self->content('json');
   #
# https://www.abuseipdb.com/report/json?key=[API_KEY]&category=[CATEGORIES]&comment=[COMMENT]&ip=[IP]
   #
   $self->get(
      'https://www.abuseipdb.com/report/json?key='.$api_key.'&category='.$cate
gory.
      '&comment='.$comment.'&ip='.$ip
   ) or return;

   return $self->content('json');
}

1;

__END__

=head1 NAME

Metabrik::Api::Abuseipdb - api::abuseipdb Brik

=head1 COPYRIGHT AND LICENSE
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Api/Splunk.pm ( view source; MetaCPAN )
rd) ],  # Inherited
         ssl_verify => [ qw(0|1) ], # Inherited
         output_mode => [ qw(json|xml|csv) ],
         count => [ qw(number) ],
         offset => [ qw(number) ],
      },
      a
localhost:8089',
         username => 'admin',
         ssl_verify => 0,
         output_mode => 'json',
         count => 1000,  # 0 means return everything
         offset => 0,  # 0 means return ev
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Client/Www.pm ( view source; MetaCPAN )
rn;

   my $r = $self->get($uri) or return;
   my $headers = $r->{headers};

   # Taken from apps.json from Wappalyzer
   my @headers = qw(
      IBM-Web2-Location
      X-Drupal-Cache
      X-Powered
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/String/Parse.pm ( view source; MetaCPAN )
identify, 'xml';
   }
   elsif ($subset =~ /^\s*{\s+["a-zA-Z0-9:]+\s+/) {
      push @$identify, 'json';
   }
   elsif ($string =~ /^[a-zA-Z0-9+]+={1,2}$/) {
      push @$identify, 'base64';
   }
   e
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Api/Bluecoat.pm ( view source; MetaCPAN )
de => [ qw(json|xml) ],
      },
      attributes_default => {
         uri => 'https://localhost:8089',
         username => 'admin',
         ssl_verify => 0,
         output_mode => 'json',
      }
         category => [ qw(uri) ],
      },
      require_modules => {
         'Metabrik::String::Json' => [ ],
         'Metabrik::String::Xml' => [ ],
      },
   };
}

sub category {
   my $self = 
categorization')
      or return;

   my $content = $r->{content};

   my $sj = Metabrik::String::Json->new_from_brik_init($self) or return;
   my $decode = $sj->decode($content) or return;

   # Exam
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Client/Splunk.pm ( view source; MetaCPAN )
rd) ],  # Inherited
         ssl_verify => [ qw(0|1) ], # Inherited
         output_mode => [ qw(json|xml|csv) ],
         count => [ qw(number) ],
         offset => [ qw(number) ],
      },
      a
localhost:8089',
         username => 'admin',
         ssl_verify => 0,
         output_mode => 'json',
         count => 1000,
         offset => 0,
      },
      commands => {
         search => [
n;

   my $output_mode = $self->output_mode;
   if ($output_mode ne 'xml'
   &&  $output_mode ne 'json'
   &&  $output_mode ne 'csv') {
      return $self->log->error("get_results: output_mode not sup
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Server/Logstash/Indexer.pm ( view source; MetaCPAN )
is {
      host => "$redis_host"
      key => "logstash"
      data_type => "list"
      codec => json
   }
}

output {
   if "_grokparsefailure" in [tags] {
      null {}
   }
   if [type] == "exampl
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Server/Rest.pm ( view source; MetaCPAN )
,
         output_mode => [ qw(json|xml) ],
      },
      attributes_default => {
         hostname => 'localhost',
         port => 8888,
         output_mode => 'json',
      },
      commands => {
ndlers post_handlers|OPTIONAL) ],
      },
      require_modules => {
         'Metabrik::String::Json' => [ ],
         'Metabrik::String::Xml' => [ ],
      },
   };
}

sub start {
   my $self = shi
tp->mount('/' => { path => $root });

   my $se;
   if ($self->output_mode eq 'json') {
      $se = Metabrik::String::Json->new_from_brik_init($self) or return;
   }
   elsif ($self->output_mode eq 'x
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Client/Rest.pm ( view source; MetaCPAN )
fy => [ qw(0|1) ], # Inherited
         output_mode => [ qw(json|xml) ],
      },
      attributes_default => {
         output_mode => 'json',
      },
      commands => {
         reset_user_agent =
,
      require_modules => {
         'Metabrik::String::Xml' => [ ],
         'Metabrik::String::Json' => [ ],
      },
   };
}

sub content {
   my $self = shift;
   my ($output_mode) = @_;

   my $
 }

   my $sm;
   $output_mode ||= $self->output_mode;
   if ($output_mode eq 'json') {
      $sm = Metabrik::String::Json->new_from_brik_init($self) or return;
   }
   elsif ($output_mode eq 'xml') {
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Server/Logstash.pm ( view source; MetaCPAN )
    host => "127.0.0.1"
         data_type => "list"
         key => "logstash"
         codec => json
         congestion_interval => 1
         congestion_threshold => 20000000
         # Batch proc
_events => 50
         batch_timeout => 5
      }
   }
   else {
      stdout {
         codec => json
      }
   }
}
EOF
;

   my $ft = Metabrik::File::Text->new_from_brik_init($self) or return;
   $
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Client/Elasticsearch.pm ( view source; MetaCPAN )
ng_from_json_file => [ qw(index type file) ],
         update_mapping_from_json_file => [ qw(file index type) ],
         put_template => [ qw(name template) ],
         put_template_from_json_file =>
 [ qw(file name|OPTIONAL) ],
         update_template_from_json_file => [ qw(file name|OPTIONAL) ],
         get_settings => [ qw(index|indices_list|OPTIONAL name|names_list|OPTIONAL) ],
         put_
L) ],
         export_as_csv => [ qw(index size|OPTIONAL callback|OPTIONAL) ],
         export_as_json => [ qw(index size|OPTIONAL callback|OPTIONAL) ],
         import_from => [ qw(format input index
Metabrik-Repository ( G/GO/GOMOR/Metabrik-Repository-1.44.tar.gz, GOMOR, 2023; MetaCPAN )
Metabrik-Repository/lib/Metabrik/Database/Cvesearch.pm ( view source; MetaCPAN )
},
      require_modules => {
         'Metabrik::Devel::Git' => [ ],
         'Metabrik::String::Json' => [ ],
         'Metabrik::String::Xml' => [ ],
      },
      require_binaries => {
         p
->repo;

   my $cmd = $repo.'/bin/search.py -o json -p '.$cpe;

   my $json = $self->capture($cmd) or return;
   if (@$json <= 0 || (@$json == 1 && $json->[0] eq 'undef')) {
      return $self->log->e
e: invalid response: ".join('', @$json));
   }

   my $sj = Metabrik::String::Json->new_from_brik_init($self) or return;

   my @results = ();
   for my $this (@$json) {
      my $r = $sj->decode($thi

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.