[ SEA-GHOST MINI SHELL]

Path : /proc/3/cwd/usr/share/doc/perl-HTTP-Tiny-0.033/eg/
FILE UPLOADER :
Current File : //proc/3/cwd/usr/share/doc/perl-HTTP-Tiny-0.033/eg/post.pl

#!/usr/bin/perl

use strict;
use warnings;

use HTTP::Tiny;
use URI::Escape qw/uri_escape_utf8/;

my $url = 'http://search.cpan.org/search';

my %form_data = (
  query => 'DAGOLDEN',
  mode => 'author',
);

my @params;
while( my @pair = each %form_data ) {
  push @params, join("=", map { uri_escape_utf8($_) } @pair);
}

my $response = HTTP::Tiny->new->request('POST', $url, {
  content => join("&", @params),
  headers => { 'content-type' => 'application/x-www-form-urlencoded' }
});

print "$response->{status} $response->{reason}\n";

print $response->{content};


SEA-GHOST - SHELL CODING BY SEA-GHOST