Покажи Публикации - blackpearl
* Виж публикациите на потр. | Виж темите на потр. | Виж прикачените файлове на потр
Страници: 1 2 [3] 4 5 6
31  Linux секция за напреднали / Хардуерни и софтуерни проблеми / Как да изтегля тези файлове -: Nov 21, 2012, 21:16
Имам проблем с една хакната система с която приключихме и започвам друга. Може ли да ми кажете как да изтегля файловете които са на системата, използвам ubuntu system resque, имам руут права. Няма повече от половината библиотеки + сървизи, мога да сложа флашка но не знам като кой дял ще я разпознае и как да ги прехвърля.

Моля за помощ, предварително благодаря!
32  Сигурност / Системна Сигурност / Re: Проблем с ubuntu система -: Nov 21, 2012, 19:55
Толкова много да си играе - съмнявам се защото не е само ssh. Системата не може да се стартира, тегля backtrack в момента
33  Сигурност / Системна Сигурност / Re: Проблем с ubuntu система -: Nov 21, 2012, 19:11
Хакерска атака. Хакера смени индекса на сайта. Сега ми остана надеждата да се оправя с лайф backtrack.
34  Сигурност / Системна Сигурност / Re: Проблем с ubuntu система -: Nov 20, 2012, 18:03
Идея си нямам какво се случва... При тези команди ми казва че не ми познава юзъра. Когато напиша sudo ми казва who are you, не знам въобще как върви системата но наистина имам нужда да спася файловете... При cp / mv / ln -s иска руут права.
35  Сигурност / Системна Сигурност / Re: Проблем с ubuntu система -: Nov 18, 2012, 11:26
Ммм... Още не ми е дошла смелост да го изключа... :D Мисля че има вероятност да стане, трябва да опитам.

Според вас, след като въпреки че не се виждат командите те се обработват значи системата си е на мястото и поддържащите и услуги работят. Дойде ми идея да направя следното -
ln -s /path/to/file /var/www/
след това архивирам файла в уеб сървъра и дърпам.
36  Сигурност / Системна Сигурност / Re: Проблем с ubuntu система -: Nov 16, 2012, 08:37
Изтегли инфото и рестартирай да видиш как ти изглежда. Току-виж проблемът се решил с един рестарт.

ПП Ако имаше бекъп вече можеше да пием шампанско.
Aко имaше, aмa нямaше :) Днес ще опитaм рестaрт и след товa рaзследвaне ... :D
37  Сигурност / Системна Сигурност / Re: Проблем с ubuntu система -: Nov 15, 2012, 14:17
За моя голяма изненада паролата на mysql не беше сменена, което според мен щеше да е първата стъпка на хакера. Изтеглих я през phpmyadmin. За момента е ясно че ще се слага чиста инсталация, но понеже подозренията ви за cron командите отпадат, тъй като не съм слагал. Въпреки това имам информация която е желателно да изтегля и мисля да се опитам да я изтегля и нея. Имам достъп до сървъра с терминали които не са затваряни. Интересното е че когато напиша команда тя не излиза, нищо че когато натисна ентър влиза в действие. Шансът да е хакер намаля, не мислите ли?

P.S Все пак ще сложа едно лайф CD след опитите ми да изтегля информацията, за да видя логовете.
38  Сигурност / Системна Сигурност / Проблем с ubuntu система -: Nov 14, 2012, 18:01
Добър вечер, не съм сигурен дали темата е за този раздел, за това моля ако е грешен да бъде преместена. Имам проблем с ubuntu система, от известно време логовете на някои услуги като ftp, ssh се триеха и услугите крашваха, като се налагаше да създавам текстов файл за лог за да тръгнат отново. Днес се опитвам да вляза в webmin, но показва грешна парола?! Опитвам се да се логна физически в машината, но когато напиша user и натисна ентър ми иска отново user и така без никаква грешка, въпреки че сайта и CS сървърите работят. От къде може да е проблема и как най-вече да спася mysql базата?

