Act.dat: Difference between revisions
Jump to navigation
Jump to search
Cfwprophet (talk | contribs) (Created page with "== Description == An activation file for a Sony Playstation' console, based on an account email and password, the devices IDPS, the platform and activation type. See also ht...") |
m (→PHP) |
||
Line 10: | Line 10: | ||
[[http://pastie.org/private/5koe6klxypv8dpbxkcmda pastie]] | [[http://pastie.org/private/5koe6klxypv8dpbxkcmda pastie]] | ||
<syntaxhighlight lang="php"> | |||
<?php | <?php | ||
Line 49: | Line 50: | ||
?> | ?> | ||
</syntaxhighlight> |
Revision as of 14:56, 9 September 2015
Description
An activation file for a Sony Playstation' console, based on an account email and password, the devices IDPS, the platform and activation type. See also [PS3 act.dat].
Location
tm0:npdrm/act.dat
PHP
A PHP script would be released to optain the act.dat. See [playstationhax.it]
[pastie]
<?php
$data = array(
"loginid" => "", /* email */
"password" => "", /* password */
"consoleid" => "", /* idps */
"platform" => "psp2", /* for vita, don't modify, possible parameters psp,ps3,psp2.ps4 is unknown */
"acttype" => "4", /* for vita, don't modify */
);
$custom_headers = array(
"X-I-5-DRM-Version: 1.0",
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://commerce.np.ac.playstation.net/cap.m");
curl_setopt($ch, CURLOPT_USERAGENT, "Legium pro Britania");
curl_setopt($ch, CURLOPT_HTTPHEADER, $custom_headers);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
//curl_setopt($ch, CURLOPT_HEADER, 1);
//curl_setopt($ch, CURLOPT_CERTINFO, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$response = curl_exec($ch);
curl_close($ch);
$fp = fopen("act.dat", "wb");
fwrite($fp, $response);
fclose($fp);
?>