RSS
This blog is about anything what I get and know....
Please enjoy my blog and don't forget give me a comment for the make it better.
Thank You...!!!!!
Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

INSTALASI DEBIAN 4.0r1 ETCH

INSTALASI DEBIAN 4.0r1 ETCH

Kebutuhan Awal
 
        Setingan VMWare


  1. Hardware Requirements

    Seperti tertera di gambar, kami menggunakan hardisk 8 GB untuk simulai ini, dengan memory 256, dan prosessor laptop AMD Turion X2.

  2. Instalasi Debian
Instalasi debian etch sudah tersedia dalam mode GUI dan mode text yang tidak dijumpai pada proses instalasi debian versi sebelumnya. Berikut proses instalasi debian 4.0r1
etch dalam mode GUI.


Gambar 3.1 Welcome to debian etch


Tekan F1 untuk masuk ke menu help index sebagai hot key untuk menampilkan parameter sistem boot atau proses instalasi debian 4.0r1
etch.




Gambar 3.2 Help index debian etch


Hot key F2 untuk menampilkan persyaratan sebelum instalasi debian seperti kapasitas RAM 32 megabytes, serta kapasitas hardisk 256 megabytes untuk instalasi minimal base system debian etch.




Gambar 3.3 Prerequisites for installing debian


Hot key F3 merupakan jendela informasi untuk menampilkan seluruh metode instalasi debian etch seperti `install`, `installgui`, `expert`, `expertgui`. Opsi `install` dan `expert` untuk instalasi dengan metode text sedangkan `installgui` dan `expertgui` untuk metode grafik.




Gambar 3.4 Boot methods


Hot key F4 untuk menampilkan jendela informasi `rescue mode`. `Rescue mode` digunakan untuk booting ke sistem debian etch hanya untuk kasus-kasus tertentu saja seperti boot loader hilang atau tertimpa, sistem crash dan lain lain. 


Terdapat dua opsi untuk rescue mode yakni `rescue` dan `rescuegui`. `Rescue` untuk mode text dan `rescuegui` untuk mode grafik.

Penambahan parameter untuk `rescue mode` dapat dilakukan seperti parameter acpi=off, root=/dev/hdx.




Gambar 3.5 Rescue mode


Hot key F5 untuk menampilkan jendela informasi `special boot parameters – overview`.




Gambar 3.6 special boot parameters - overview


Hot key F6 merupakan jendela informasi lebih lanjut untuk `special boot parameters – various hardware`.




Gambar 3.7 Special boot parameters - various hardware


Hot Key F7 merupakan jendela informasi untuk `special boot parameters – various disk drives`.




Gambar 3.8 Special boot parameters - various disk drives


Hot key F8 merupakan jendela informasi untuk `special boot parameters – installation system`.




Gambar 3.9 Special boot parameters - installation system


Hot key F9 untuk menampilkan jendela informasi `getting help`.




Gambar 3.10 Getting help


Hot key F10 untuk menampilkan jendela informasi `copyrights and warranties`.




Gambar 3.11 Copyrights and Warranties


Untuk instalasi debian etch dengan mode grafik dapat menggunakan opsi `installgui` pada prompt `boot:installgui`.



Pilih `INDONESIAN – BAHASA INDONESIA` untuk pemilihan bahasa yang akan digunakan untuk proses instalasi debian 4.0r1 etch. Klik Continue untuk melangkah ke proses berikutnya. Untuk pemula biar faham lebih dalam.




Gambar 3.12 Choose language


Pilih `Inggris Amerika` untuk opsi pilih layout keyboard.






Gambar 3.13 Select a keyboard layout


Selanjutnya sistem akan mendeteksi CD-ROM dan melakukan mounting seperti gambar 2.16 berikut.




Gambar 3.14 Detect and mount CD-ROM


Tahap berikutnya adalah konfigurasi jaringan dan bila muncul "otokonfigurasi gagal" tidak ada kata lain kita harus mengkonfigurasinya secara manual. Klik Teruskan.




Gambar 3.15 Otokonfigurasi gagal


Gambar berikut menunjukkan proses konfigurasi manual akan segera dimuali. Klik Teruskan.




Gambar 3.16 Konfigurasi Manual


Masukkan IP address yang akan digunakan oleh host debian etch pada jendela dialog berikut. Penulis menggunakan IP address 192.168.1.4, Klik Teruskan.




