Nis 18 2014

mergecap: Can’t open .//dir/file.pcap: Too many open files

Category: Linuxali-okan-yuksel @ 4:37 pm

check linux open file limit with ulimit -n <new number>.

Etiketler: ,


Şub 04 2014

python’da datetime bilgisini efektif şekilde alma yöntemi

Category: Pythonali-okan-yuksel @ 6:37 pm
datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")

Etiketler:


Şub 04 2014

modsecurity whitelist configuration

Category: Securityali-okan-yuksel @ 3:40 pm

URL based white list:

SecRule REQUEST_URI “/<url>.*” phase:1,nolog,id:9999999,allow,ctl:ruleEngine=off

Server name based white list:

SecRule SERVER_NAME “yourdomain.com” phase:1,nolog,id:9999999,allow,ctl:ruleEngine=off

added to /etc/httpd/modsecurity.d/base_rules/whitelist.conf

 

If you don’t define id for rule. You’ll get:

ModSecurity: No action id present within the rule

error message.

 

Etiketler:


Oca 29 2014

auto dialing software for voip

Category: VOIPali-okan-yuksel @ 12:10 pm

http://www.kolmisoft.com/billing-and-routing/mor-billing-benefits


Oca 27 2014

debian linux’ta timezone ayarı

Category: Linuxali-okan-yuksel @ 6:34 pm

# dpkg-reconfigure tzdata


Oca 25 2014

wordpress’te manual database işlemleri

Category: Web developmentali-okan-yuksel @ 6:46 pm

set @aranan = ‘Ü%’ collate utf8_bin;
update wprv_term_taxonomy set parent=16720 where term_id in (SELECT term_id FROM `wprv_terms` WHERE name like @aranan and term_id!=16720)

parent category list

select * from wprv_terms a, wprv_term_taxonomy b where a.term_id = b.term_id and b.parent=’0′ and taxonomy=’category’;


Oca 23 2014

pf (packet filter) ile karaliste ip ban işlemi

Category: FreeBSD,Securityali-okan-yuksel @ 11:45 am
table <block-attacks> persist file "/etc/pf.block.list"
block in quick on $lan_if from <block-attacks>


Oca 17 2014

.xz uzantılı dosyalar nasıl açılır

Category: System administrationali-okan-yuksel @ 9:38 pm

-J parametresini kullanmalısınız.

Örnek:

tar -vJxf tor-browser-linux64-3.5_en-US.tar.xz

eğer mac kullanıyorsanız:

7z x -so file.tar.xz | tar xf -


Ara 19 2013

reverse ssh tunneling

Category: Securityali-okan-yuksel @ 4:54 pm

ssh -R 19999:localhost:22 sourceuser@138.47.99.99

ssh localhost -p 19999


Ara 17 2013

bonnie++ ile disk performans testi

Category: FreeBSD,System administrationali-okan-yuksel @ 3:27 pm

anatolia:/opt# app1>  bonnie++ -d /opt/okantest/ -c 10 -s 0 -n 50 -u 0
Using uid:0, gid:0.
Create files in sequential order…done.
Stat files in sequential order…done.
Delete files in sequential order…done.
Create files in random order…done.
Stat files in random order…done.
Delete files in random order…done.
Version  1.97       ——Sequential Create—— ——–Random Create——–
anatolia.app1.c -Create– –Read— -Delete– -Create– –Read— -Delete–
files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
50 17602  99 36499  92 14149  99 19274  99 28463  99 12494  99
Latency             40987us     709us   10927us   49741us    6613us   14980us
1.97,1.97,anatolia.app1.com,10,1387272692,,,,,,,,,,,,,,,50,,,,,17602,99,36499,92,14149,99,19274,99,28463,99,12494,99,,,,,,,40987us,709us,10927us,49741us,6613us,14980us

bon_csv2html uygulaması ile html rapor çıktısına dönüştürme işlemi
anatolia:/opt# app1>  echo 1.97,1.97,anatolia.app1.com,10,1387272692,,,,,,,,,,,,,,,50,,,,,17602,99,36499,92,14149,99,19274,99,28463,99,12494,99,,,,,,,40987us,709us,10927us,49741us,6613us,14980us | bon_csv2html > bonnie_out.html

anatolia:/opt# app1>  mv bonnie_out.html /var/wwwroot/


Sonraki Sayfa »