Advertising (This ad goes away for registered users. You can Login or Register)

[Tutorial] How to dump any file between 2MB and 16MB

Post here your guides, tips, how-to, etc...
User avatar
niszczycielnpc
Posts: 259
Joined: Thu Dec 19, 2013 12:10 pm
Location: %appdata%/Poland/Netherland

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by niszczycielnpc » Fri Nov 20, 2015 5:08 pm

Nice... i have still some problems with dumping im just out of any idea's.....
Say i forward message.. next i dump mail.db via music db everything is good but next when i want to update my music.db it erases my record and replace it with another one ;/
Advertising
My Devices [spoiler]PSVITA BLACK 3.50 - private exploit/color]
PLAYSTATION 4 OFW
PSP BLACK-1004 3.90 M33-2
XBOX 360 RGH JASPER
SAMSUNG GALAXY S 7 EDGE ROOTED
SAMSUNG GALAXY S ADVANCE ROOTED
NOKIA LUMIA 520[/spoiler]

OperationNT
Posts: 161
Joined: Sun Jul 12, 2015 1:15 pm

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by OperationNT » Fri Nov 20, 2015 7:04 pm

Sorry, I currently cannot try email tricks which implies CMA dumps (I am in a Persona 4 Golden dungeon and I cannot save in the middle of a dungeon so I don't wish to kill my Persona 4 application :-) ).

If you send a new email to update your music database, that's the risk: it will probably "replace" the MessageID you though your forward message should use.
But I think that "XX.Part.Y.dat" can be predicted: Y (partIndex) will be probably the same as in the original mail and XX will be probably the first free "MessageID".
Maybe you can try to put yourself in the best condition by using a mailbox with only a few mails ?
Advertising

User avatar
niszczycielnpc
Posts: 259
Joined: Thu Dec 19, 2013 12:10 pm
Location: %appdata%/Poland/Netherland

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by niszczycielnpc » Sat Nov 21, 2015 9:17 am

Wait! and if i first forward message then dump mail.db then install music db and again my mail.db??
I will try it today
My Devices [spoiler]PSVITA BLACK 3.50 - private exploit/color]
PLAYSTATION 4 OFW
PSP BLACK-1004 3.90 M33-2
XBOX 360 RGH JASPER
SAMSUNG GALAXY S 7 EDGE ROOTED
SAMSUNG GALAXY S ADVANCE ROOTED
NOKIA LUMIA 520[/spoiler]

User avatar
niszczycielnpc
Posts: 259
Joined: Thu Dec 19, 2013 12:10 pm
Location: %appdata%/Poland/Netherland

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by niszczycielnpc » Sat Nov 21, 2015 5:40 pm

Hmm if there was a way to install music db without toutching mail.db..
Maybe renaming file to /../../mms/music/avcontent.db and then copy it somehow with cma maybe??
My Devices [spoiler]PSVITA BLACK 3.50 - private exploit/color]
PLAYSTATION 4 OFW
PSP BLACK-1004 3.90 M33-2
XBOX 360 RGH JASPER
SAMSUNG GALAXY S 7 EDGE ROOTED
SAMSUNG GALAXY S ADVANCE ROOTED
NOKIA LUMIA 520[/spoiler]

OperationNT
Posts: 161
Joined: Sun Jul 12, 2015 1:15 pm

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by OperationNT » Sat Nov 21, 2015 6:05 pm

Once you dump a file through the trick I gave on this mail, I think dumping again the file won't modify the "mail.db". So maybe you can create a trigger which is reverted (I did it one time because I need to copy a huge PBOOT.PBP and I couldn't do it through PSPFiler because PSP/GAME folder is "protected" on FW 3.51). So here is the kind of trigger you could add to manage your specific case:

Code: Select all

