Sinisterly
[HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Hacking (https://sinister.ly/Forum-Hacking)
+--- Forum: Hacking Tools (https://sinister.ly/Forum-Hacking-Tools)
+--- Thread: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others (/Thread-HC-Official-ShortURLScanner-get-the-real-URL-of-adfly-tinyURL-and-others)

Pages: 1 2


[HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - Deque - 02-08-2013

ShortURLScanner

[Image: oq9agbc9.png]

You would like to see what is behind a link like http://adf.ly/ESg4z, but don't want to click on it, as you don't know where it really directs you to? You don't want to be forced to wait and see ads?
This program shows you the real target of a shortened URL or of ad-links from adfly and others (see below for supported sites).

Supports the following ad link sites:
adfly
adfoc
linkbucks

Supports at least the following URL shortener services (others might work too, just try it out):
goo.gl
dashburst.com
gg.gg
bit.ly
tinurl.com
is.gd
ow.ly
x.co
po.st
tiny.cc
mcaf.ee

Requirements: Java 1.7

Program download: http://www.multiupload.nl/GS6Y9MSCP4
Source: http://www.hackcommunity.com/Thread-Java-RedirectScanner-show-real-URL

Any problems?

The ad-link services sometimes change their source to disable programs like these. So if you encounter any links that don't work with this program, please tell me and give an example link for me to test. I will correct my program as soon as I know about this.


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - Retardbre - 02-08-2013

Awesome Programm, been looking for something like this.
Thank you Sir.

Regards


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - The Alchemist - 02-08-2013

OMG! This'll work adf.ly links too? I think I can make one for goo.gl , puu.sh links, and similar ones(using PHP). But adf.ly, adfoc, etc. I wonder how you did them. Was thinking of making a PHP script for this, that'd only work for goo.gl, and similar ones that do not make us wait for 5 seconds and then, make us click. I've researched about this, did you use something like "Rhino"?


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - Deque - 02-08-2013

(02-08-2013, 02:57 PM)The Alchemist Wrote: OMG! This'll work adf.ly links too? I think I can make one for goo.gl , puu.sh links, and similar ones(using PHP). But adf.ly, adfoc, etc. I wonder how you did them. Was thinking of making a PHP script for this, that'd only work for goo.gl, and similar ones that do not make us wait for 5 seconds and then, make us click. I've researched about this, did you use something like "Rhino"?

What is Rhino?
No, look at the source, that I published here: http://www.hackcommunity.com/Thread-Java-RedirectScanner-show-real-URL

First thing I did, was looking at the source of the website of an adfly link, i.e. I shrinked www.google.com. There you find this function for the counter in the source:

Code:
function counter() {
                        var zzz = 'http://www.google.com';

                                                _.G("skip_button").href = zzz
                        
                        
                        countdown = countdown-1;
                        if (countdown <= 5 && countdown >= 0) {
                            _.G("countdown").innerHTML = countdown + ' ' + waitmsg;
                        }
                        if (countdown == 1 && flash_loaded) {
                            if(!called_from_backup){
                                paid = true;
                                sendInt();
                            }
                        }
                        if (countdown == -1) {
                            skip_ad1 = true;
                            if(easyUrl == 'true'){
                                if(location.hash) { zzz = zzz + location.hash; }
                                _.G("skip_button").href = zzz;
                                loaded = true;
                            }
                            showSkip(loaded);
                            clearInterval(t);
                        }
                    }

As you can see var zzz is the variable that holds the target URL.
You just have to extract the value from it. I did it in Java like this:

Code:
if (line.contains("var zzz =")) {
                    return line.split("'")[1];
}

Every ad link service does it in a different way, so you have to look at all of them in order to make it work.
linkbucks made me sick, because it has so many different domains and I still don't know if I got all of them.


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - The Alchemist - 02-08-2013

Ow... You're right.. I'd always thought that the javascript was included using the <link> tags in the HTML files instead of being written in the HTML file itself... Thats why I didnt even care to look at the source of any afd.ly link... Anyways, thanks for explaining.. And good work..


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - chmod - 02-08-2013

Very nice will come in useful thanks


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - Rocky Ajwani - 02-08-2013

Thanks A Lot Brother Wink I wish i could be a good programmer :/ not have good knowledge of programming but good in web designing ;D


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - hackboy - 07-30-2013

nice programe dude just add .TK also .thank you


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - bmchris - 07-30-2013

So, no more ads, awesome!!!!!:Thumbs-Up:


RE: [HC Official] ShortURLScanner - get the real URL of adfly, tinyURL and others - bigbrain750 - 08-05-2013

very nice and very helpful !:Cool: