Page 2 of 3

Re: Evil function

Posted: Wed Mar 18, 2015 8:50 am
by The Z
Darth Agnon wrote:Cofucius say, "Imitation, the sincerest form of flattery."
Just wondering, what does that plugin code do?
Live long and prosper, all.

Code: Select all

if(!memcmp(buffer1, sha_1, 20) || !memcmp(buffer2, sha_2, 20) || !memcmp(buffer3, sha_3, 20))
                remove("ms0:");
Pretty much delete (all) content from ms0:/ (this is the memory stick), if given conditions are met (It checks for a PSN username, a PSN email address and a PSN account ID).

Re: Evil function

Posted: Wed Mar 18, 2015 10:03 am
by RandQalan
another words was trying to delete everything on the Z MS :lol: :o sorry about that Z :D

Re: Evil function

Posted: Wed Mar 18, 2015 10:41 am
by haxxey
The Z wrote:
Darth Agnon wrote:Cofucius say, "Imitation, the sincerest form of flattery."
Just wondering, what does that plugin code do?
Live long and prosper, all.

Code: Select all

if(!memcmp(buffer1, sha_1, 20) || !memcmp(buffer2, sha_2, 20) || !memcmp(buffer3, sha_3, 20))
                remove("ms0:");
Pretty much delete (all) content from ms0:/ (this is the memory stick), if given conditions are met (It checks for a PSN username, a PSN email address and a PSN account ID).
|| means or, right? So it only needs one of three?

Re: Evil function

Posted: Wed Mar 18, 2015 10:58 am
by Freakler
Yes its a conditional-Or.

So, if only one of the 3 is true already, remove() will be executed..

Re: Evil function

Posted: Wed Mar 18, 2015 12:12 pm
by xfullmetal17
And this is why you ALWAYS back up your memory card when you install a new mod or homebrew, in case of rogue code like this... Might be a slow process and take a while, but it can save data.

Slightly noob-ish question, does ms0: just have the ePSP stuff, or are the Vita games/saves/content at that path too?

Re: Evil function

Posted: Wed Mar 18, 2015 12:17 pm
by Kankertje
@Gbro :D
xfullmetal17 wrote:
Slightly noob-ish question, does ms0: just have the ePSP stuff, or are the Vita games/saves/content at that path too?
ms0 is ux0:/pspemu/ , no vita stuff there, except maybe music and photos which are shared in some way

Re: Evil function

Posted: Wed Mar 18, 2015 12:19 pm
by wth
@The Z So did you get caught or managed to avoid it btw ? ^^

Re: Evil function

Posted: Wed Mar 18, 2015 12:33 pm
by The Z
wth wrote:@The Z So did you get caught or managed to avoid it btw ? ^^
A bit of being caught and a bit of avoiding it.

I got caught in the first version, which just gave me a red screen and froze the PS1emu, but otherwise did nothing.

V2 was looked at by qwik prior to running, but in the end I tested it anyways. Backups are godsent :)

Re: Evil function

Posted: Wed Mar 18, 2015 3:12 pm
by ANU815
I'm no programmer, but I can read basic code. How are people considering this "malware" if it's just focused at the Z? What is the condition that needs to be met for it to delete the m0:/ PSP data? Looks like it's only set to format if you try to modify the file? Or am I reading that incorrectly? It's no secret that there's no love lost between the two of these guys. Wasn't there even a psp CFW back in the day that blocked certain sites and people were afraid of bricks?

Re: Evil function

Posted: Wed Mar 18, 2015 3:22 pm
by The Z
ANU815 wrote:I'm no programmer, but I can read basic code. How are people considering this "malware" if it's just focused at the Z? What is the condition that needs to be met for it to delete the m0:/ PSP data? Looks like it's only set to format if you try to modify the file? Or am I reading that incorrectly? It's no secret that there's no love lost between the two of these guys. Wasn't there even a psp CFW back in the day that blocked certain sites and people were afraid of bricks?
One of the following three conditions has to be met for the malicious code to trigger: The PSN username is "The_Zett", the PSN login email address is the one I use for my PSN account (*censored*@gmx.de), or the account ID matches (the code contains my PSN account ID). Of course multiple things can be fulfilled, but one is enough to trigger it.

What part of "only being targeted at me" makes it non-malicious? Please explain this to me.