pycorrectionalcenter is a misc challenge about escaping a python jail.
The challenge included the following jail source code:
#!/usr/bin/env python3.9
trash = {}
def main():
# https://ros.org/reps/rep-2001.html#simulation | |
FROM osrf/ros:humble-simulation | |
# https://answers.ros.org/question/411908/running-humble-on-turtlebot3/ | |
# Install colcon_cd | |
RUN apt update | |
RUN apt install -y python3-colcon-common-extensions | |
# Set up colcon_cd for future bash sessions |
pycorrectionalcenter is a misc challenge about escaping a python jail.
The challenge included the following jail source code:
#!/usr/bin/env python3.9
trash = {}
def main():
javascript: items = [].concat(Array.from(document.getElementsByClassName('board_task__button')),Array.from(document.getElementsByClassName('task_list_item__content')));console.log(items);items[Math.floor(Math.random()*items.length)].click() |
When creating a new tab in chromium browsers, the omnibar is usually highlighted. | |
This can be circumvented by changing your new tab page logic. | |
Change your new tab page to: | |
javascript: (() => { window.close(); window.open("<YOUR-SITE-HERE>"); })(); | |
This is extremely convenient for the Vimium extension |
For copy-pasting: | |
javascript: (function() { var xpath = "//span[text()='Out of stock']/../../../.. | //span[text()='Preorder']/../../../.."; var matchingElements = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); var actualElement = matchingElements.iterateNext (); var toRemove = []; while (actualElement) { toRemove.push(actualElement); actualElement = matchingElements.iterateNext (); } toRemove.forEach(element => element.remove()); }()); | |
Full code: | |
javascript: (function() { | |
var xpath = "//span[text()='Out of stock']/../../../.. | //span[text()='Preorder']/../../../.."; | |
var matchingElements = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); | |
var actualElement = matchingElements.iterateNext (); |
javascript:var raw_keys = prompt("Please insert your keys separated by commas","");var steam_keys = raw_keys.split(',');var testindex = 0;document.getElementById('register_btn').href="javascript:document.getElementById('product_key').value=steam_keys[testindex];testindex = testindex + 1;document.getElementById('accept_ssa').checked=true;RegisterProductKey();";undefined; |