Gambar 3.17 IP address


Penulis menggunakan netmask 255.255.255.0 pada jendela dialog netmask seperti gambar 2.21 berikut. Klik Teruskan.




Gambar 3.18 Netmask


Kemudian di jendela dialog gateway, isi dengan alamat gateway yang digunakan. Penulis menggunakan 192.168.1.1. Klik Teruskan.




Gambar 3.19 Gateway


Kosongkan opsi `Name server addresses` seperti gambar 2.23 berikut kemudian klik Lanjutkan untuk melangkah ke proses selanjutnya. 


Tahap berikutnya adalah pengisian hostname yang akan digunakan pada sistem debian etch. Penulis menggunakan `debian` sebagai hostname seperti gambar berikut.




Gambar 3.20 Hostname


Untuk `nam domain`, penulis menggunakan `matrixatama.org` seperti gambar berikut.




Gambar 3.21 Domain name


Tahap berikutnya adalah proses partisi yang akan digunakan untuk instalasi debian etch. Pilih opsi `Manual` untuk melakukan partisi hardisk secara manual. Atau otomatis untuk partisi otomatis untuk pemula.




Gambar 3.22 Partition disks


Pada opsi berikut ini kemudian klik teruskan untuk melangkah ke proses berikutnya.




Gambar 3.23 Type for the new partition


Klik ganda opsi `selesai edit partisi` kemudian klik teruskan untuk melangkah ke proses berikutnya seperti gambar berikut.




Gambar 3.24 Selesai Seting partisi


Pada jendela dialog berikutnya, pilih opsi `Ya` kemudian klik continue untuk mengakhiri proses pembuatan partisi linux.




Gambar 3.25 Akhir partisi hardisk



Tahap berikutnya adalah konfigurasi zona waktu seperti yang tampak pada berikut.




Gambar 3.26 Konfigurasi time zone


Pada jendela dialog berikutnya, isi dengan password user root yang akan digunakan pada sistem debian. Klik teruskan untuk melangkah ke proses berikutnya.



Gambar 3.27 Set users and password root


Kemudian isi dengan nama lengkap dari user yang akan digunakan pada sistem debian etch. Klik continue untuk melanjutkan proses instalasi ke tahap berikutnya.



Gambar 3.28 Full name untuk new user


Jendela dialog berikutnya adalah nama user yang akan login ke sistem debian etch. Klik continue untuk melangkah ke tahap berikutnya. Isi dengan password dari user yang anda gunakan pada jendela dialog sebelumnya. 


Berikut merupakan proses instalasi base system dari debian etch.



Gambar 3.29 Proses instalasi base system debian etch


Untuk `Gunakan network mirror`, pilih opsi `tidak` kemudian klik continue untuk melanjutkan proses instalasi.



Gambar 3.30 Konfigurasi package manager


Jendela dialog berikutnya adalah `Konfigurasi popularity-contest`. Pilih opsi `tidak` kemudian klik continue untuk melangkah ke proses berikutnya.



Gambar 3.31 konfigurasi popularity-contest


Berikut paket-paket software debian etch yang akan diinstal pada komputer penulis. Anda dapat memilih paket software tertentu sesuai dengan kebutuhan.



Gambar 3.32 Software terseleksi


Jendela dialog berikut digunakan untuk workgroup/domain name yang akan ditampilkan di seluruh komputer klien oleh server samba. Penulis menggunakan `matrixlab`, kemudian klik teruskan untuk melangkah ke proses berikutnya.



Gambar 3.33 Samba server


Tahap berikutnya merupakan opsi jika host atau komputer yang digunakan terkoneksi ke DHCP server. DHCP server akan menyediakan informasi tentang WINS server (NetBIOS name servers). Penulis menggunakan opsi `tidak` karena komputer yang digunakan diset secara manual dan tidak terkoneksi ke DHCP server.



Gambar 3.34 WINS settings untuk DHCP


Berikut proses instalasi paket software pada sistem debian etch yang penulis gunakan.



Gambar 3.35 Select dan install software


Kemudian pilih resolusi screen yang didukung oleh komputer anda. Penulis menggunakan 1024x768.



Gambar 3.36 konfigurasi xserver-xorg


Proses berikutnya adalah instalasi boot loader, penulis menggunakan lilo boot loader karena selera dan kebiasaan. Pilih target instalasi dari lilo boot loader sebagai `Master Boot Record`. 

