khatun

ارسال اسپم از مسیر...

4 پست در این موضوع

سلام

سایت من به دلیل ارسال اسپم مسدود شده ، از مسیر:

SPAMMER! PATH:/home/x/public_html/libraries/joomla/crypt/cipher

روی سایت هیچ ایمیلی جز ایمیل دیفالت وجود نداره، کپچا رو فعال کردم با این که هیچ فرمی روی سایت وجود نداره حتی فرم تماس.همه کاربران رو حذف کردم و امکان ثبت نام هم غیر فعال کردم ولی این ارسال اسپم وجود داره .

در این مسیرکه گفتم دو تا فایل index.html و simple.php وجود داره که داخل index.html یک سطر <!DOCTYPE html><title></title> فقط هست و محتویات داخل فایل simple.php [/align]دقیقا به شکل زیر هست. ممنون میشم راهنمایی کنید.

<?php

/**

* @package Joomla.Platform

* @subpackage Crypt

*

* @copyright Copyright © 2005 - 2014 Open Source Matters, Inc. All rights reserved.

* @license GNU General Public License version 2 or later; see LICENSE

*/

defined('JPATH_PLATFORM') or die;

/**

* JCrypt cipher for Simple encryption, decryption and key generation.

*

* @package Joomla.Platform

* @subpackage Crypt

* @since 12.1

*/

class JCryptCipherSimple implements JCryptCipher

{

/**

* Method to decrypt a data string.

*

* @param string $data The encrypted string to decrypt.

* @param JCryptKey $key The key[/pair] object to use for decryption.

*

* @return string The decrypted data string.

*

* @since 12.1

* @throws InvalidArgumentException

*/

public function decrypt($data, JCryptKey $key)

{

// Validate key.

if ($key->type != 'simple')

{

throw new InvalidArgumentException('Invalid key of type: ' . $key->type . '. Expected simple.');

}

// Initialise variables.

$decrypted = '';

$tmp = $key->public;

// Convert the HEX input into an array of integers and get the number of characters.

$chars = $this->_hexToIntArray($data);

$charCount = count($chars);

// Repeat the key as many times as necessary to ensure that the key is at least as long as the input.

for ($i = 0; $i < $charCount; $i = strlen($tmp))

{

$tmp = $tmp . $tmp;

}

// Get the XOR values between the ASCII values of the input and key characters for all input offsets.

for ($i = 0; $i < $charCount; $i++)

{

$decrypted .= chr($chars[$i] ^ ord($tmp[$i]));

}

return $decrypted;

}

/**

* Method to encrypt a data string.

*

* @param string $data The data string to encrypt.

* @param JCryptKey $key The key[/pair] object to use for encryption.

*

* @return string The encrypted data string.

*

* @since 12.1

* @throws InvalidArgumentException

*/

public function encrypt($data, JCryptKey $key)

{

// Validate key.

if ($key->type != 'simple')

{

throw new InvalidArgumentException('Invalid key of type: ' . $key->type . '. Expected simple.');

}

// Initialise variables.

$encrypted = '';

$tmp = $key->private;

// Split up the input into a character array and get the number of characters.

$chars = preg_split('//', $data, -1, PREG_SPLIT_NO_EMPTY);

$charCount = count($chars);

// Repeat the key as many times as necessary to ensure that the key is at least as long as the input.

for ($i = 0; $i < $charCount; $i = strlen($tmp))

{

$tmp = $tmp . $tmp;

}

// Get the XOR values between the ASCII values of the input and key characters for all input offsets.

for ($i = 0; $i < $charCount; $i++)

{

$encrypted .= $this->_intToHex(ord($tmp[$i]) ^ ord($chars[$i]));

}

return $encrypted;

}

/**

* Method to generate a new encryption key[/pair] object.

*

* @param array $options Key generation options.

*

* @return JCryptKey

*

* @since 12.1

*/

public function generateKey(array $options = array())

{

// Create the new encryption key[/pair] object.

$key = new JCryptKey('simple');

// Just a random key of a given length.

$key->private = $this->_getRandomKey();

$key->public = $key->private;

return $key;

}

/**

* Method to generate a random key of a given length.

*

* @param integer $length The length of the key to generate.

*

* @return string

*

* @since 12.1

*/

private function _getRandomKey($length = 256)

{

// Initialise variables.

$key = '';

$salt = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';

$saltLength = strlen($salt);

// Build the random key.

for ($i = 0; $i < $length; $i++)

{

$key .= $salt[mt_rand(0, $saltLength - 1)];

}

return $key;

}

/**

* Convert hex to an integer

*

* @param string $s The hex string to convert.

* @param integer $i The offset?

*

* @return integer

*

* @since 11.1

*/

private function _hexToInt($s, $i)

{

// Initialise variables.

$j = (int) $i * 2;

$k = 0;

$s1 = (string) $s;

// Get the character at position $j.

$c = substr($s1, $j, 1);

// Get the character at position $j + 1.

$c1 = substr($s1, $j + 1, 1);

switch ($c)

{

case 'A':

$k += 160;

break;

case 'B':

$k += 176;

break;

case 'C':

$k += 192;

break;

case 'D':

$k += 208;

break;

case 'E':

$k += 224;

break;

case 'F':

$k += 240;

break;

case ' ':

$k += 0;

break;

default:

(int) $k = $k + (16 * (int) $c);

break;

}

switch ($c1)

{

case 'A':

$k += 10;

break;

case 'B':

$k += 11;

break;

case 'C':

$k += 12;

break;

case 'D':

$k += 13;

break;

case 'E':

$k += 14;

break;

case 'F':

$k += 15;

break;

case ' ':

$k += 0;

break;

default:

$k += (int) $c1;

break;

}

return $k;

}

/**

* Convert hex to an array of integers

*

* @param string $hex The hex string to convert to an integer array.

*

* @return array An array of integers.

*

* @since 11.1

*/

private function _hexToIntArray($hex)

{

// Initialise variables.

$array = array();

$j = (int) strlen($hex) / 2;

for ($i = 0; $i < $j; $i++)

{

$array[$i] = (int) $this->_hexToInt($hex, $i);

}

return $array;

}

/**

* Convert an integer to a hexadecimal string.

*

* @param integer $i An integer value to convert to a hex string.

*

* @return string

*

* @since 11.1

*/

private function _intToHex($i)

{

// Sanitize the input.

$i = (int) $i;

// Get the first character of the hexadecimal string if there is one.

$j = (int) ($i / 16);

if ($j === 0)

{

$s = ' ';

}

else

{

$s = strtoupper(dechex($j));

}

// Get the second character of the hexadecimal string.

$k = $i - $j * 16;

$s = $s . strtoupper(dechex($k));

return $s;

}

}

