最近突发奇想,想对所掌握的python知识进行总结一下,目前其实还停留在python层面如何使用,还没有深入到虚拟机部分,如果下面有哪些错误,欢迎指出。
OJ(Online judge, 在线编程测评提交代码到后台运行检查)网站一般都允许各种各样的代码提交,其中很有可能包含python3,于是决定尝试通过python3的代码执行,进行沙箱逃逸,以及绕过各种限制。
我随便找了一个OJ网站,这个站点的python3有如下限制
import requests | |
import json | |
import random | |
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
headers = { | |
'Cookie': "Replace Me With REAL COOKIE" , | |
'Pragma': 'no-cache', |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from decimal import Decimal | |
from datetime import datetime | |
try: | |
import requests | |
import simplejson as json |
#!/bin/bash | |
# for: bulk merge bilibili UWP download file *.flv | |
# by: blog.502.li | |
# date: 2019-01-12 | |
# 将该脚放到 UWP 客户端下载缓存主目录下执行,安装 ffmpeg、jq | |
set -xu | |
download_dir=$(pwd) | |
mp4_dir=${download_dir}/mp4 | |
mkdir -p ${mp4_dir} |
#!/bin/bash | |
#Harbor on Ubuntu 18.04 | |
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server | |
PS3='Would you like to install Harbor based on IP or FQDN? ' | |
select option in IP FQDN | |
do | |
case $option in | |
IP) |
// ==UserScript== | |
// @name Abema 区域限制 | |
// @version 1.0.0 | |
// @run-at document-end | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== | |
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', { | |
get: () => true |
shit title placeholder |
<?php | |
// https://gist.github.com/esterTion/c673a5e2547cd54c202f129babaf601d | |
/* | |
This code is now maintained by yojohanshinwataikei solely | |
esterTion has retired from this project | |
*/ | |
chdir(__DIR__); | |
require_once __DIR__ . '/../webpthumb/Workerman-master/Autoloader.php'; |
shit title place holder |