Skip to content

Commit

Permalink
issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen001 committed Nov 24, 2022
1 parent 3f0712a commit f76feb5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions smuggler.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ def banner():
'suffix1_127',
'suffix1_160',
'suffix1_255',

# https://twitter.com/mame82/status/1265903964568145921
'marcusmengs1',
'marcusmengs2',
]
# t_registered_method = [
# 'contentEnc',
Expand All @@ -153,6 +157,14 @@ class attackMethod:
def update_content_length( self, msg, cl ):
return msg.replace( 'Content-Length: 0', 'Content-Length: '+str(cl) )

def marcusmengs1( self, msg ):
msg = msg.replace( 'Transfer-Encoding', chr(1)+'Transfer_Encoding' )
return msg

def marcusmengs2( self, msg ):
msg = msg.replace( 'Transfer-Encoding', chr(15)+'Transfer_Encoding' )
return msg

def underjoin1( self, msg ):
msg = msg.replace( 'Transfer-Encoding', 'Transfer_Encoding' )
return msg
Expand Down

0 comments on commit f76feb5

Please sign in to comment.