Sunucuma shell girdi - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Webmaster Genel > Site & Server Administration
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

Site & Server Administration Server Yönetimi hakkında, .htaccess, Apache configuration ve log analiz, güvenlik

Cevapla
 
LinkBack Seçenekler
  1  
Alt 18-08-2009, 10:54:58
Üyeliği durduruldu
 
Standart Sunucuma shell girdi

Selamlar geçenlerde birisi sunucumdaki arkadaşının hostuna shell atmış benim db bilgilerimi felan verdi bende shelli buldum echoll.php idi içini açtım kodlanmış birşeyler vardı o accaunt u komple sildim. sonra mod secretiy kurdum kurulumu sanırım düzgün bitirdi httpd.conf u bu hale getirdim:
Kod:
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# 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.  
ServerRoot "/etc/httpd"
Listen 80
#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
LoadModule php5_module        /usr/lib/apache/libphp5.so
LoadModule flvx_module /usr/lib/apache/mod_flvx.so
Include	/etc/httpd/conf/extra/httpd-phpmodules.conf
#LoadModule deflate_module modules/mod_deflate.so
LoadModule security_module    /usr/lib/apache/mod_security.so
#Bu bölümde yaptığımız adres bazlı engelleme. Yani eğer tarayıcıda adres satırında aşağıdakiler geçiyorsa kişinin o sayfayı açmasını engelliyoruz.
SecFilterSelective THE_REQUEST "act=cmd"
SecFilterSelective THE_REQUEST "act=tools"
SecFilterSelective THE_REQUEST "act=gof"
SecFilterSelective THE_REQUEST "act=ls"
SecFilterSelective THE_REQUEST "act=mk"
SecFilterSelective THE_REQUEST "act=f&"
SecFilterSelective THE_REQUEST "r57"
SecFilterSelective THE_REQUEST "c99"
#Bu bölümde yaptığımızda dizin bazlı engelleme. Aşağıdaki klasörleri web(apache) üzerinden görüntülemeye kapatıyoruz.
SecFilter /boot/
SecFilter /dev/
SecFilter /etc/
SecFilter /initrd/
SecFilter /lib/
SecFilter /lost+found/
SecFilter /mnt/
SecFilter /proc/
SecFilter /root/
SecFilter /sbin/
SecFilter /tmp/
SecFilter /usr/
SecFilter /usr/local/apache/
SecFilter /usr/local/mysql/
SecFilter /var/
User apache
Group apache
ServerAdmin admin@localhost
DocumentRoot "/var/www/html"
<Directory /home/*>
    AllowOverride All
    Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
</LimitExcept>
</Directory>
<Directory />
    Options All
    AllowOverride All
</Directory>
<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
   <IfModule mod_suphp.c>
        suPHP_Engine On
        suPHP_UserGroup webapps webapps
   </IfModule>
</Directory>
<IfModule dir_module>
    DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>
ErrorLog /var/log/httpd/error_log
LogLevel warn
<IfModule log_config_module>
    #replace %b with %O for more accurate logging
    <IfModule mod_logio.c>
      LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
      LogFormat "%h %l %u %t \"%r\" %>s %O" common
      LogFormat "%O" bytes
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog /var/log/httpd/access_log common
</IfModule>
<IfModule alias_module>
    # Include some DirectAdmin alias
    Include conf/extra/httpd-alias.conf
</IfModule>
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-gzip .tgz
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
AddType application/x-shockwave-flash .swf
    AddHandler cgi-script .cgi .pl .pm
    AddHandler type-map var
    AddHandler flv-stream .flv
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
	AddType video/x-ms-asf .avi
	AddType video/mpeg .mpg
	AddType video/mpeg .mpeg
	AddType video/quicktime .mov
	AddType video/x-ms-wmv .wmv
AddType video/x-flv .flv
AddType video/x-ms-flv .flv
AddType video/flv .flv
AddType application/octet-stream .mov .mp3 .flv
</IfModule>
#EnableMMAP off
#EnableSendfile off
#######################################################################################
# Do not change anything in included files, because they are rewritten by DirectAdmin #
#######################################################################################
# This is needed for PHP
Include conf/extra/httpd-php-handlers.conf
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf
# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
Include conf/extra/httpd-autoindex.conf
# Language settings
Include conf/extra/httpd-languages.conf
# User home directories
#Include conf/extra/httpd-userdir.conf
# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
Include conf/extra/httpd-dav.conf
# Various default settings
Include conf/extra/httpd-default.conf
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
# Deflate module settings
Include conf/extra/httpd-deflate.conf
# All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf
# All suPHP directives
Include conf/extra/httpd-suphp.conf
# All the other includes needed by the custombuild script
Include conf/extra/httpd-includes.conf
#######################################################################################
# End of included files that are rewritten by DirectAdmin                             #
#######################################################################################
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
# Alias for RoundCube webmail
#Alias /roundcube /var/www/html/roundcube/
<FilesMatch "\.(flv|gif|jpg|jpeg|png|ico)$">
   Header set Cache-Control "max-age=2592000"
</FilesMatch>
<FilesMatch "\.(js|css|pdf|swf)$">
   Header set Cache-Control "max-age=604800"
</FilesMatch>
<FilesMatch "\.(html|htm|txt)$">
   Header set Cache-Control "max-age=600"
</FilesMatch>
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
   Header unset Cache-Control
</FilesMatch>
sonra BitDefender-Console-Antivirus-7.0.1-3.linux-gcc29x.i586.rpm programını kurdum ve çıkan sonuç:
Kod:
[root@shellciyiz ~]# bdc --files /home
BDC/Linux-Console v7.0 (build 2492) (i386) (Dec 11 2003 13:24:00)
Copyright (C) 1996-2003 SOFTWIN SRL. All rights reserved.
/home/clas/domains/kankilerim.com/public_html/Kankilerim.exe  infected: Win32.Parite.B
/home/clas/domains/kankilerim.com/public_html/Kankilerim1.exe  infected: Win32.Parite.B
/home/apoftp/domains/asksokagim.net/public_html/tumyedeklerrr/SaGoPa_KaJMeR/NoMercy.exe  infected: Win32.Parite.B
/home/apoftp/domains/asksokagim.net/public_html/tumyedeklerrr/Kankilerim.exe  infected: Win32.Parite.B
/home/apoftp/domains/asksokagim.net/public_html/tumyedeklerrr/pti800/PTI800.exe  infected: Win32.Parite.B
/home/apoftp/domains/asksokagim.net/public_html/tumyedeklerrr/nomercy/nomercy/mirc.exe  infected: Win32.Parite.B
Results:
Folders           :19073
Files             :112887
Packed            :8031
Infected files    :6
Suspect files     :0
Warnings          :0
Identified viruses:1
I/O errors        :0
Files/second      :69
Scan time         :00:27:07
[root@shellciyiz ~]#
bu irc müşterisi sonırım mirc script inde trojan var ama win makina içindir shell olduğunu sanmıyorum sizce şuan makinama shell atabilirlermi? extra olarak birşeyler yapmama gerek var mı?
Alıntı ile Cevapla
  2  
Alt 18-08-2009, 16:21:08
Üyeliği durduruldu
 
Standart

arkadaşlar yardım edecek birisi yok mu?
Alıntı ile Cevapla
  3  
Alt 18-08-2009, 22:44:30
 
Standart

bunun birçok yolu var
sitede bir upload alanı vardır güvenli değildir her dosyayı sorgulamadan alır
sunucunuzda remote file açığı olabilir
php derlemeleri yapılmamıştır (özellikle safe mode ve bazı fonksiyonların kapatılması)

sunucunuzu tamamen kontrol ettirmeniz gerekir
__________________
www.nazarweb.com.tr
TEL: 0 422 323 0 333
Alıntı ile Cevapla
  4  
Alt 18-08-2009, 22:50:43
 
Standart

Bana sorarsan yeni bir sunucuya geç. Safe mode mutlaka on olsun.
Alıntı ile Cevapla
  5  
Alt 19-08-2009, 12:35:55
Üyeliği durduruldu
 
Standart

safe mod off olması gerekiyor sunucumda shell bir ftp den girse bile diğer dizinlere geçmesini nasıl engellerim ? mod secretiy yeterlimi + olarak neler yapabilirim? zaten bitdefenderle tarama yaptırdım bişey çıkmadı sunucuda başka shell yok demek için bu yeterli mi?

Konu VeLi33 tarafından (19-08-2009 Saat 12:39:58 ) değiştirilmiştir..
Alıntı ile Cevapla
  6  
Alt 20-08-2009, 01:23:26
Üyeliği durduruldu
 
Standart

yokmu başka ynt verecek arkadaş?
Alıntı ile Cevapla
  7  
Alt 20-08-2009, 01:25:28
 
Standart

Alıntı:
swatemre Nickli Üyeden Alıntı Mesajı göster
Bana sorarsan yeni bir sunucuya geç. Safe mode mutlaka on olsun.

Safe mod : on olunca güvenli mi sayılıyor ?
__________________
Msn Üzerinden Ticaret Yapmıyorum...
Alıntı ile Cevapla
  8  
Alt 21-08-2009, 19:27:44
 
Standart

Alıntı:
yilmaz27 Nickli Üyeden Alıntı Mesajı göster
Safe mod : on olunca güvenli mi sayılıyor ?
Hayır,

http://www.r10.net/site-guvenligi-an...-new-post.html
__________________
Kalitenet!
Alıntı ile Cevapla
  9  
Alt 21-08-2009, 21:27:28
Üyeliği durduruldu
 
Standart

Alıntı:
VeLi33 Nickli Üyeden Alıntı Mesajı göster
safe mod off olması gerekiyor sunucumda shell bir ftp den girse bile diğer dizinlere geçmesini nasıl engellerim ? mod secretiy yeterlimi + olarak neler yapabilirim? zaten bitdefenderle tarama yaptırdım bişey çıkmadı sunucuda başka shell yok demek için bu yeterli mi?
Yokmu bir ynt verecek ?
Alıntı ile Cevapla
  10  
Alt 21-08-2009, 22:12:05
msn: satis@megatrhost.com
 
Standart

http://www.r10.net/site-guvenligi-an...eniyor-mu.html

Konuyu sonuna kadar okuyup profilimden msn adresimi ekleyebilirsiniz.
__________________
MegaTR Hosting - Msn: satis@megatrhost.com - Mail: destek@megatrhost.com Gsm: 0554 252 95 20 - Ofis: 0232 363 13 32

Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 03:27:08.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252