PS3Hax Network - Playstation 3 Hacks and Mods

PS3Hax Network - Playstation 3 Hacks and Mods (http://www.ps3hax.net/forums.php)
-   PS3 | General Discussion (http://www.ps3hax.net/forumdisplay.php?f=11)
-   -   accessing ps3 directory trought php server (http://www.ps3hax.net/showthread.php?t=36007)

enosrasun 03-27-2012 03:55 PM

accessing ps3 directory trought php server
 
I have a php code to access and edit files on the server,is possible to make a php code on the server to see and download files from ps3??

H3avyRa1n 03-27-2012 04:32 PM

tbh don't see any advantage versus what you can do already through a ftp client..

enosrasun 03-27-2012 05:09 PM

Quote:

Originally Posted by H3avyRa1n (Post 345397)
tbh don't see any advantage versus what you can do already through a ftp client..

my brother ps3 is on ofw 4.11( I can't install a ftp client on it),so I think I can take out some files from it

OoZic 03-27-2012 05:38 PM

You need Apache for that.... so you need Linux.... Call $ony and demand it back :hello:

hellsing9 03-27-2012 07:57 PM

Linux? he can mount an apache server on windows too.

OoZic 03-28-2012 06:13 AM

Quote:

Originally Posted by hellsing9 (Post 345453)
Linux? he can mount an apache server on windows too.

I think the PS3 has to act as a PHP server? Just like with FTP?

I work with XAMPP on Windows for testing my webshop locally so I know I can use Apache on it :)

hellsing9 03-28-2012 08:09 AM

i tought he was refering to windows configuration...i messed up.
Yes it's like @OoZic said :)

enosrasun 03-28-2012 09:04 AM

k ,I will explain

I have a web server (with apache,php ,mysql ) more simple xampp, on windows 7

I have a code and with it I can see,modify,copy,download files from local directory(from server),from another pc

I ask if there is a way so I can download ,and see files from ps3 when access my web server???


this is the code

<?php
$allowed_dir = "lang"; //Set the allowed path (Chmod them first)

//Allowed extensions
$valid_ext[1] = "php";
$valid_ext[2] = "PHP";
$valid_ext[3] = "html";
$valid_ext[4] = "HTML";

function directory($directory, $recursive) {
$me = basename($_SERVER['PHP_SELF']);
$array_items = array();

if ($handle = opendir($directory)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != $me && substr($file,0,1) != '.') {
if (is_dir($directory. "/" . $file)) {
if($recursive) {
$array_items = array_merge($array_items, directory($directory. "/" . $file, $recursive));
}
} else {
$file = $directory . "/" . $file;
$array_items[] = preg_replace("/\/\//si", "/", $file);
}
}
}
closedir($handle);
asort($array_items);

}
return $array_items;
}

$HTMLOUT ='';

$HTMLOUT .= "<form action='editor.php' method='post'>";
$HTMLOUT .= "<select name='target_file'><option value='0'>Please choose a file to open</option>";

$filelist = directory($allowed_dir, true);
foreach ($filelist as $file)
{
$ext = substr(strrchr($file, '.'), 1);
if (in_array($ext,$valid_ext) && is_writable($file)) {
$HTMLOUT .= "<option value=\"$file\">$file</option>";
}
}
$HTMLOUT .= "</select><input type='submit' class='btn' value='Select!' /></form>";

if (isset($_POST['file_to_edit'])){
$nombre_fichero = stripslashes($_POST['file_to_edit']);
$DescriptorFichero = fopen($nombre_fichero,"w");
$string = stripslashes($_POST['edit_file']);
fwrite($DescriptorFichero,$string);
@fclose($DescriptorFichero);
}

if (isset($_POST['target_file'])){
$target_file = stripslashes($_POST['target_file']);
$fichero_texto = fopen ($target_file, "r");
$contenido_fichero = @Fre ad ($fichero_texto, filesize($target_file));

$HTMLOUT .= "<div style='text-align:center;width:80%;border:none;'>
<div style='background:lightgrey;height:20px;'>
<span style='font-weight:bold;font-size:10pt;'>Editing File: {$target_file}</span></div></div><br/>";

$HTMLOUT .= "<form enctype='multipart/form-data' method='post' action='editor.php'>";
$HTMLOUT .= "<input type='hidden' name='file_to_edit' value='{$target_file}' />";

$HTMLOUT .= "<table class='main' width='80%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='embedded'>
<table width='100%' border='1' cellspacing='0' cellpadding='2'>
<tr><td align='center' class='colhead'><h2>File Editor</h2></td></tr>
<tr>
<td><textarea name='edit_file' rows='30' cols='117'>" . htmlspecialchars($contenido_fichero) . "
</textarea></td></tr>
<tr><td align='center'><input type='submit' class='btn' value='Edit!' /></td></tr></table>
</td></tr></table></form>";
}
print $HTMLOUT ;

hellsing9 03-28-2012 09:32 AM

So i was right.
Your problem @enosrasun it's windows as far i see in the code i see no way to *browse* via your server to see the content of PS3.
If your console is with CFW/Jailbroken...it's another thing.

Another thing if you have a router like a WRT54G/L you can modd it and make it a Linux box. (i done it, to try to something similar to what you saying.).

OoZic 03-28-2012 10:14 AM

Quote:

Originally Posted by enosrasun (Post 345654)
k ,I will explain

I have a web server (with apache,php ,mysql ) more simple xampp, on windows 7

I have a code and with it I can see,modify,copy,download files from local directory(from server),from another pc

I ask if there is a way so I can download ,and see files from ps3 when access my web server???

let me get this right:

You run a simple xampp on PC1 and you can access PC1 through PHP with another PC (PC2)?

If you want to do this with the PS3, the PS3 still has to act as server? Maybe simple on open Windows but impossible on closed PS3 OFW...


All times are GMT -5. The time now is 08:18 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.