| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | #!/usr/bin/env python | |
| 2 | 2 | ||
| 3 | 3 | """ | |
| 4 | - $Id$ | ||
| 4 | + $Id$ | ||
| 5 | 5 | ||
| 6 | 6 | Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/) | |
| 7 | 7 | See the file 'doc/COPYING' for copying permission | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,33 @@ | |||
| 1 | + #!/usr/bin/env python | ||
| 2 | + | ||
| 3 | + """ | ||
| 4 | + $Id$ | ||
| 5 | + | ||
| 6 | + Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/) | ||
| 7 | + See the file 'doc/COPYING' for copying permission | ||
| 8 | + """ | ||
| 9 | + | ||
| 10 | + import base64 | ||
| 11 | + | ||
| 12 | + from lib.core.enums import PRIORITY | ||
| 13 | + | ||
| 14 | + __priority__ = PRIORITY.LOWEST | ||
| 15 | + | ||
| 16 | + def dependencies(): | ||
| 17 | + pass | ||
| 18 | + | ||
| 19 | + def tamper(payload): | ||
| 20 | + """ | ||
| 21 | + Base64 all characters in a given payload | ||
| 22 | + | ||
| 23 | + Example: | ||
| 24 | + * Input: 1' AND SLEEP(5)# | ||
| 25 | + * Output: MScgQU5EIFNMRUVQKDUpIw== | ||
| 26 | + """ | ||
| 27 | + | ||
| 28 | + retVal = payload | ||
| 29 | + | ||
| 30 | + if payload: | ||
| 31 | + retVal = base64.b64encode(payload) | ||
| 32 | + | ||
| 33 | + return retVal | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments