Aylık Arşiv: Mart 2019

Mar 14

Switch firmware upgrade işleminin otamatize edilmesi

hpSWfirmupgrade.sh isimli betiğimiz #!/usr/bin/expect set ip [lindex $argv 0]; set user [lindex $argv 1]; set password [lindex $argv 2]; set version [lindex $argv 3]; set prompt “:|>|#|\\\$”; set variable “Press any key to continue”; eval spawn ssh -oStrictHostKeyChecking=no -oCheckHostIP=no “$user\@$ip” if { $version == “\”A.15.16.0021\””} { interact -o -nobuffer -re $prompt return; send “$password\r”; interact …

Okumaya devam edin »

Mar 14

Phpservermonitor ile mevcut sistemin izlenmesi ve erken uyarılması.

Yeni versiyonuna ait  web adresi : https://www.phpservermonitor.org/download/   İlgili adresten indirip kurdum. veritabanı ve gerekli bilgiler dizindeki config.php dosyasında mevcuttu yeni sistemin table suffixlerini psm yerine monitor olarak default geldiği için o şekilde yapılandırdım. Ağ cihazları, ping ve bazı 4. katman protokolleri (http, pop, smtp, vb.) desteklenmektedir.

Mar 14

Ubuntu, pardus ve türevi debian tabanlı sistemlerde zombie süreçler

So how to find Zombie Processes? Fire up a terminal and type the following command – ps aux | grep Z   How to kill Zombie processes? Normally we kill processes with the SIGKILL command but zombie processes are already dead. You Cannot kill something that is already dead. So what you do is you type …

Okumaya devam edin »

Mar 14

Openvas9 Scanner servisi başlamazsa yapılanlar

I have had similar issues and found clearing the redis cache helped. refer >> https://www.mail-archive.com/openvas-discuss@wald.intevation.org/msg11222.html 67 Command will be something like sudo redis-cli -s /var/run/redis/redis.sock flushall depends where the redis.sock is located. redis-cli -s /tmp/redis.sock flushall openvas-scanner’ın start durumu redis.sock dosyasının lokasyonu veya redis-server durumu ile yakından ilgilidir.

Mar 14

Apache üzerinden index görüntüleme izni

root@40-webinar:~# cd /etc/apache2/sites-available/ root@40-webinar:/etc/apache2/sites-available# pico XXXxxx.bilecik.edu.tr.conf sayfasında index’e izin vermek için öncelikle ServerName XXXxxx.bilecik.edu.tr DocumentRoot /var/www/XXXxxx.bilecik.edu.tr ServerAlias XXXxxx ErrorLog /var/log/apache2/webders/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/XXXxxx/access.log combined <directory “=”” var=”” www=”” XXXxxx.bilecik.edu.tr”=””> Order allow,deny Allow from all AllowOverride All  yazılması lazım aksi takdirde www …

Okumaya devam edin »

Mar 14

Hp procurve anahtarların freeradius üzreinden doğrulama yapması ve mySQL backend çalışması

Yararlanılan kaynak: http://h22208.www2.hpe.com/eginfolib/networking/docs/switches/WB/15-18/5998-8152_wb_2920_asg/content/ch06s04.html pico /etc/freeradius/clients.conf #anahtarların login islemleri client switch_management_ip_blogu/24 { secret = “passworddd” } password operator user-name manager switch_pass radius-server host radius_server_ip key “passworddd” aaa authentication telnet login local aaa authentication telnet enable radius aaa authentication ssh login radius aaa authentication num-attempts 2 radius-server key My-Global-KEY-1099 radius-server dead-time 5 radius-server timeout 3 radius-server retransmit 2 mysql …

Okumaya devam edin »

Mar 14

Apache Dizinine Şifreli Giriş

sudo htpasswd -c /etc/apache2/.htpasswd kullanıcı ile login yapıcak kullanıcı belirlenir. sudo nano /etc/apache2/sites-enabled/000-default.conf dosyasına alttaki satırlar eklenir. Kod: <Directory “/var/www/html”>[/color][/font][/color] AuthType Basic AuthName “Restricted Content” AuthUserFile /etc/apache2/.htpasswd Require valid-user [color=#3a3a3a][font=monospace][color=#000000] </Directory> sudo apache2ctl configtest yapılan değişiklerle sorun oluştumu check et. sudo systemctl restart apache2  servisi yeniden başlat ve durumunu kontrol et. sudo systemctl status apache2 sudo nano /var/www/html/.htaccess  erişim yetkilerini belirlemek …

Okumaya devam edin »

Mar 14

Exim yararlı Komutlar

exim -M id      #Try to send the message with id id exim -qf       #Tell exim to process the entire queue again exim -qff      #same as qf, but it will flush the frozen messages exim -Mvl id    #view the message log for message id exim -Mvh id    #view message id’s headers exim -Mvb id    #view message id’s body exim -Mrm id    #remove message id from the queue exim -Mg id     #fail and send a bounce to …

Okumaya devam edin »

Mar 14

Nikto2 aracı ile web vulnerability Scanner

pico /etc/apt/sources.list dizininde deb http://archive.ubuntu.com/ubuntu bionic main universe   satırına restricted multiverse eklendi. apt install dediğimizde nikto paketi geldi. https://cirt.net/nikto2-docs/ deki işlem adımları uygulandı. nmap -p443 dmz_ip_adres_blogu/24 -oG – | nikto.pl -h – -C all -output dmz443.html ln -s /home/patron/nikto-master/program/dmz80portscanner.html /var/www/html/raporlar/dmz80webscan.html sonrasında dizin güvenliği için ; sudo htpasswd -c /etc/apache2/.htpasswd kullanıcı ile login yapıcak kullanıcı belirlenir. sudo nano /etc/apache2/sites-enabled/000-default.conf dosyasına alttaki satırlar …

Okumaya devam edin »

Mar 14

Php sürümleri arasındaki geçişler ve pdo-msSQL konfigürasyonu

Switch From PHP 7.0=> PHP 7.2 The PHP 5.6 is set as default version in your system, and you need to switch to PHP 7.2. Run the following commands to switch for Apache and command line. Apache:- sudo a2dismod php7.0 sudo a2enmod php7.2 sudo service apache2 restart Command Line:- sudo update-alternatives –set php /usr/bin/php7.2 sudo …

Okumaya devam edin »

Eski yazılar «

» Yeni yazılar