Не смея да рестартирам защото ефекта може да бъде...
39  Linux секция за начинаещи / Настройка на програми / Re: Как да настроя php.ini, за да се оправи този проблем? -: Nov 05, 2012, 14:06
Вероятно не прави връзка с мобио (или поне така си го обяснявам) понеже винаги показва грешен СМС код
40  Linux секция за начинаещи / Настройка на програми / Как да настроя php.ini, за да се оправи този проблем? -: Nov 05, 2012, 13:45
Здравейте, имам проблем с една система - логин панел и връзка с мобио (разплащателен метод). Правенето на регистрация и логин-а работи, но когато се въведе смс код в съответното поле - показва че е грешен, а всъщност не е. Пробвах с оригиналния php.ini, същото. Пробвах с php.ini на човек постнато във форума, стана но phpbb-то се обади с грешки и става още по оплетено.
Ето и кода който е за връзката към мобио.

Код:
<?php
include ("style.php");
include ("config.php");
echo "$top";
session_start();
if (isset($_SESSION['player']))
{
$player=$_SESSION['player'];
}else{
echo "$you_dont_have_permissions";
echo "<meta http-equiv=Refresh content=0;url=index.php>";
echo "$bottom";
exit;
}
echo "$userpanel<hr />";
$query = mysql_query("SELECT * FROM $table WHERE player='$player' ORDER BY id ASC LIMIT 1") or die (mysql_error());
    while($row = mysql_fetch_array($query))
    {
$password = $row['password'];
$vapros = $row['vapros'];
$otgovor = $row['otgovor'];
$time_on_reg = $row['time_on_reg'];
}
$servID = *****;
$imagecode = rand(100000000,999999999);
$imagecodeview = "<input type='hidden' name='imagecodever' value='$imagecode'/>";
if(isset($_POST['submit']))
{
$server = addslashes(htmlspecialchars($_POST['server']));
$flags = "$total_perm[$permm]";
$now_time = time();
$expire_date = $now_time+$timeforadmin;
$status = "1";
$code = addslashes(htmlspecialchars($_POST['code']));
$codever = addslashes(htmlspecialchars($_POST['codever']));
$imagecodever = addslashes(htmlspecialchars($_POST['imagecodever']));
if($server == null)
{
echo "$server_null";
echo "<meta http-equiv=Refresh content=2;url=smsadmin.php>";
echo "$bottom";
die();
}
if($codever == null)
{
echo "$codever_null";
echo "<meta http-equiv=Refresh content=2;url=smsadmin.php>";
echo "$bottom";
die();
}
if($imagecodever !== $codever){
echo "$codever_dont_is_ok";
echo "<meta http-equiv=Refresh content=2;url=smsadmin.php>";
echo "$bottom";
die();
};
if($permm == null)
{
echo "$permm_null";
echo "<meta http-equiv=Refresh content=2;url=smsadmin.php>";
echo "$bottom";
die();
}
if($code == null)
{
echo "$code_null";
echo "<meta http-equiv=Refresh content=2;url=smsadmin.php>";
echo "$bottom";
die();
}
if(mobio_checkcode($servID, $code, 0) == 1) {
$sql = mysql_query("INSERT INTO $table (player,password,flags,server,time_on_reg,expire_date,status,vapros,otgovor) VALUES ('$player', '$password', '$flags', '$server', '$time_on_reg', '$expire_date', '$status', '$vapros', '$otgovor')") or die (mysql_error());
echo "$smsadmin_login_info";
echo "$bottom";
die();
}else{
echo "$sms_dont_is_ok";
echo "<meta http-equiv=Refresh content=2;url=smsadmin.php>";
echo "$bottom";
die();
}
}
echo "<center>$smsadmin_info<hr /><center><font color=\"red\"><b>Правата които ще получите са:</b></center></font>
<br/><br/><br/><br/>
<font color='3f3f3f' size='2'>Полетата пред които има <font color='red'>*</font> са задължителни!</font></center><table style='margin-left: auto; margin-right: auto;'><form action='' method='POST'>$imagecodeview
<tr><td style='text-align: right;'>Сървър:<font color='red'>*</font></td><td><select name='server' style='text-align: left;'><option value='' >Изберете сървър</option>$servers</select></td></tr>
<tr><td style='text-align: right;'>Права:<font color='red'>*</font></td><td><select name='permm' style='text-align: left;'><option value='' >Изберете права</option>$perm</select></td></tr>
<tr><td style='text-align: right;'>SMS Код:<font color='red'>*</font></td><td><input type='text' name='code'></td></tr>
<tr><td style='text-align: right;'>Въведете показания код:<font color='red'>*</font></td><td><input type='text' name='codever'></td></tr>
<tr><td style='text-align: right;'></td><td><div style='text-align: center; background: url(images/captcha.png); border: 1px solid black; width: 85px; height: 25px; padding-top: 5px; font-size: 15px;'><b>$imagecode</b></div></td></tr>
<tr><td style='text-align: right;'><input type='submit' class='drr' name='submit' value='Изпрати' /></td><td><input type='reset' class='drr' name='submit' value='Изчисти' /></td></tr>
</form></table>";
echo "$bottom";
?>
41  Сигурност / Системна Сигурност / Re: Shell защита -: Oct 08, 2012, 17:58
Благодаря на двамата за отговорите, но втория отговор, мисля че е най-точен за въпроса ми. След като направя това, кача файловете на хостинга - те ще са с права 000, ще им дам примерно 777, след което евентуално ако някой качи шел, той ще е с права 000 и няма да може да се отваря, нали?
42  Сигурност / Системна Сигурност / Shell защита -: Oct 08, 2012, 12:05
Здравейте, не съм сигурен дали това е правилният раздел, но искам да попитам има ли начин да се защити уеб сървъра от качване на shell-ове, като например се зададе всички ново качени файлове да са с права без достъп за отваряне? Как ще стане това?
43  Linux секция за начинаещи / Настройка на програми / Re: Голям memory load -: Oct 04, 2012, 23:06
Не ти бях разбрал изцяло предния пост, за това не успях да го направя :)
Благодаря все пак
44  Linux секция за начинаещи / Настройка на програми / Re: Голям memory load -: Oct 04, 2012, 22:06
Проблемът беше безкраен цикъл - грешката е била при писането на php кода.
45  Linux секция за начинаещи / Настройка на програми / Re: Голям memory load -: Oct 03, 2012, 18:38
Под убунту е apache2.conf.

