MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / choose_boundary

Function choose_boundary

thirdparty/clientform/clientform.py:296–300  ·  view source on GitHub ↗

Return a string usable as a multipart boundary.

()

Source from the content-addressed store, hash-verified

294
295
296def choose_boundary():
297 """Return a string usable as a multipart boundary."""
298 # follow IE and firefox
299 nonce = "".join([str(random.randint(0, sys.maxsize-1)) for i in (0,1,2)])
300 return "-"*27 + nonce
301
302# This cut-n-pasted MimeWriter from standard library is here so can add
303# to HTTP headers rather than message body when appropriate. It also uses

Callers 1

startmultipartbodyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…