Archive | GNU/Linux

Ubuntu 19.10’un geliştirimi GNOME güncellemeleri, ZFS, optimizasyonlarla sürdürülüyor

17 Ekim 2019’da çıkarılması beklenen Ubuntu 19.10; GNOME güncellemeleri, ZFS, iyileştirmelerle geliştirilmeye devam ediliyor. 22 Ağustos’ta dondurulma sürecine girecek olan sürüm, Eylül ayında bir beta sürümle test edilmeye devam edilecek. Bu süreç sona erdikten sonra, Ubuntu 20.04 LTS için çalışmayı sürdürecek olan Canonical geliştiricileri ve Ubuntu topluluğu için bu yaz oldukça sıcak geçecek. Hatırlanacağı gibi, Ubuntu 19.10 ve 20.04 LTS için 32-bit i386 desteğini kesme kararı aldığını açıklayan Canonical; Ubuntu Studio ve WINE topluluğundan gelen çok büyük geri bildirimler ve Valve’in Steam uygulamasının Ubuntu desteğini sonlandırma planları konusunda bir açıklamada bulunması üzerine, 32-bit i386 desteğini kesme kararından vazgeçtiğini duyurmuştu. “Eoan Ermine” kod adlı Ubuntu 19.10 sürüm takvimini burada bulabilirsiniz.

Continue Reading →

Geliştiricilerin şu anda Ubuntu 19.10’da ne için çalıştıklarını merak edenler için Canonical tarafından halka açık biçimde Trello panosu üzerinden yayın yapılıyor. GNOME 3.34’e sorunsuz bir geçiş için hazırlıkların sürdürüldüğü belirtilirken, ZFS’nin yeni Zsys daemon ile Linux’a entegrasyonu, Ubiquity yükleyiciye ZFS dosya sistemi seçeneğinin eklenmesi meşgul olunan diğer işlerden. Ubuntu masaüstünde NVIDIA grafiklerini çalıştırma deneyimi de geliştiriliyor. En son Chrome/Chromium, Firefox ve Thunderbird sürümleri de gönderiliyor. Gelişmeleri omgubuntu.co.uk üzerinden takip edebilirsiniz.

0

LibreELEC (Leia) 9.1.002 ALPHA duyuruldu

Televizyon ve uzaktan kumanda ile kullanım için GNU/Linux, OSX, Windows, iOS ve Android yüklü aygıtlarda 10 metreye kadar bir kullanıcı arayüzü üzerinden özgür ve açık kaynak kodlu (GPL) bir medya oynatıcı olarak işlev gören Kodi‘nin en son final sürümü ile kullanıma sunulan ve Raspberry Pi gibi ARM tabanlı bilgisayarları hedef alan LibreELEC’in (Leia) 9.1.002 ALPHA sürümü duyuruldu. Sistem, Kodi 18.3 ile geliyor. Bunun bir test sürümü olduğunun unutulmaması ve yalnızca test etmek amacıyla kullanılması gerektiği hatırlatılarak, test eden kullanıcıların tespit ettikleri hataları rapor etmeleri rica ediliyor. Raspberry Pi 0/1/2/3 aygıtları için sağlam bir beta sürüm olduğu bildirilen sürümün Raspberry Pi 4B için tam anlamıyla yeterli olmadığı söyleniyor. LibreELEC (Leia) 9.1.002 ALPHA hakkında ayrıntılı bilgi edinmek için sürüm duyurusu incelenebilir.

Continue Reading →

LibreELEC (Leia) 9.1.002 ALPHA edinmek için aşağıdaki linkten yararlanabilirsiniz.

0

How to prevent SQL injection attacks?

Before we talk about how to prevent SQL injection, we have to know the impact of SQL Injection attack which is one of the most dangerous attacks on the web. The attacker can steal your data or even worse, the whole web server can be stolen from one SQL injection vulnerability. I wrote this post to show you how to prevent SQL injection. If you need to know more about SQL injection itself and its types and all other stuff, you can do a simple search on google if you want. The solution is to clean the request parameters coming from the user . Keep in mind that the solution that I’ll share with you is not like the most solutions on the web that go to every SQL statement and clean the request variables one by one.

Continue Reading →