Share this post


Link to post
Share on other sites
آموزش ووکامرس قالب جوملا قالب وردپرس قالب رایگان وردپرس قالب رایگان جوملا هاست نامحدود هاست جوملا هاست لاراول هاست وردپرس هاست ارزان هاست ربات تلگرام خرید دامنه آموزش ساخت ربات تلگرام با php آموزش html و css آموزش لاراول آموزش cPanel آموزش php آموزش سئو وردپرس آموزش امنیت وردپرس آموزش وردپرس آموزش فرم ساز RSform آموزش سئو جوملا آموزش فروشگاه ساز Hikashop آموزش فروشگاه ساز ویرچومارت آموزش طراحی سایت آگهی تبلیغاتی آموزش امنیت جوملا آموزش طراحی سایت فروش فایل آموزش طراحی قالب ریسپانسیو با Helix آموزش جوملا 3 آموزش ساخت ربات دکمه ی شیشه ای آموزش ساخت ربات همکاری در فروش آموزش ساخت ربات جذب ممبر آموزش ساخت ربات ضد اسپم آموزش ساخت ربات پیوست فایل سورس ربات مدیر گروه | ربات مدیر گروه همسریابی

درود بر شما

مشکل ارسال اسپم دلایل زیادی دارد اما شایعترین علت فعال نبودن کپچا میباشد یعنی کد کپچا در زمان ثبت نام از کاربر دریافت نمیشود یا بروی افزونه هایی که نیاز به فعال بودن کپچا میباشد اینکار صورت نگرفته است ، یا دسترسی فایلهای شما بروی 644 قرار ندارد این موارد را بررسی نمایید

Share this post


Link to post
Share on other sites
درود بر شما

مشکل ارسال اسپم دلایل زیادی دارد اما شایعترین علت فعال نبودن کپچا میباشد یعنی کد کپچا در زمان ثبت نام از کاربر دریافت نمیشود یا بروی افزونه هایی که نیاز به فعال بودن کپچا میباشد اینکار صورت نگرفته است ، یا دسترسی فایلهای شما بروی 644 قرار ندارد این موارد را بررسی نمایید

--------------------------------------

ممنون از تلاشتون برای راهنمایی

ولی همه اینها رو تو درخواستم توضیح دادم که رعایت کردم می دونم دلایل زیادی من جمله این موارد که گفتین باعث این مشکل میشه . بعد از اسکن این آدرس:

SPAMMER! PATH:/home/x/public_html/libraries/joomla/crypt/cipher

رو گزارش میده یعنی کد مخرب تو این فایل هست ولی من نمی دونم چطور پاکش کنم، دوستان اگر کسی اطلاع داره راهنمایی کنه ممنون می شم.

Share this post


Link to post
Share on other sites

یک جوملای خام هم ورژن جوملای فعلی دانلود کنید ..فایل های این مسیر رو با فایل های سالم جایگزین کنید . فایل های قبل رو حتما به عنوان بک آپ نگه دارید

اگر مشکل این باشه البته ...!

Share this post


Link to post
Share on other sites

برای ارسال نظر یک حساب کاربری ایجاد کنید یا وارد حساب خود شوید

برای اینکه بتوانید نظر ارسال کنید نیاز دارید که کاربر سایت شوید

ایجاد یک حساب کاربری

برای حساب کاربری جدید در انجمن ما ثبت نام کنید. عضویت خیلی ساده است !


ثبت نام یک حساب کاربری جدید

ورود به حساب کاربری

دارای حساب کاربری هستید؟ از اینجا وارد شوید


ورود به حساب کاربری