最近突发奇想,想对所掌握的python知识进行总结一下,目前其实还停留在python层面如何使用,还没有深入到虚拟机部分,如果下面有哪些错误,欢迎指出。
OJ(Online judge, 在线编程测评提交代码到后台运行检查)网站一般都允许各种各样的代码提交,其中很有可能包含python3,于是决定尝试通过python3的代码执行,进行沙箱逃逸,以及绕过各种限制。
我随便找了一个OJ网站,这个站点的python3有如下限制
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
" call vundle#begin('~/some/path/here') | |
" | |
" let Vundle manage Vundle, required |
class New(object): | |
def __init__(self): | |
super(New, self).__init__() | |
self._type = None | |
def __lt__(self, t): | |
self._type = t | |
return New2(t) | |
__lshift__ = __lt__ |
# coding=utf-8 | |
import sys | |
import math | |
def left(i): | |
return 2 * (i + 1) - 1 | |
def right(i): |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: lbc-guestbook | |
spec: | |
rules: | |
- host: lbc-guestbook.default.10.202.15.4.xip.io # change the hostname to yours | |
http: | |
paths: |
kubectl create secret generic mysql --from-literal=password=YOUR_PASSWORD |