(headerclaim, injectionvalue)
| 338 | return newpaylDict, newPaylB64 |
| 339 | |
| 340 | def injectheaderclaim(headerclaim, injectionvalue): |
| 341 | newheadDict = headDict |
| 342 | newheadDict[headerclaim] = castInput(injectionvalue) |
| 343 | newHeadB64 = base64.urlsafe_b64encode(json.dumps(newheadDict,separators=(",",":")).encode()).decode('UTF-8').strip("=") |
| 344 | return newheadDict, newHeadB64 |
| 345 | |
| 346 | def tamperToken(paylDict, headDict, sig): |
| 347 | cprintc("\n====================================================================\nThis option allows you to tamper with the header, contents and \nsignature of the JWT.\n====================================================================", "white") |
no test coverage detected