Skip to content

Commit

Permalink
webMAN MOD 1.47.45
Browse files Browse the repository at this point in the history
- prepISO now copy encrypted ISO .key file to /dev_hdd0/tmp/wmtmp
  • Loading branch information
aldostools committed Dec 28, 2023
1 parent 55de62f commit 078ac66
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 5 deletions.
7 changes: 3 additions & 4 deletions _Projects_/prepISO/include/exfat.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ static int dir_read (char *dpath)
continue;
}
//---------------

// If the key exists, copy it to "/dev_hdd0/tmp/wmtmp" to
// decrypt on-the-fly with Cobra when the ISO is mounted (By Evilnat)
// decrypt on-the-fly with Cobra when the ISO is mounted (By Evilnat)
if(strcasestr(ext, ".key"))
{
FIL fd;
char output[256];
snprintf (fn, 255, "%s/%s", dpath, fno.fname);
sprintf(output, "/dev_hdd0/tmp/wmtmp/%s", fno.fname);
snprintf(output, 255, "/dev_hdd0/tmp/wmtmp/%s", fno.fname);

if (!f_open(&fd, fn, FA_READ))
{
Expand All @@ -130,7 +130,6 @@ static int dir_read (char *dpath)
ps3ntfs_close(fda);
}
}

}

//--- is ISO?
Expand Down
10 changes: 10 additions & 0 deletions _Projects_/prepISO/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,16 @@ int main(int argc, const char* argv[])
}
//---------------

// If the key exists, copy it to "/dev_hdd0/tmp/wmtmp" to
// decrypt on-the-fly with Cobra when the ISO is mounted (By Evilnat)
if(strcasestr(ext, ".key"))
{
char output[256];
snprintf(output, 255, "/dev_hdd0/tmp/wmtmp/%s", dir.d_name);

copy_file(filename, output);
}

//--- is ISO?
is_iso = ( (strcasestr(ext, ".iso")) ) ||
(m > 0 && ( ( (strcasestr(ext, ".bin")) ) ||
Expand Down
Binary file modified _Projects_/updater/pkgfiles/USRDIR/addons/prepISO.pkg
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_full.sprx
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_lite.sprx
Binary file not shown.
Binary file modified _Projects_/updater/pkgfiles/USRDIR/webftp_server_noncobra.sprx
Binary file not shown.
Binary file not shown.
Binary file modified _Projects_/updater/update/dev_hdd0/plugins/webftp_server.sprx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _Projects_/updater/update/dev_hdd0/tmp/wm_res/prepISO.pkg
Binary file not shown.
9 changes: 9 additions & 0 deletions include/scan/prepntfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ static void create_ntfs_file(char *iso_path, char *filename, size_t plen)
force_copy(sfo_path, tmp_path);
}

// copy external .key to WMTMP
if(ntfs_m == id_PS3ISO)
{
char *key_path = iso_path;
strcpy(key_path + plen, ".key");
strcpy(tmp_path + tlen, ".key");
force_copy(key_path, tmp_path);
}

// copy external image to WMTMP if exists
char *img_path = iso_path;
if(!get_image_file(img_path, plen)) // image not found in NTFS
Expand Down
8 changes: 7 additions & 1 deletion include/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,13 @@ static void read_settings(void)
webman_config->ps2_rate = 40; //% ps2 fan speed

if(payload_ps3hen) webman_config->man_speed = 0x5A; // ps3hen default is 35% manual

/*
if(payload_ps3hen)
{
webman_config->man_rate = 30; //% manual fan speed
webman_config->man_speed = 0x4C; // ps3hen default is 30% manual
}
*/
webman_config->minfan = DEFAULT_MIN_FANSPEED; // 25% defined in fancontrol.h
webman_config->maxfan = DEFAULT_MAX_FANSPEED; // 80% defined in fancontrol.h

Expand Down

0 comments on commit 078ac66

Please sign in to comment.