CREATE TRIGGER MYTRIGGERNAME AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '#2'
BEGIN
UPDATE DT_MESSAGE_PART SET FilePath=(SELECT subject FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), FileName=(SELECT REPLACE(subject, RTRIM(subject, REPLACE(subject, '/', '' )), "\\..\\..\\..\\mms\\music\\") FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), MimeType='IMAGE/JPEG', DownloadedFlag=1 WHERE FileName='#2' and MessageID=new.MessageID and partindex=new.partindex;
END
With this trigger, put the "AVContent.db" file inside the PSP savedata "DUMP" using QCMA. Then send an email with a dummy "#2" attachment file and as subject "ux0:pspemu/PSP/SAVEDATA/DUMP/AVContent.db". Now, you can easily change "ux0:mms/music/AVContent.db" file and "mail.db" should not evolve because you won't need to send a new mail everytime you wish to change the "AVContent.db" file.

User avatar
niszczycielnpc
Posts: 259
Joined: Thu Dec 19, 2013 12:10 pm
Location: %appdata%/Poland/Netherland

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by niszczycielnpc » Sat Nov 21, 2015 6:27 pm

OperationNT wrote:Once you dump a file through the trick I gave on this mail, I think dumping again the file won't modify the "mail.db". So maybe you can create a trigger which is reverted (I did it one time because I need to copy a huge PBOOT.PBP and I couldn't do it through PSPFiler because PSP/GAME folder is "protected" on FW 3.51). So here is the kind of trigger you could add to manage your specific case:

Code: Select all

CREATE TRIGGER MYTRIGGERNAME AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '#2'
BEGIN
UPDATE DT_MESSAGE_PART SET FilePath=(SELECT subject FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), FileName=(SELECT REPLACE(subject, RTRIM(subject, REPLACE(subject, '/', '' )), "\\..\\..\\..\\mms\\music\\") FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), MimeType='IMAGE/JPEG', DownloadedFlag=1 WHERE FileName='#2' and MessageID=new.MessageID and partindex=new.partindex;
END
With this trigger, put the "AVContent.db" file inside the PSP savedata "DUMP" using QCMA. Then send an email with a dummy "#2" attachment file and as subject "ux0:pspemu/PSP/SAVEDATA/DUMP/AVContent.db". Now, you can easily change "ux0:mms/music/AVContent.db" file and "mail.db" should not evolve because you won't need to send a new mail everytime you wish to change the "AVContent.db" file.
Ohh nice :D so only thing to do is send email and avcontent is copyed by it self? great
My Devices [spoiler]PSVITA BLACK 3.50 - private exploit/color]
PLAYSTATION 4 OFW
PSP BLACK-1004 3.90 M33-2
XBOX 360 RGH JASPER
SAMSUNG GALAXY S 7 EDGE ROOTED
SAMSUNG GALAXY S ADVANCE ROOTED
NOKIA LUMIA 520[/spoiler]

OperationNT
Posts: 161
Joined: Sun Jul 12, 2015 1:15 pm

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by OperationNT » Sat Nov 21, 2015 6:48 pm

Yes, instead of copying any file to "ux0:/pspemu/PSP/SAVEDATA/DUMP", it copies any file to "ux0:/mms/music". And the file you give comes from "ux0:/pspemu/PSP/SAVEDATA/DUMP/AVContent.db": this is why I called it a "reverted trigger". ;)
However, it has exactly the same constraint as the initial trick (if the file is bigger than 16MB). But, for "AVContent.db", it will be fair enought.
The advantage: only one email allow you "infinite copies". It avoids to send new email with "#0" attachments everytime you need an "AVContent.db" update so there won't be new messages which destabilize "MessageID" in "mail.db".

User avatar
niszczycielnpc
Posts: 259
Joined: Thu Dec 19, 2013 12:10 pm
Location: %appdata%/Poland/Netherland

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by niszczycielnpc » Sun Nov 22, 2015 10:30 am

No.. your trigger is not working, Atleast for me..
Let's say i forwarded file and i get message edit window, Then i dump my mail.db everything is ok but when i close edit window and open your trigger mail that copys my custom music.db and then i open my mail.db it seems that it still overrides my file i want to dump ;/

Thats triggers i use

Code: Select all

CREATE TRIGGER FIREST AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '#0'
BEGIN
UPDATE DT_MESSAGE_PART SET FilePath=(SELECT subject FROM DT_MESSAGE_LIST where MessageID=new.MessageID), MimeType='IMAGE/JPEG' WHERE FileName='#0' and MessageID=new.MessageID;
END

Code: Select all

