29/11/2010, 11:24
|
المشاركة رقم: 1
|
| المعلومات |
| الكاتب: |
|
| اللقب: |
عضــــو جديــــد |
| الصورة الرمزية |
|
|
| البيانات |
| التسجيل : |
Nov 2010 |
| العضوية : |
870 |
| الاهتمامات : |
|
| الإقامة : |
|
| المواضيع : |
4 |
| الردود : |
11 |
| المجموع : |
15 |
| بمعدل : |
0.00 يوميا |
| الاختراقات : |
[ليس لدي حساب] |
| مجتمعنا : |
[] |
| الصنف : |
Black Hat Hacker |
| آخر تواجد : |
11/05/2016/03:36 |
| سبب الغياب : |
حاظر |
| معدل التقييم: |
0 |
| نقاط التقييم: |
10 |
شكراً: 0
تم شكره مرة واحدة في مشاركة واحدة
| الإتصالات |
| الحالة: |
|
| وسائل الإتصال: |
|
|
لا يوجد جواب: هل هذه ثغرة وكيف يمكن إستغلالها
السلام عليكم ورحمة الله وبركاته تقريبا يوم من البحث وجدت هذا
هل هيا ثغرة وكيف يمكن إستغلاله الله يرحم والديكم ساعدوني
اقتباس:
var rate = 20; // increase amount(the degree of the transmutation)
////////////////////////////////////////////////////////////////////
// main routine
if (document.getelementbyid)
window.onerror=new function("return true")
var objactive; // the object which event occured in
var act = 0; // flag during the action
var elmh = 0; // hue
var elms = 128; // saturation
var elmv = 255; // value
var clrorg; // a color before the change
var timerid; // timer id
if (document.all) {
document.onmouseover = dorainbowanchor;
document.onmouseout = stoprainbowanchor;
}
else if (document.getelementbyid) {
document.captureevents(event.mouseover | event.mouseout);
document.onmouseover = mozilla_dorainbowanchor;
document.onmouseout = mozilla_stoprainbowanchor;
}
//================================================== ===========================
// dorainbow
// this function begins to change a color.
//================================================== ===========================
function dorainbow(obj)
{
if (act == 0) {
act = 1;
if (obj)
objactive = obj;
else
objactive = event.srcelement;
clrorg = objactive.style.color;
timerid = setinterval("changecolor()",100);
}
}
//================================================== ===========================
// stoprainbow
// this function stops to change a color.
//================================================== ===========================
function stoprainbow()
{
if (act) {
objactive.style.color = clrorg;
clearinterval(timerid);
act = 0;
}
}
//================================================== ===========================
// dorainbowanchor
// this function begins to change a color. (of a anchor, automatically)
//================================================== ===========================
function dorainbowanchor()
{
if (act == 0) {
var obj = event.srcelement;
while (obj.tagname != 'a' && obj.tagname != 'body') {
obj = obj.parentelement;
if (obj.tagname == 'a' || obj.tagname == 'body')
break;
}
if (obj.tagname == 'a' && obj.href != '') {
objactive = obj;
act = 1;
clrorg = objactive.style.color;
timerid = setinterval("changecolor()",100);
}
}
}
//================================================== ===========================
// stoprainbowanchor
// this function stops to change a color. (of a anchor, automatically)
//================================================== ===========================
function stoprainbowanchor()
{
if (act) {
if (objactive.tagname == 'a') {
objactive.style.color = clrorg;
clearinterval(timerid);
act = 0;
}
}
}
//================================================== ===========================
// mozilla_dorainbowanchor(for netscape6 and mozilla browser)
// this function begins to change a color. (of a anchor, automatically)
//================================================== ===========================
function mozilla_dorainbowanchor(e)
{
if (act == 0) {
obj = e.target;
while (obj.nodename != 'a' && obj.nodename != 'body') {
obj = obj.parentnode;
if (obj.nodename == 'a' || obj.nodename == 'body')
break;
}
if (obj.nodename == 'a' && obj.href != '') {
objactive = obj;
act = 1;
clrorg = obj.style.color;
timerid = setinterval("changecolor()",100);
}
}
}
//================================================== ===========================
// mozilla_stoprainbowanchor(for netscape6 and mozilla browser)
// this function stops to change a color. (of a anchor, automatically)
//================================================== ===========================
function mozilla_stoprainbowanchor(e)
{
if (act) {
if (objactive.nodename == 'a') {
objactive.style.color = clrorg;
clearinterval(timerid);
act = 0;
}
}
}
//================================================== ===========================
// change color
// this function changes a color actually.
//================================================== ===========================
function changecolor()
{
objactive.style.color = makecolor();
}
//================================================== ===========================
// makecolor
// this function makes rainbow colors.
//================================================== ===========================
function makecolor()
{
// don't you think color gamut to look like rainbow?
// hsvtorgb
if (elms == 0) {
elmr = elmv; elmg = elmv; elmb = elmv;
}
else {
t1 = elmv;
t2 = (255 - elms) * elmv / 255;
t3 = elmh % 60;
t3 = (t1 - t2) * t3 / 60;
if (elmh < 60) {
elmr = t1; elmb = t2; elmg = t2 + t3;
}
else if (elmh < 120) {
elmg = t1; elmb = t2; elmr = t1 - t3;
}
else if (elmh < 180) {
elmg = t1; elmr = t2; elmb = t2 + t3;
}
else if (elmh < 240) {
elmb = t1; elmr = t2; elmg = t1 - t3;
}
else if (elmh < 300) {
elmb = t1; elmg = t2; elmr = t2 + t3;
}
else if (elmh < 360) {
elmr = t1; elmg = t2; elmb = t1 - t3;
}
else {
elmr = 0; elmg = 0; elmb = 0;
}
}
elmr = math.floor(elmr).tostring(16);
elmg = math.floor(elmg).tostring(16);
elmb = math.floor(elmb).tostring(16);
if (elmr.length == 1) elmr = "0" + elmr;
if (elmg.length == 1) elmg = "0" + elmg;
if (elmb.length == 1) elmb = "0" + elmb;
elmh = elmh + rate;
if (elmh >= 360)
elmh = 0;
return '#' + elmr + elmg + elmb;
}
|
انتظر ردكم بفارغ الصبر
|
|
|