Help?
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?
“When you die I will laminate you’re skeleton and pose you in the lobby.”
Veni Vidi Vici
“When you die I will laminate you’re skeleton and pose you in the lobby.”
Veni Vidi Vici
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.
You could try sql or like on real level xmas log in and change it it some thing like anonymous was here.
“When you die I will laminate you’re skeleton and pose you in the lobby.”
Veni Vidi Vici
“When you die I will laminate you’re skeleton and pose you in the lobby.”
Veni Vidi Vici
“When you die I will laminate you’re skeleton and pose you in the lobby.”
Veni Vidi Vici
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%)
“When you die I will laminate you’re skeleton and pose you in the lobby.”
Veni Vidi Vici