Skip to main content

Intruder - Sniper Attack

Purpose: The Sniper attack type is designed to test one input position at a time, allowing you to see how a single variable affects the outcome of a request. This is particularly useful for brute-force attacks on parameters like usernames, passwords, session tokens, etc.

How It Works:

  • Single Position Testing: In a Sniper attack, you identify a single position in your request where the payloads will be inserted one by one. Each request only varies by this one position.

  • Payload Iteration: Burp Suite will go through the list of payloads you provide and substitute them at the designated position, sending a new HTTP request for each payload.

Steps:

1.Capture the Request:

  • Use Burp Suite’s Proxy tab to intercept the login request.

  • For example, the intercepted HTTP POST request might look like this :

                                       POST /example?p1=p1val&p2=p2val HTTP/1.0

                                       Cookie: c=cval

                                       Content-Length: 17

                                        p3=p3val&p4=p4val

2.Set the Position:

  • Go to the Intruder tab and add the intercepted request.

  • Highlight the p3 parameter and click "Add §" to set it as a variable position.

  • Highlight the p4 parameter and click "Add §" to set it as a variable position.

  • The request will now look like this in the Positions tab:


3.Configure Payloads:

  • In the Payloads tab, choose a list of common passwords to brute-force (e.g.123, 234, 345).

  • Load these passwords into the payload list.


4.Start the Attack:

  • Click "Start Attack" to begin the Sniper attack.

  • Burp Suite will iterate through each password, replacing the p3 & p4 parameter in the request and sending it to the server.

Result Analysis: After the attack is completed, review the results to identify the correct password by looking for a different HTTP response status code, length, or other response details indicating a successful login.




Conclusion: The Sniper attack is ideal for scenarios where you need to focus on a single input parameter, testing how different values impact the behavior of the web application. It’s a straightforward approach for tasks like brute-forcing passwords or session tokens. The simplicity and focus of the Sniper attack make it an essential tool for precise testing when only one variable needs to be manipulated at a time.


Comments

Popular posts from this blog

Overview Of All Tabs Burp Suite

Burp Suite is a powerful tool used in web application security testing. It has multiple tabs, each designed for specific tasks in the process of testing and analyzing web applications. Here's an overview of the main tabs in Burp Suite: 1. Dashboard tab:  Purpose : The Dashboard tab provides a comprehensive overview of all active tasks, scans, and events, allowing you to monitor the progress and status of your security testing efforts in real time. Key Features : Task Management : Displays a list of all active, scheduled, and completed tasks, such as vulnerability scans, intruder attacks, or other automated processes. Event Log : Keeps a detailed log of events, such as the start and end of tasks, errors, and significant actions taken during your testing sessions. Live Status : Shows real-time progress of ongoing tasks, including scan coverage, number of issues found, and other relevant metrics. Scan Queue : Manages and prioritizes multiple scanning tasks, allowing you to queue them ...

Installation and use of assetfinder

What is assetfinder ? Assetfinder is a subdomain discovery tool used in Kali Linux, focusing on finding related domains and subdomains for a target. It’s especially valued for its simplicity and efficiency in discovering assets associated with a domain, including subdomains and related domains. Assetfinder is particularly useful during the reconnaissance phase of penetration testing. Uses of Assetfinder in Kali Linux: Subdomain and Domain Discovery:  Assetfinder searches the web to find subdomains and related domains for a target domain. It aggregates data from various sources to provide a comprehensive list of assets. Combining Multiple Data Sources:  The tool integrates with numerous online services and databases, combining their results to give a broader view of the domain’s subdomains. This includes sources like crt.sh , certspotter , hackertarget , and others. Efficient and Quick Enumeration:  Assetfinder is known for its speed and efficiency. It quickly en...

OWASP Top 10 :Understanding Cryptography

  What is Cryptography?  Cryptography is a method of protecting information by transforming it into an unreadable format, called encryption so that only those with the correct key can read it. What is a Cryptographic Failure? Cryptographic failure occurs when the cryptographic methods used to protect data are not strong enough or are implemented incorrectly. Common Causes of Cryptographic Failures : 1. Weak Encryption Algorithms:  Using outdated or weak encryption methods that are easy for attackers to break. Example : Using the DES algorithm. 2. Poor Key Management:  Not properly generating, storing, or using encryption keys. Example : Hard-coding encryption keys in the application's source code where attackers can find them. 3. Insecure Transmission : Not encrypting data transmitted over the internet. Example : Sending sensitive information over HTTP instead of HTTPS. 4. Improper Implementation : Incorrectly using cryptographic functions or libraries...