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

Evil function

Total_Noob's PSP Emulator Custom Firmware for the Vita. CEF can be downloaded here.
User avatar
The Z
VIP
Posts: 5505
Joined: Thu Jan 27, 2011 4:26 pm
Location: Deutschland
Contact:

Re: Evil function

Post by The Z » Wed Mar 18, 2015 8:50 am

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).
Advertising
White PSV TV - 32GB - 3.65 CFW
White PSV 1000 - 32GB - 3.65 CFW
2x PSV 2000 - 32/64GB - 3.65 CFW
PSP Fat 1000 - TA-081 - 6.61 ME-2.3
PSP Slim 2000 - TA-085¹ - 6.61 ME-2.3
4x PSPgo & 1x PSP 3kº⁴ᶢ - 6.61 LME-2.3∞

RandQalan
Posts: 468
Joined: Sun Aug 18, 2013 10:43 am

Re: Evil function

Post by RandQalan » Wed Mar 18, 2015 10:03 am

another words was trying to delete everything on the Z MS :lol: :o sorry about that Z :D
Advertising
Image

User avatar
haxxey
Big Beholder
Posts: 567
Joined: Sat Jul 21, 2012 10:52 am
Location: Lurking /talk

Re: Evil function

Post by haxxey » Wed Mar 18, 2015 10:41 am

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?
We are such stuff as dreams are made on, and our little life is rounded with a sleep.

User avatar
Freakler
Posts: 139
Joined: Sat Dec 29, 2012 10:04 am
Location: Germany
Contact:

Re: Evil function

Post by Freakler » Wed Mar 18, 2015 10:58 am

Yes its a conditional-Or.

So, if only one of the 3 is true already, remove() will be executed..
PSVita 1001 - 3.60
PSVita 1004 - 3.60 IDU
PSVita 1004 - 2.02 TN-V
PSP 2004 - 6.60 ME-1.8 (TA-085v1)
PSP 1004 - 5.00 M33-6 (TA-081)

xfullmetal17
Posts: 76
Joined: Sun Aug 10, 2014 4:11 am

Re: Evil function

Post by xfullmetal17 » Wed Mar 18, 2015 12:12 pm

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?
Always follow *all* steps of the friendly tutorial. They aren't there just as 'guidelines.'

User avatar
Kankertje
Moderator
Posts: 830
Joined: Mon Apr 23, 2012 12:22 pm
Contact:

Re: Evil function

Post by Kankertje » Wed Mar 18, 2015 12:17 pm

@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

wth
HBL Developer
Posts: 834
Joined: Wed Aug 31, 2011 4:44 pm
Contact:

Re: Evil function

Post by wth » Wed Mar 18, 2015 12:19 pm

@The Z So did you get caught or managed to avoid it btw ? ^^

User avatar
The Z
VIP
Posts: 5505
Joined: Thu Jan 27, 2011 4:26 pm
Location: Deutschland
Contact:

Re: Evil function

Post by The Z » Wed Mar 18, 2015 12:33 pm

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 :)
White PSV TV - 32GB - 3.65 CFW
White PSV 1000 - 32GB - 3.65 CFW
2x PSV 2000 - 32/64GB - 3.65 CFW
PSP Fat 1000 - TA-081 - 6.61 ME-2.3
PSP Slim 2000 - TA-085¹ - 6.61 ME-2.3
4x PSPgo & 1x PSP 3kº⁴ᶢ - 6.61 LME-2.3∞

ANU815
Posts: 118
Joined: Tue Jan 07, 2014 5:55 pm

Re: Evil function

Post by ANU815 » Wed Mar 18, 2015 3:12 pm

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?

User avatar
The Z
VIP
Posts: 5505
Joined: Thu Jan 27, 2011 4:26 pm
Location: Deutschland
Contact:

Re: Evil function

Post by The Z » Wed Mar 18, 2015 3:22 pm

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.
White PSV TV - 32GB - 3.65 CFW
White PSV 1000 - 32GB - 3.65 CFW
2x PSV 2000 - 32/64GB - 3.65 CFW
PSP Fat 1000 - TA-081 - 6.61 ME-2.3
PSP Slim 2000 - TA-085¹ - 6.61 ME-2.3
4x PSPgo & 1x PSP 3kº⁴ᶢ - 6.61 LME-2.3∞

Locked

Return to “TN CEF”