Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2006
    Messaggi
    150

    Strano codice javascript nel mio sorgente.. E' un attacco ?

    Salve,
    mi sono accorto da qualche giorno che alcuni miei siti hostati su hosting diversi, alcuni su un dedicato e alcuni su hosting condiviso (il server dedicato e quello condiviso si trovano in locazioni geografiche diverse ) si comportavano in modo anomalo nel senso che si apriva uno strano link alla chiusura del browser o cliccando su qualsiasi link...la prima volta non gli ho dato peso ma poi ho guardato nel sorgente e mi sono accorto che c'è questo codice javascript:

    Codice PHP:
    <script language="javascript">if (navigator.cookieEnabled){var pop_under null;var pop_cookie_name "advmaker_komap";var pop_timeout 720;function pop_cookie_enabled(){var is_enabled false;if (!window.opera && !navigator.cookieEnabled)return is_enabled;if (typeof document.cookie == 'string')if (document.cookie.length == 0){document.cookie "test";is_enabled document.cookie == 'test';document.cookie '';}else{is_enabled true;}return is_enabled;}function pop_getCookie(name){var cookie " " document.cookie;var search " " name "=";var setStr null;var offset 0;var end 0;if (cookie.length 0){offset cookie.indexOf(search);if (offset != -1){offset += search.length;end cookie.indexOf(";"offset);if (end == -1){end cookie.length;}setStr unescape(cookie.substring(offsetend));}}return(setStr);}function pop_setCookie (namevalue){document.cookie name "=" escape(value) + "; expires=Friday,31-Dec-50 23:59:59 GMT; path=/;";}function show_pop(){var pop_wnd "http://kipolon.com/ld/prox/";var fea_wnd "scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";var need_open true;if (document.onclick_copy != null)document.onclick_copy();if (document.body.onbeforeunload_copy != null)document.body.onbeforeunload_copy();if (pop_under != null){if (!pop_under.closed)need_open false;}if (need_open){if (pop_cookie_enabled()){val pop_getCookie(pop_cookie_name);if (val != null){now = new Date();val2 = new Date(val);utc32 Date.UTC(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds());utc2 Date.UTC(val2.getFullYear(), val2.getMonth(), val2.getDate(), val2.getHours(), val2.getMinutes(), val2.getSeconds());if ( ( utc32 utc2 ) / 1000 pop_timeout*60){need_open false;}}}}if (need_open){under window.open(pop_wnd""fea_wnd);under.blur();window.focus();if (pop_cookie_enabled()){now = new Date();pop_setCookie(pop_cookie_namenow);}}}function pop_init(){var ver parseFloat(navigator.appVersion);var ver2 = (navigator.userAgent.indexOf("Windows 95")>=|| navigator.userAgent.indexOf("Windows 98")>=|| navigator.userAgent.indexOf("Windows NT")>=)&&(navigator.userAgent.indexOf('Opera') == -1)&&(navigator.appName != 'Netscape') &&(navigator.userAgent.indexOf('MSIE') > -1) &&(navigator.userAgent.indexOf('SV1') > -1) &&(ver >= 4);if (ver2){if (document.links){for (var i=0i<document.links.lengthi++){if (document.links[i].target != "_blank"){document.links[i].onclick_copy document.links[i].onclick;document.links[i].onclick show_pop;}}}}document.onclick_copy document.onclick;document.onmouseup show_pop;}pop_init();}</script> 

    responsabile di tutto.

    Come hanno fatto a mettermelo ? Conoscono i miei accessi FTP? E' un attacco hacker ??

  2. #2
    Utente bannato
    Registrato dal
    Jun 2003
    Messaggi
    3,357

    Re: Strano codice javascript nel mio sorgente.. E' un attacco ?

    Originariamente inviato da greystone
    Salve,
    mi sono accorto da qualche giorno che alcuni miei siti hostati su hosting diversi, alcuni su un dedicato e alcuni su hosting condiviso (il server dedicato e quello condiviso si trovano in locazioni geografiche diverse ) si comportavano in modo anomalo nel senso che si apriva uno strano link alla chiusura del browser o cliccando su qualsiasi link...la prima volta non gli ho dato peso ma poi ho guardato nel sorgente e mi sono accorto che c'è questo codice javascript:

    Codice PHP:
    <script language="javascript">if (navigator.cookieEnabled){var pop_under null;var pop_cookie_name "advmaker_komap";var pop_timeout 720;function pop_cookie_enabled(){var is_enabled false;if (!window.opera && !navigator.cookieEnabled)return is_enabled;if (typeof document.cookie == 'string')if (document.cookie.length == 0){document.cookie "test";is_enabled document.cookie == 'test';document.cookie '';}else{is_enabled true;}return is_enabled;}function pop_getCookie(name){var cookie " " document.cookie;var search " " name "=";var setStr null;var offset 0;var end 0;if (cookie.length 0){offset cookie.indexOf(search);if (offset != -1){offset += search.length;end cookie.indexOf(";"offset);if (end == -1){end cookie.length;}setStr unescape(cookie.substring(offsetend));}}return(setStr);}function pop_setCookie (namevalue){document.cookie name "=" escape(value) + "; expires=Friday,31-Dec-50 23:59:59 GMT; path=/;";}function show_pop(){var pop_wnd "http://kipolon.com/ld/prox/";var fea_wnd "scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0";var need_open true;if (document.onclick_copy != null)document.onclick_copy();if (document.body.onbeforeunload_copy != null)document.body.onbeforeunload_copy();if (pop_under != null){if (!pop_under.closed)need_open false;}if (need_open){if (pop_cookie_enabled()){val pop_getCookie(pop_cookie_name);if (val != null){now = new Date();val2 = new Date(val);utc32 Date.UTC(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds());utc2 Date.UTC(val2.getFullYear(), val2.getMonth(), val2.getDate(), val2.getHours(), val2.getMinutes(), val2.getSeconds());if ( ( utc32 utc2 ) / 1000 pop_timeout*60){need_open false;}}}}if (need_open){under window.open(pop_wnd""fea_wnd);under.blur();window.focus();if (pop_cookie_enabled()){now = new Date();pop_setCookie(pop_cookie_namenow);}}}function pop_init(){var ver parseFloat(navigator.appVersion);var ver2 = (navigator.userAgent.indexOf("Windows 95")>=|| navigator.userAgent.indexOf("Windows 98")>=|| navigator.userAgent.indexOf("Windows NT")>=)&&(navigator.userAgent.indexOf('Opera') == -1)&&(navigator.appName != 'Netscape') &&(navigator.userAgent.indexOf('MSIE') > -1) &&(navigator.userAgent.indexOf('SV1') > -1) &&(ver >= 4);if (ver2){if (document.links){for (var i=0i<document.links.lengthi++){if (document.links[i].target != "_blank"){document.links[i].onclick_copy document.links[i].onclick;document.links[i].onclick show_pop;}}}}document.onclick_copy document.onclick;document.onmouseup show_pop;}pop_init();}</script> 

    responsabile di tutto.

    Come hanno fatto a mettermelo ? Conoscono i miei accessi FTP? E' un attacco hacker ??
    tennicooooo

    che bella giornata oggi

  3. #3
    il post è tennico e va aperto nelle sezioni specifiche, cmq sarà solo l'hoster che ti mette un po' di pubblicità. In genere quando attaccano un sito non ti mettono su dei pop up

  4. #4
    Utente bannato
    Registrato dal
    Jun 2003
    Messaggi
    3,357
    Originariamente inviato da krakovia
    il post è tennico e va aperto nelle sezioni specifiche, cmq sarà solo l'hoster che ti mette un po' di pubblicità. In genere quando attaccano un sito non ti mettono su dei pop up
    e i push up?

  5. #5
    Originariamente inviato da scimmietta1
    e i push up?
    solo in quelli per le tardone

  6. #6
    apperò!!! Guarda qua

  7. #7
    Moderatore di Off Topic, Kickstarter e XML L'avatar di Sky
    Registrato dal
    Jul 2000
    residenza
    Roma
    Messaggi
    1,053
    Puoi scrivere nel forum dedicato a javascript: http://forum.html.it/forum/forumdisplay.php?forumid=3
    Chiudo questo thread
    Lo Stato deve dare ai cittadini, come diritto, ciò che la mafia dà come favore.
    Carlo Alberto dalla Chiesa

    Facebook | Twitter | Last.fm | LinkedIn | Quora

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.