forked from freud14/fake-blog-hacking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog_hack.sql
104 lines (80 loc) · 2.74 KB
/
blog_hack.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
-- phpMyAdmin SQL Dump
-- version 3.3.7deb7
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Mar 15 Octobre 2013 à 02:53
-- Version du serveur: 5.1.66
-- Version de PHP: 5.3.3-7+squeeze17
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `blog_hack`
--
-- --------------------------------------------------------
--
-- Structure de la table `accepted_user_agent`
--
CREATE TABLE IF NOT EXISTS `accepted_user_agent` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_agent` varchar(255) CHARACTER SET utf8 NOT NULL,
`webbrowser_name` varchar(50) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Contenu de la table `accepted_user_agent`
--
-- --------------------------------------------------------
--
-- Structure de la table `comment`
--
CREATE TABLE IF NOT EXISTS `comment` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`post_id` int(10) unsigned NOT NULL,
`comment` text CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Contenu de la table `comment`
--
INSERT INTO `comment` (`id`, `user_id`, `post_id`, `comment`) VALUES
(1, 1, 2, 'Salut j''ai obtenu l''admin. TROLOLOLOL'),
(2, 1, 2, 'ça va?');
-- --------------------------------------------------------
--
-- Structure de la table `post`
--
CREATE TABLE IF NOT EXISTS `post` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`title` varchar(255) CHARACTER SET utf8 NOT NULL,
`message` text CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Contenu de la table `post`
--
INSERT INTO `post` (`id`, `user_id`, `title`, `message`) VALUES
(1, 1, 'Ma première news', 'Hôlà Québec.'),
(2, 1, 'Ma deuxième news', 'Salut, ça va?');
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`login` varchar(255) CHARACTER SET utf8 NOT NULL,
`password` varchar(32) CHARACTER SET utf8 NOT NULL,
`email` varchar(255) CHARACTER SET utf8 NOT NULL,
`level` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
--
-- Contenu de la table `user`
--
INSERT INTO `user` (`id`, `login`, `password`, `email`, `level`) VALUES
(1, 'admin', '3c7212da1c68500535b236a32854d3dc', '[email protected]', 3);