MCPcopy
hub / github.com/ticarpi/jwt_tool / injectEachHeader

Function injectEachHeader

jwt_tool.py:1628–1634  ·  view source on GitHub ↗
(contentVal)

Source from the content-addressed store, hash-verified

1626 nextPayload = commonPayloads.readline().rstrip()
1627
1628def injectEachHeader(contentVal):
1629 for headerClaim in headDict:
1630 origVal = headDict[headerClaim]
1631 headDict[headerClaim] = contentVal
1632 newContents = genContents(headDict, paylDict)
1633 jwtOut(newContents+"."+sig, "Injected "+str(contentVal)+" into Header Claim: "+str(headerClaim))
1634 headDict[headerClaim] = origVal
1635
1636def injectEachPayload(contentVal):
1637 for payloadClaim in paylDict:

Callers 1

scanModeErrorsFunction · 0.85

Calls 2

genContentsFunction · 0.85
jwtOutFunction · 0.85

Tested by

no test coverage detected