My solution is preventing SQL injection without messing with your CMS files. Well, maybe someone who is using PHP would say that is easy, it is just using a function like mysql_real_escape_string or mysqli_real_escape_string. But that works only on a single dimensional array, what about a multi-dimensional array? Well, we need to iterate over array items recursively. So what we will do is preventing SQL injection against a multidimensional array.

Solution

This code does the magic for both single and multidimensional arrays using PHP:

if (!function_exists("clean")) {
//Gets the current configuration setting of magic_quotes_gpc if on or off
if (get_magic_quotes_gpc()) {
function magicquotes_Stripslashes(&$value, $key) {
$value = stripslashes($value);
}
$gpc = array(&$_COOKIE, &$_REQUEST);
array_walk_recursive($gpc, 'magicquotes_Stripslashes');
}
function clean(&$value, $key) {
//here the clean process for every array item
// use mysqli_real_escape_string instead if you use php 7
$value = mysql_real_escape_string($value);
}
}
$req = array(&$_REQUEST);
array_walk_recursive($req, 'clean');

The PHP function used to walk through the request multidimensional array is array_walk_recursive.

Just put this code on the top of your site or header file right after connecting to the database, your file could be up.php or header.php or something similar.

Because if you use this code before the connection occurs, it will show an error because you are using mysql_real_escape_string function which needs a SQL connection.

If you are using PHP 7, you’ll notice that MySQL extension is removed, so in order to make the above code working, you need to replace the function mysql_real_escape_string with mysqli_real_escape_string.

One final thing I have to mention regarding your code, you should keep your SQL parameters on all of your pages between quotes like this:

mysql_query("select * from users where email='$email' order by id");

Notice how the variable $email is quoted.

Without quoting your input like the above statement, SQL injection prevention won’t work.

0

Debian 10 Buster’a PostgreSQL 11 nasıl yüklenir?

Tüm Unix ya da Unix türevi sistemlerde çalışan güvenli ve geniş özelliklere sahip, SQL standart sorgu dilini destekleyen dünyanın en iyi açık kaynak veritabanı yönetim sistemi olan PostgreSQL, Debian 10 Buster’a nasıl yüklenir? PostgreSQL Global Development Group tarafından geliştirilen yazılım, veritabanları için ilişkisel modeli kullanıyor. PostgreSQL; Solaris, Windows, Mac OS X gibi sistemlerde de çalışabilmektedir. PostgreSQL diğer ticari ya da açık kaynak kodlu veritabanlarıyla yapılabilecek işlerin hepsini kolaylıkla yapabilir. Geniş kullanıcı grubuna sahip olan PostgreSQL, kaynak koduna her yerden erişilebilir olması nedeniyle olası hataların çok çabuk kapatılmasına imkan sağlamaktadır. Artık, lider veritabanı sunucusunun Debian 10 Buster’a nasıl yükleneceği konusuna geçebiliriz.

Continue Reading →

Öncelikle, PostgreSQL paketleri için imzalama anahtarını sistemin içine aktarmak gerekiyor. Bunun için aşağıdaki komutu kullanabilirisiniz:

wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -

Ardından, sisteme göre değişiklik gösteren PostgreSQL apt deposunun eklenmesi gerekiyor. Resmi PostgreSQL web sitesinde, bunun için aşağıdaki komutun kullanılması önerilmektedir:

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'

PostgreSQL resmi deposunu sisteminize başarıyla eklediğinize göre, depoları güncelleyebilirsiniz:

sudo apt-get update

Artık PostgreSQL’i yükleyebilirsiniz:

sudo apt-get install postgresql postgresql-contrib

PostgreSQL veritabanı sunucusu varsayılan olarak yüklendikten sonra, “postgres” rolüne sahip bir kullanıcı “postgres” oluşturabilir. Postgres sunucusuna bağlanmak için sisteme kullanıcı postgres olarak giriş yapılır ve veritabanı bağlanır.

sudo -u postgres psql

PostgreSQL veritabanı sunucusuna giriş yapıldıktan sonra, giriş bilgilerini kontrol etmek için aşağıdaki komut kullanılabilir:

postgres-# \conninfo

PostgreSQL veritabanı komut isteminden ayrılmak için ise aşağıdaki komut kullanılabilir:

postgres-# \q

Güle güle kullanın.

0