Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://github.com/PortSwigger/turbo-intruder/blob/master/resources/examples/race.py | |
def queueRequests(target, wordlists): | |
engine = RequestEngine(endpoint=target.endpoint, | |
concurrentConnections=30, | |
requestsPerConnection=100, | |
pipeline=False | |
) | |
# the 'gate' argument blocks the final byte of each request until openGate is invoked | |
for i in range(30): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="devtools.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("hello from devtools.js"); | |
chrome.devtools.panels.create("ColdFire","coldfusion10.png","panel.html", function(panel) { | |
panel.onShown.addListener(function(win) { | |
console.log('i think this is the right onshow'); | |
var status = win.document.querySelector("#status"); | |
status.innerHTML = "Fixing to make magic."; | |
}); | |
chrome.devtools.network.onRequestFinished.addListener( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const elements = document.querySelectorAll(`.card`); | |
elements.forEach(element => { | |
const button = document.createElement('button'); | |
button.innerText = 'View in New Tab'; | |
button.className = 'custom-button'; | |
button.onclick = function () { | |
const imgWithUUID = element.querySelector('figure > img'); | |
const imgUrl = imgWithUUID.src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("hello from devtools"); | |
chrome.devtools.panels.create("ColdFire", | |
"coldfusion10.png", | |
"panel.html", | |
function(panel) { console.log("hello from callback"); }); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jslint browser: true */ | |
/* global chrome, $0 */ | |
var getPanelContents = function () { | |
if (!$0) return; | |
// In case we're in an <iframe> | |
var document = $0.ownerDocument; | |
var window = document.defaultView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let searchKey= ['user.name'] | |
let vals = [] | |
let val = cam.reduce((acc, sec)=> { | |
searchKey.forEach((key)=>{ | |
if(sec[key] && sec[key] === "campaigns"){ | |
vals.push(sec) | |
} | |
else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.devtools.panels.create('React', '', 'panel.html', function(panel) { | |
var reactPanel = null; | |
panel.onShown.addListener(function(window) { | |
// when the user switches to the panel, check for an elements tab | |
// selection | |
window.panel.getNewSelection(); | |
reactPanel = window.panel; | |
reactPanel.resumeTransfer(); | |
}); | |
panel.onHidden.addListener(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* bug 814641 - [toolbox] Panels appear behind the devtools window after undocking | |
* STR: | |
* Run this browser scratchpad. | |
* click on "open". You see an arrow panel. | |
* Move your mouse over it, see the spinning cursor. | |
* click swap to swap the frames. | |
* click on "open". You do _NOT_ see the panel. | |
* Move your mouse where it should have appeared. See the spinning cursor. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const urlToStoreInCommonCache = `https://assets.squarespace.com/universal/scripts-compressed/config-vendors-b6b69075bd69ac75a13bd-min.en-US.js`; | |
caches.match(urlToStoreInCommonCache).then((response)=>{ | |
if(!response){ | |
window.addEventListener('message', (msg)=>{ | |
if(msg.data === 'common cache ready'){ | |
console.log('COMMON CACHE READY'); | |
const cachePort = msg.ports[0]; | |
cachePort.onmessage = (cachedArrayBuffer)=>{ | |
const resp = new Response(cachedArrayBuffer); | |
caches.open('zany-cache').then((cache)=>{ |
NewerOlder