Gambar Master Boot Record

Jendela dialog berikutnya merupakan informasi bahwa instalasi debian etch telah selesai. Klik continue untuk mengakhiri proses instalasi secara keseluruhan.


Gambar 3.37 Instalasi selesai dan sukses 


Berikut tampilan login prompt sistem debian etch yang telah terinstal dengan sempurna ke komputer yang penulis gunakan.


Gambar 3.38 Login prompts debian






  1. Instalsi Paket setelah di Instal

    Instalasi paket software dari kode sumber (source code) merupakan cara instalasi yang berlaku umum untuk semua distribusi GNU/Linux yang ada. Perintah umum yang sering digunakan adalah:


    debian:~# tar zxvf paketsoftware.tar.gz
    debian:~# tar jxvf paketsoftware.tar.bz2


    Keterangan:


    Opsi -x dan -j digunakan untuk tipe kompresi yang berbeda. Opsi -x untuk tipe kompresi *.gz dan opsi -j untuk tipe kompresi *.bz2.


    Setelah ekstraksi paket software, langkah berikutnya adalah konfigurasi, kompilasi, dan terakhir adalah instalasi software.



    debian:~# cd paketsoftware
    debian:~# ls
    debian:~# more readme
    debian:~# ./configure
    debian:~# make
    debian:~# make install
    debian:~# make clean


Catatan:

Disarankan membaca readme setiap kali instalasi paket software sehingga dapat memudahkan dalam proses instalasi.


Misal:

Kami ingin menginstal paket videolan client (vlc-0.8.1.tar.bz2). Perintah yang digunakan adalah:



debian:~# tar xjvf vlc-0.8.1.tar.bz2

debian:~# cd vlc-0.8.1

debian:/vlc-0.8.1# ./configure

debian:/vlc-0.8.1# make

debian:/vlc-0.8.1# make install

debian:/vlc-0.8.1# make clean1.


1. To install X-window, lets first update our resource lists with

apt-get update
2.  Then, to install X-window
apt-get install x-window-system
3. install XFCE 4,
apt-get install xfce4 xfce4-themes
4. To install other window managers like IceWM, Fluxbox, GNOME)
 apt-get install icewm fluxbox gnome
5. I like gdm (Gnome Desktop Manager) as my graphical login program, so
apt-get install gdm
6. However you can also try xdm (X Desktop Manager) or kdm (KDE Desktop Manager)
apt-get install xdm kdm

Atau kalo mau install manual tinggal masukkan saja command
dpkg -i (nama paket.deb) 

Praktikum SisKom

Ini tugas waktu praktikum SisKom hari Jumat, 23 Okt '09


