- file_get_contents: documentation ( source)
- stream_context_create: documentation ( source)
- urlencode: documentation ( source)
- base64_encode: documentation ( source)
- http_build_query: documentation ( source)
<?php
function SubmitPayload($url){
$postdata = http_build_query(
array('u' => urlencode(base64_encode($url)))
);
$opts = array(
'http'=>array(
'method'=>'POST',
'header'=>'Content-type: application/x-www-form-urlencoded',
'content' => $postdata,
'protocol_version' => 1.1
)
);
$context = stream_context_create($opts);
file_get_contents("https://defense.ballastsecurity.net/decoding/submit.php", false, $context);
}
SubmitPayload('http://pastebin.com/raw.php?i=YqsyzhzL');
?>