Цитат
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned. 
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "foo.log"
# with ServerRoot set to "/etc/apache2" will be interpreted by the
# server as "/etc/apache2/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
LockFile ${APACHE_LOCK_DIR}/accept.lock

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
#              graceful restart. ThreadLimit can only be changed by stopping
#              and starting Apache.
# ThreadsPerChild: constant number of worker threads in each server process
# MaxClients: maximum number of simultaneous client connections
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxClients: maximum number of simultaneous client connections
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_event_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#

AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
# It is also possible to omit any default MIME type and let the
# client's browser guess an appropriate action instead. Typically the
# browser will decide based on the file's extension then. In cases
# where no good assumption can be made, letting the default MIME type
# unset is suggested  instead of forcing the browser to accept
# incorrect  metadata.
#
DefaultType None


#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., http://www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

# Include module configuration:
Include mods-enabled/*.load
Include mods-enabled/*.conf

# Include all the user configurations:
Include httpd.conf

# Include ports listing
Include ports.conf

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
# If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
Include conf.d/

# Include the virtual host configurations:
Include sites-enabled/
Цитат
Е ок, де да беше дал малко повече инфромация.
Кога е това товарене? Заявки има ли? error и  access лога видя ли ги? Как е конфигуриран apache? prefork || worker ползваш?
Как точно се защити от syn flood?

IPTables, това мисля че нямаше смисъл от пояснение, тъй като вече съм 100% сигурен, че е от настройка, тъй като става само при някои по-тежки заявки. В error log-а на апаче има много подобни логове на този:

[error] [client 108.162.***.**] File does not exist: /var/www/index.php, който всъщност съществува.
Страници: 1 2 [3] 4 5 6