In Burp Suite's Intruder, how do Sniper, Battering ram, Pitchfork and Cluster bomb differ in how many requests one run sends?
answer
- attack type decides how sets map to positions
- one set versus several sets
- smallest set against product of sets
- positions times payloads, for one type
basics
~20 sSniper sends positions times payloads. Battering ram sends one request per payload, the same value in every position. Pitchfork steps its sets in parallel, so the smallest set sets the count. Cluster bomb sends every combination: the product of the set sizes.
solid answer
~40 sThe attack type says how payloads map onto positions, and it fixes the request count. **Sniper** uses one set and varies one position at a time: positions × payloads. **Battering ram** uses one set and puts the same payload in every position at once: the number of payloads. **Pitchfork** uses one set per position and steps them together, so it sends as many requests as the **smallest** set holds. **Cluster bomb** uses one set per position and tries every combination: the **product** of the set sizes, which grows very fast. A baseline request, if enabled, adds one. Check the request count Intruder shows before starting and compare it with the agreed budget.
code
pseudocode · 9 lines# two positions: store ID and item ID
# item_ids = 100 payloads, store_ids = 80 payloads
sniper(positions=2, set=item_ids) # 2 * 100 = 200 requests
battering_ram(positions=2, set=item_ids) # 100 requests
pitchfork(sets=[item_ids, store_ids]) # min(100, 80) = 80 requests
cluster_bomb(sets=[item_ids, store_ids]) # 100 * 80 = 8000 requests
# add 1 if the unmodified baseline request is enabledgo deeper
Recall the four names and that one of them multiplies the sets together while another puts one payload into every position at once.
Give the count for each type: positions × payloads, payloads, smallest set, product of sets, and say when each type fits.
Read the request count before Start, compare it with the budget in the test plan, and explain that pacing is a separate control from volume.
Argue for setting a request ceiling per run in the assessment standard, so that the choice of attack type is reviewed as a load decision, not left to the tool's default.
## What an attack type decides Every Intruder run has a base request, one or more payload positions and one or more payload sets. The **attack type** is the rule that maps payloads onto positions. It answers two questions: how many payload sets are there (one, or one per position, up to 20), and are payloads placed into positions in turn or at the same time. Because it fixes the mapping, it also fixes how many requests the run will send, and that number is the load on the target. ## The four types | Attack type | Payload sets | How payloads are placed | Requests sent | |---|---|---|---| | Sniper | one | each payload goes into each position in turn | number of positions × number of payloads | | Battering ram | one | the same payload goes into all positions at once | number of payloads | | Pitchfork | one per position | the sets are stepped in parallel, row by row | size of the smallest set | | Cluster bomb | one per position | every combination across the sets | product of all the set sizes | ## A harmless worked example Suppose your own staging catalogue has two values to vary: a store ID and an item ID. You have 100 item IDs and 80 store IDs. - **Sniper** over both positions with the 100 item IDs: 2 × 100 = 200 requests, one position varied per request. - **Battering ram** with the 100 item IDs: 100 requests, the same ID in both positions. - **Pitchfork** with the 100 item IDs against the 80 store IDs: 80 requests, request 1 pairs item 1 with store 1, request 2 pairs item 2 with store 2, and the 20 surplus item IDs are not used. - **Cluster bomb** with the same two sets: 100 × 80 = 8,000 requests. ## Choosing the type - Use **Sniper** to vary fields independently, one at a time, with a single list. - Use **Battering ram** when one value genuinely belongs in several places, for example an identifier that appears in both a cookie and a body field. - Use **Pitchfork** when the inputs are related and travel as pairs, such as an item ID and its known matching code. - Use **Cluster bomb** only when the inputs are independent and every combination is wanted, and only after multiplying the set sizes. ## Reading the cost before you press Start 1. The payload side panel shows the payload count and the **request count** for the run; read it. 2. Add one if you enabled the unmodified baseline request, which appears as item 0 in the results. 3. Compare the total with the request budget in the test plan. A cluster bomb over three sets of 100 payloads is a million requests, which is not a bounded run on any staging system. 4. Then decide pacing with a resource pool, because the attack type bounds volume but says nothing about speed. ## What defenders see The attack type shapes the access log. Sniper and Battering ram produce one varying value in a sequence of otherwise identical requests; Pitchfork and Cluster bomb produce two or more values changing together or in a nested pattern, so a cluster bomb shows one value held steady for a block of requests while the other cycles. The owner can use that shape to confirm which run a burst belongs to. ## Common mistakes - Saying Pitchfork tries every combination. That is Cluster bomb; Pitchfork pairs rows. - Forgetting that Sniper multiplies by the number of positions. - Treating the attack type as editable mid-run. It is part of the attack's structure and needs a new attack.
- A colleague proposes a cluster bomb over three sets of 100 payloads on staging. What do you say?That is 100 × 100 × 100 = 1,000,000 requests. Read the request count Intruder displays, compare it with the agreed budget, and either shrink the sets, switch to a type that fits the data (Pitchfork if the inputs are paired) or split the run. Pacing through a resource pool does not change the volume.
- Why does a Pitchfork run over sets of 100 and 80 entries send only 80 requests?Pitchfork steps the sets in parallel, taking row n of each set for request n, so it ends when the smallest set is exhausted. The 20 surplus entries in the larger set are never used.
- How many payload sets can an attack use?Up to 20 according to the attack-types page. Sniper and Battering ram use a single set; Pitchfork and Cluster bomb take one set per defined position.
Pitchfork is a seating chart, guest 1 to seat 1 and guest 2 to seat 2, so the chart ends when the shorter list does. Cluster bomb is a tasting event in which every guest tries every dish, so the number of servings is guests multiplied by dishes.
- Says Pitchfork tries every combination of the payload sets
- Says Sniper sends one request per payload however many positions exist
- Thinks Cluster bomb sends the sum of the set sizes
- Believes Battering ram needs a separate payload set for each position
- Never reads the request count shown before starting a run