1.       Jenis-jenis bios
a.       AMI Bios, sebuah PC Bios produksi American Megatrends, Inc. AMI Bios banyak digunaan pada PC desktop
b.      Award bios, sebuah PC Bios produksi Award Software
c.       Phoenix bios, sebuah PC Bios yang diluncurkan oleh Phoenix Technologies
d.      Microid research (MR bios)
(sumber: http://id.wikipedia.org/wiki/BIOS#Pembuat_BIOS
2.       Urutan booting: pada penggunaan CPU normal, urutan booting diatur untuk memboot harddisk terlebih dahulu sehingga proses loading CPU dapat sedikit lebih cepat. Jika memiliki urutan maka urutan paling awal (A:) yang akan diperiksa, jika tidak ada file system maka akan dilanjutkan ke urutan selanjutnya. Dan bila sedang dlam tahap peng-installan maka pengaturan booting diatur CDRom yang pertama kali di boot. (sumber: http://klinik-computer.blogspot.com/2009/03/boot-sequence.html)
3.       Update bios, ada 3 cara untuk meng-update bios yaitu memakai floppy, optical drive atau USB flash drive. Berikut cara meng-ipdate menggunakan USB Flash Drive:
Selain menggunakan USB, kita juga membutuhkan DOS dan Bios versi terbaru yang bisa didapat dari internet.
*      Menggunakan utility khusus untuk USB, untuk dapat flash Bios, USB harus bootable. Untuk itu, gunakan freeware “HP USB Disk Storage Format Tool” dan beberapa file system Dos (download di www.flazh.com/en/bios-boot-usb-stick.htm ). Anda juga dapat menggunakan freeware yang lain yang disediakan di intenet. Seteah itu install.
*      Mengis USB dengan DOS dan data, ekstrak file usbdos.zip.
*      Menampilkan boot menu, restart PC dan masuk pada boot menu dan pilih USB.
*      Flash Bios, jalankan file “flash.bat” untuk memulai flashing. Setelah selesai restart PC untuk menguji Bios baru.
(sumber: http://www.chip.co.id/praktek-dokter-chip/dokter-chip-07-2009-2.html)


SQL Injection

SQL Injection is a technique used to take advantage of non-validated input vulnerabilities to pass SQL commands through a web application for execution by a backend database. Attackers take advantage of the fact that programmers often chin together SQL commands with user-provided parameters and can therefore embed SQL commands inside these parameters. The result is that attacker can execute arbitrary SQL queries and/or commands on the backend database server through the web application.

History of SQL Injection

On Christmas day, 1998 Phrack 54 was issued. Phrack is a hacker magazine written by the community for the community. It is an excellent source of technical security information in this particular edition, 54. There was an article entitled “NT Web Technology Vulnerabilities” written by rfp-or rain forest puppy. Amongst other things this article described a number of attacks that employed SQL injection, though at no point is this term used in the article. rfp discusses IDC and ASP application running.

On Microsoft’s Internet Information Server feeding into SQL Server 6.5. This article is the first real public outing of SQL injection. Next of note was security advisory published by Allaire on February 4th 1999, a little over a month after rfp’s article. the security bulletin discusses the thread posed by multiple SQL statements in dynamic Queries.

Three months later, there are another interesting note from rfp-coauthored by Matthew Astley. Entitled “NT ODBC Remote Compromise”, the advisory discusses injecting VBA code into Access SQL Queries. One day short of yea aftr the Allaire bulletin, on 3rd og February rfp posts an advisory entitled, “How I hacked Packetstorm – A look at hacking wwwthreads via SQL”. Though the term SQL injection had still yet to surface, rfp was making major inroads into the exploitation of such vulnerabilities. Packetstorm is a hacker site full of useful documents, exploits and scripts. By exploiting holes in the wwwthreads perl application rfp was able to inject arbitrary SQL gaining control of the database server – by making himself an administrator. In September, seven months after this, I submitted a talk for Blackhat Europe called “Application Assessments on IIS” and, as part of it, I discuss attacking database servers via ASP applications using “SQL insertion”. I presented the paper the day after Chip Andrews published the “SQL Injection FAQ” on the 23rd of October at SQLSecurity.com. To my knowledge Chip’s is the first usage of the term “SQL Injection” in a public document, though SANS were using the term in their weekly bulletins at around the same time; which came first is not certain. In April 2001, again at Blackhat, I presented a paper on “Remote Web Application Disassembly using ODBC error messages”. This paper introduced some new techniques that can be used to work out the exact structure of the database application using SQL injection. The next major leap forward came in January 2002 when Chris Anley published a paper entitled “Advanced SQL Injection in SQL Server Applications”. This was the first paper to discuss SQL injection in great depth. Two days before this Kevin Spett had released his paper “SQL Injection - Are your web applications vulnerable?” and in June, Chris follows up with another excellent paper that introduces time delays as a technique for accessing data, cunningly called, “(more) Advanced SQL Injection”. For a while, the pen-testers at NGSSoftware had been using xp_cmdshell ‘ping –n 10 127.0.0.1’ to determine whether we could access the stored procedure – if the application paused for approximately 10 seconds then we could access it.

Chris extended this to using time delays to drill for data and is the first example an inference attack. In August 2002, Cesar Cerrudo released a paper called “Manipulating Microsoft SQL Server Using SQL Injection” and provided a tool called DataThief with the paper to enable data querying via the openrowset function. In the first week of September 2003 Ofer Maor and Amichai Shulman release a paper “Blindfolded SQL injection” and at the end of September 2003 Sanctum release their take on “Blind SQL Injection”. At Blackhat 2004 0x90.org released SQueaL, now known as Absinthe, a tool used to automate the querying of data via SQL injection. This short history mentions the key advancements in SQL injection but it must be noted that there have been many other papers discussing injection techniques for various database servers and for a range of application environments. Readers are encouraged to read the papers listed in this section unless they have already done so.


Forms of SQL Injection Vulnerabilities

Incorrectly filtered escape character

This form of SQL injection occurs when user input is not filtered for escape characters and is then passed into a SQL statement. This results in the potential manipulation of the statements performed on the database by the end user of the application.

The following line of code illustrates this vulnerability:

statement := "SELECT * FROM users WHERE name = '" + userName + "';"

This SQL code is designed to pull up the records of a specified username from its table of users, however, if the "userName" variable is crafted in a specific way by a malicious user, the SQL statement may do more than the code author intended. For example, setting the "userName" variable as

a' or 't'='t

renders this SQL statement by the parent language:

SELECT * FROM users WHERE name = 'a' OR 't'='t';

If this code were to be used in an authentication procedure then this example could be used to force the selection of a valid username because the evaluation of 't'='t' is always true.

On some SQL servers such as MS SQL Server any valid SQL command may be injected via this method, including the execution of multiple statements. The following value of "userName" in the statement below would cause the deletion of the "users" table as well as the selection of all data from the "data" table (in essence revealing the information of every user):

a';DROP TABLE users; SELECT * FROM data WHERE name LIKE '%

This input renders the final SQL statement as follows:

SELECT * FROM users WHERE name = 'a';DROP TABLE users; SELECT * FROM DATA WHERE name LIKE '%';

Other SQL implementations won't execute multiple commands in the same SQL query as a security measure. This prevents hackers from injecting entirely separate queries, but doesn't stop them from modifying queries.

Incorrect type handling

This form of SQL injection occurs when a user supplied field is not strongly typed or is not checked for type constraints. This could take place when a numeric field is to be used in a SQL statement, but the programmer makes no checks to validate that the user supplied input is numeric. For example:

statement := "SELECT * FROM data WHERE id = " + a_variable + ";"

It is clear from this statement that the author intended a_variable to be a number correlating to the "id" field. However, if it is in fact a string then the end user may manipulate the statement as they choose, thereby bypassing the need for escape characters. For example, setting a_variable to

1;DROP TABLE users

will delete the "users" table from the database as the rendered SQL would be rendered as follows:

SELECT * FROM DATA WHERE id = 1;DROP TABLE users;

Blind SQL Injection

Blind SQL Injection is used when a web application is vulnerable to SQL injection but the results of the injection are not visible to the attacker. The page with the vulnerability may not be one that displays data but will display differently depending on the results of a logical statement injected into the legitimate SQL statement called for that page. This type of attack can become time-intensive because a new statement must be crafted for each byte recovered. A tool called Absinthe can automate these attacks once the location of the vulnerability and the target information has been established.

Conditional Responses

One type of blind sql injection forces the database to evaluate a logical statement on an ordinary application screen.

SELECT booktitle FROM booklist WHERE bookId = 'OOk14cd' AND 1=1

will result in a normal page while

SELECT booktitle FROM booklist WHERE bookId = 'OOk14cd' AND 1=2

will likely give a different result if the page is vulnerable to a SQL injection an injection like this will prove that a blind sql injection is possible, leaving the attacker to devise statements that evaluate to true or false depending on the contents of a field in another table.

Conditional Errors

This type of blind SQL injection causes a SQL error by forcing the database to evaluate a statement that causes an error if the WHERE statement is true. For example,

SELECT 1/0 FROM users WHERE username='Ralph'

the division by zero will only be evaluated and result in an error if user Ralph exists.

Time Delays

Time Delays are a type of blind SQL injection that cause the SQL engine to execute a long running query or a time delay statement depending on the logic injected. The attacker can then measure the time the page takes to load to determine if the injected statement is true.


Preventing SQL Injection

To protect against SQL injection, user input must not directly be embedded in SQL statements. Instead, user input must be escaped, or parameterized statements must be used.

Using Parameterized Statements

Parameterized statements use parameters (sometimes called placeholders or bind variables) instead of embedding user input in the statement. In many cases, the SQL statement is fixed. The user input is then assigned (bound) to a parameter. This is an example using Java and the JDBC API:

PreparedStatement prep = conn.prepareStatement("SELECT * FROM USERS WHERE PASSWORD=?");

prep.setString(1, pwd);

Enforcing the Use of Parameterized Statements

There are two ways to ensure an application is not vulnerable to SQL injection: using code reviews (which is a manual process), and enforcing the use of parameterized statements. Enforcing the use of parameterized statements means that SQL statements with embedded user input are rejected at runtime. Currently only the H2 Database Engine supports this feature.