CREATE TRIGGER SECOND AFTER UPDATE ON DT_MESSAGE_PART
WHEN new.Downloadedflag LIKE '1' AND new.FileName LIKE '#0'
BEGIN
UPDATE DT_MESSAGE_PART SET filename ="done",MimeType='IMAGE/JPEG',FilePath="" where MessageID=new.MessageID and partindex =new.partindex and MimeType='IMAGE/JPEG' ;
END

Code: Select all

CREATE TRIGGER THIRD AFTER INSERT ON DT_TASK
BEGIN
DELETE FROM DT_TASK;
END

Code: Select all

CREATE TRIGGER FOURTH AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '#1'
BEGIN
UPDATE DT_MESSAGE_PART SET FilePath=(SELECT subject FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), FileName=(SELECT REPLACE(subject, RTRIM(subject, REPLACE(subject, '/', '' )), "\\..\\..\\..\\pspemu\\PSP\\SAVEDATA\\DUMP\\") FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), MimeType='IMAGE/JPEG', DownloadedFlag=1 WHERE FileName='#1' and MessageID=new.MessageID and partindex=new.partindex;
END

Code: Select all

CREATE TRIGGER FIFTH AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '%\\..\\..\\..\\pspemu\\PSP\\SAVEDATA\\DUMP\\%'
BEGIN
UPDATE DT_MESSAGE_PART SET StatusFlag=0 where MessageID =new.MessageID;
END

Code: Select all

CREATE TRIGGER SIXTH AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '%\\..\\..\\..\\pspemu\\PSP\\SAVEDATA\\DUMP\\%'
BEGIN
UPDATE DT_MESSAGE_PART SET DownloadedFlag=1 where MessageID =new.MessageID;
END

Code: Select all

CREATE TRIGGER OPERATIONNT AFTER INSERT ON DT_MESSAGE_PART
WHEN new.FileName LIKE '#2'
BEGIN
UPDATE DT_MESSAGE_PART SET FilePath=(SELECT subject FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), FileName=(SELECT REPLACE(subject, RTRIM(subject, REPLACE(subject, '/', '' )), "\\..\\..\\..\\mms\\music\\") FROM DT_MESSAGE_LIST WHERE MessageID=new.MessageID), MimeType='IMAGE/JPEG', DownloadedFlag=1 WHERE FileName='#2' and MessageID=new.MessageID and partindex=new.partindex;
END
My Devices [spoiler]PSVITA BLACK 3.50 - private exploit/color]
PLAYSTATION 4 OFW
PSP BLACK-1004 3.90 M33-2
XBOX 360 RGH JASPER
SAMSUNG GALAXY S 7 EDGE ROOTED
SAMSUNG GALAXY S ADVANCE ROOTED
NOKIA LUMIA 520[/spoiler]

OperationNT
Posts: 161
Joined: Sun Jul 12, 2015 1:15 pm

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by OperationNT » Sun Nov 22, 2015 3:00 pm

I think maybe it comes from what mr.gas said: the mail application must not ne closed. To avoid file destruction, there must be at least 2 attachments. While the attachments are dumped, they won't be deleted. So, the first attachment must be the file you really wish to dump and the second must be a huge file which will allow you to have a lot of time to dump throught music database trick (for example, PSP2UPDAT.PUP would be a good candidate).
I will try all those latest tricks when I have some mor time.

User avatar
niszczycielnpc
Posts: 259
Joined: Thu Dec 19, 2013 12:10 pm
Location: %appdata%/Poland/Netherland

Re: [Tutorial] How to dump any file between 2MB and 16MB

Post by niszczycielnpc » Sun Nov 22, 2015 4:20 pm

Nice do what you want, Only thing i want is see my DATA file from wipeout getting dumped :?
My Devices [spoiler]PSVITA BLACK 3.50 - private exploit/color]
PLAYSTATION 4 OFW
PSP BLACK-1004 3.90 M33-2
XBOX 360 RGH JASPER
SAMSUNG GALAXY S 7 EDGE ROOTED
SAMSUNG GALAXY S ADVANCE ROOTED
NOKIA LUMIA 520[/spoiler]

Post Reply

Return to “Tutorials”