Help?

Wibben
11 years ago

0

Hi guys, my friend has a site, and he is challenging me to “hack” it in some way, it’s a simple url shortener with an IP logger, so does anyone have an idea? His website is here. I’m 100% certain this is not illegal, he challenged me to do it and to be honest, I’m stumped as to where to start. Please help?

10replies
2voices
207views
1image
James Singh [cpn1000]
11 years ago

0

Hey were are friends let me help I WOULD LOOOOVE TO!!!!!!!!!!!!!!!!!

James Singh [cpn1000]
11 years ago

0

Image

Wibben
11 years ago

0

I looked through his main.js, and took what i think is important:
```var URLprefix = “http://bare.im/”;
var button = “#shorten”;
var input = “#url”;
var addErr = “#additional-error”;

$(document).ready(function () {
$(input).focus();
$(input).keypress(function (a) {
if (a.which == 13) {
submit()
}
})
});

function getClasses(a) {
return a.split(/\s+/)
}

function Shortened(a) {
$(button).html(“Shortened!”);
changeColour(“green”);
DisableButton();
$(input).val(a);
$(input).focus();
$(input).select()
}

function submit() {
var c = false;
var b = getClasses($(button).attr(“class”));
$.each(b, function (f, h) {
if (h == “disabled”) {
var g = true
}
});
if ($(input).val() != “” && !c) {
succ = false;
$(button).html(“Shortening…”);
DisableButton();
var a = $(input).val(),
e = {
url: a
};
var d = $.ajax({
cache: false,
type: “POST”,
url: “validate.php”,
data: e,
});
d.done(function (f) {
if ($(f).find(“success”).text() == “true”) {
Shortened(URLprefix + $(f).find(“code”).text());
EnableWhenUpdate()
}
succ = true
});
}
};```
And also, if this website is not hackable (I probably just made that up), please let me know, so I can get back to school projects and not waste my time trying to find a flaw. I think his original challenge was to access his database or soem sort of table on his website.

James Singh [cpn1000]
11 years ago

0

You could try sql or like on real level xmas log in and change it it some thing like anonymous was here.

James Singh [cpn1000]
11 years ago

0

log sorry I ment level.

James Singh [cpn1000]
11 years ago

0

Like I said before and then change the trues to false. (I guess)

Wibben
11 years ago

0

maybe shorten everything down to one post? And can you put it in a clear sentence that i can understand? (I’m still kind of a skiddie even though I almost have 100%)

Wibben
11 years ago

0

anyone have an idea of how to get this website? Or if it’s even hackable at all?

James Singh [cpn1000]
11 years ago

0

Ask you friend to give you permission to give me permission to hack it and I’ll help more.

Wibben
11 years ago

0

he did, he told me to use whatever resources I can to try to hack his small site

You must be logged in to reply to this discussion. Login
1 of 11

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss