forked from Cl0udG0d/SZhe_Scan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
129 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ | |
debug=true | ||
secret_key,session中的24位随机盐值 | ||
MySQL数据库配置 | ||
数据库名为scan_test_demo | ||
数据库名为SZheScan | ||
python3:https://blog.csdn.net/qq562029186/article/details/81325074 | ||
''' | ||
DEBUG=True | ||
DEBUG=False | ||
SECRET_KEY=os.urandom(24) | ||
|
||
HOSTNAME='127.0.0.1' | ||
PORT='3306' | ||
DATABASE='scan_test_demo' | ||
DATABASE='SZheScan' | ||
USERNAME='root' | ||
PASSWORD='root' | ||
#SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:[email protected]/tushare?charset=utf8' | ||
|
@@ -22,7 +22,5 @@ | |
SQLALCHEMY_TRACK_MODIFICATIONS=False | ||
|
||
# PASSWORD = "123456" | ||
PASSWORD = "" | ||
HOST = "127.0.0.1" | ||
# HOST = "192.168.88.128" | ||
redisPool = redis.ConnectionPool(host=HOST, password=PASSWORD, port=6379, db=0, decode_responses=True) | ||
redisPool = redis.ConnectionPool(host=HOST, port=6379, db=0, decode_responses=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
CREATE DATABASE IF NOT EXISTS SZheScan default charset utf8 COLLATE utf8_general_ci; | ||
|
||
use SZheScan; | ||
|
||
DROP TABLE IF EXISTS `table1`; | ||
|
||
CREATE TABLE `user` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`email` varchar(20) NOT NULL, | ||
`username` varchar(50) NOT NULL, | ||
`pw_hash` varchar(128) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
INSERT INTO `user` (`id`, `email`, `username`, `pw_hash`) | ||
VALUES | ||
(1,'[email protected]','springbird','pbkdf2:sha256:150000$XNEKW4J4$726b6b5f7d07c3e7f4280634b547b90c64055018f31290c05857aade0b983057'); | ||
|
||
CREATE TABLE `profile` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`userid` int(11) NOT NULL, | ||
`blog` varchar(100) NULL, | ||
`signature` TEXT NULL, | ||
|
||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE `baseinfo` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`url` varchar(50) NOT NULL, | ||
`status` varchar(3) NOT NULL, | ||
`title` varchar(50), | ||
`date` varchar(30) NOT NULL, | ||
`responseheader` TEXT NOT NULL, | ||
`Server` TEXT, | ||
`portserver` TEXT, | ||
`sendir` TEXT, | ||
`boolcheck` tinyint(1), | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
CREATE TABLE `ipinfo` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`baseinfoid` int(11) NOT NULL, | ||
`bindingdomain` TEXT, | ||
`sitestation` TEXT, | ||
`CMessage` TEXT NOT NULL, | ||
`ipaddr` varchar(100) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
CREATE TABLE `domaininfo` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`baseinfoid` int(11) NOT NULL, | ||
`subdomain` TEXT, | ||
`whois` TEXT, | ||
`bindingip` TEXT, | ||
`sitestation` TEXT, | ||
`recordinfo` TEXT, | ||
`domainaddr` varchar(200), | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE `buglist` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`oldurl` varchar(50), | ||
`bugurl` varchar(200), | ||
`bugname` varchar(100) NOT NULL, | ||
`buggrade` varchar(7) NOT NULL, | ||
`payload` TEXT, | ||
`bugdetail` TEXT, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE `poc` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(100) NOT NULL, | ||
`rule` TEXT, | ||
`expression` TEXT, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE `log` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`ip` varchar(20) NOT NULL, | ||
`email` varchar(50) NOT NULL, | ||
`date` DATE, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
CREATE TABLE `invitationcode` ( | ||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
`code` varchar(36) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.