Ocena wątku:
- 0 głosów - średnia: 0
- 1
- 2
- 3
- 4
- 5
Captcha
|
Liczba postów: 2
Liczba wątków: 1
Dołączył: 19-11-2010
Reputacja:
0
19-11-2010, 20:05
(Ten post był ostatnio modyfikowany: 19-11-2010, 20:06 przez gdmk.)
Liczba postów: 341
Liczba wątków: 4
Dołączył: 15-10-2009
Reputacja:
23
19-11-2010, 20:09
(Ten post był ostatnio modyfikowany: 19-11-2010, 20:09 przez kancik.)
jakiś zaawansowany ocr pewnie to by rozszyfrował  Ale jest przeciez kilka innych technik z których można pomyślnie korzystać
Liczba postów: 2,411
Liczba wątków: 14
Dołączył: 10-08-2009
Reputacja:
132
Tak sobie pomyślałem, że można by podebrać taki obrazek, zamontować go do canvasa i za jego pomocą wykryć pxl itp. Wolne bo wolne ale dało by rade
Liczba postów: 2
Liczba wątków: 1
Dołączył: 19-11-2010
Reputacja:
0
19-11-2010, 23:05
(Ten post był ostatnio modyfikowany: 19-11-2010, 23:45 przez gdmk.)
Pomysł z canvasem byłby realny gdyby te captcha nie miały różnych struktur.
Nie znam się na tym zbyt dobrze, ale chciałbym coś zasugerować.
<input type="hidden" name="tid" value="6316581">
<input type="hidden" name="buy" value="OK">
Widać, że jest ukryty przycisk OK. Ciekawe co by się stało, jakby się go wywołało
Znalazłem źródło w java script odpowiadające captchy
Kod: <!--
var posy; // for positioning of captcha-div
var xpos; // for mouse coordinates in captcha
var ypos; // ---''---
var isItRight;
document.onmousemove = getMouse;
function getMouse(ereignis) {
var e = document.all ? window.event : ereignis;
posy = document.all ? window.event.clientY : ereignis.pageY;
return false;
}
function getDocHeight() {
var D = document;
return Math.max(
D.body.scrollHeight,
D.documentElement.scrollHeight,
D.body.offsetHeight,
D.documentElement.offsetHeight,
D.body.clientHeight,
D.documentElement.clientHeight
);
}
function getScrollY() {
if(navigator.appVersion.toLowerCase().include('msie')) {
var scrOfY = 0;
if( typeof( window.pageYOffset ) == 'number' ) {
//Netscape compliant
scrOfY = window.pageYOffset;
} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
//DOM compliant
scrOfY = document.body.scrollTop;
} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
//IE6 standards compliant mode
scrOfY = document.documentElement.scrollTop;
}
return scrOfY;
} else {
return 0;
}
}
function coords(e) {
xpos = (e.layerX? (e.layerX - 35) :
e.offsetX? e.offsetX : 0);
ypos = (e.layerY? (e.layerY - 70) :
e.offsetY? e.offsetY : 0);
}
function checkThis() {
new Ajax.Request(
'Webservices/getCaptcha.php',
{
parameters: {
x: xpos,
y: ypos,
fnc: 'checkXY'
},
method: 'post',
onSuccess: function() {
var captchaChecked = document.createElement('input');
captchaChecked.setAttribute('type', 'hidden');
captchaChecked.setAttribute('name', 'captchaChecked');
captchaChecked.setAttribute('value', 1);
$('captchaFormForm').appendChild(captchaChecked);
$('captchaFormForm').submit();
},
onFailure: function() {
replaceCaptcha();
}
}
);
}
var counter;
function captcha(eForm) {
if($('captchaForm') != null) {
$('captchaForm').remove();
}
var scrOff = getScrollY();
var top = posy - 185 + scrOff;
var splitCount = 0;
if(eForm.splitted_count != undefined && eForm.splitted_count != null) {
splitCount = eForm.splitted_count.value;
}
var tid = eForm.tid.value;
var qs = eForm.queryString.value;
new Ajax.Request(
'Webservices/getCaptcha.php',
{
parameters: {
splitCount: splitCount,
tid: tid,
buy: 'OK',
qs: qs,
imgPrfx: 'images/classic',
top: top
},
method: 'post',
onSuccess: function(transport) {
counter = window.setInterval("countdown()", 1000);
elements = $$('body');
elements[0].insert(transport.responseText);
new Effect.Grow('captchaForm', {duration: 0.2, direction: 'top-left' });
}
}
);
}
function countdown(){
var e = document.getElementById('captchaCounter');
if(e == null) {
window.clearInterval(counter);
return;
}
var s = e.innerHTML;
if(s > 1) {
s -= 1;
e.innerHTML = s;
} else {
document.getElementById('captchaCont').style.display = 'block';
document.getElementById('captchaCount').style.display = 'none';
window.clearInterval(counter);
}
}
function replaceCaptcha() {
$('captchaImg').src = 'captcha.php?' + Math.floor(Math.random() * 100001);
}
Liczba postów: 20
Liczba wątków: 0
Dołączył: 15-11-2010
Reputacja:
0
Pomogę, ale wyślij mi adres strony, na której to się znajduje.
|
Użytkownicy przeglądający ten wątek: 1 gości
|
|
Sponsorzy i przyjaciele
|
|
|