mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
226 lines
19 KiB
SQL
226 lines
19 KiB
SQL
SHOW WARNINGS;
|
|
--
|
|
-- Table structure for table `articles`
|
|
--
|
|
CREATE TABLE IF NOT EXISTS `articles` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(255) DEFAULT NULL,
|
|
`content` longtext,
|
|
`date_posted` datetime NOT NULL,
|
|
`created_by` varchar(255) NOT NULL,
|
|
`last_modified` datetime DEFAULT NULL,
|
|
`last_modified_by` varchar(255) DEFAULT NULL,
|
|
`ordering` int(10) DEFAULT '0',
|
|
`is_published` int(1) DEFAULT '1',
|
|
PRIMARY KEY (`id`)
|
|
);
|
|
|
|
--
|
|
-- Dumping data for table `articles`
|
|
--
|
|
|
|
INSERT INTO `articles` (`title`, `content`, `date_posted`, `created_by`, `last_modified`, `last_modified_by`, `ordering`, `is_published`) VALUES
|
|
('Welcome', '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed interdum, felis ac pellentesque feugiat, massa enim sagittis elit, sed dignissim sem ligula non nisl. Sed pulvinar nunc nec eros aliquet non tempus diam vehicula. Nunc tincidunt, leo ut interdum tristique, quam ligula porttitor tellus, at tincidunt magna enim nec arcu. Nunc tempor egestas libero. Vivamus nulla ligula, vehicula vitae mattis quis, laoreet eget urna. Proin eget est quis urna venenatis dictum nec vel lectus. Nullam sit amet vehicula leo. Sed commodo, orci vitae facilisis accumsan, arcu justo sagittis risus, quis aliquet purus neque eu odio. Mauris lectus orci, tincidunt in varius quis, dictum sed nibh. Quisque dapibus mollis blandit. Donec vel tellus nisl, sed scelerisque felis. Praesent ut eros tortor, sed molestie nunc. Duis eu massa at justo iaculis gravida.</p>\r\n<p>In adipiscing dictum risus a tincidunt. Sed nisi ipsum, rutrum sed ornare in, bibendum at augue. Integer ornare semper varius. Integer luctus vehicula elementum. Donec cursus elit quis erat laoreet elementum. Praesent eget justo purus, vitae accumsan massa. Ut tristique, mauris non dignissim luctus, velit justo sollicitudin odio, vel rutrum purus enim eu felis. In adipiscing elementum sagittis. Nam sed dui ante. Nunc laoreet hendrerit nisl vitae porta. Praesent sit amet ligula et nisi vulputate volutpat. Maecenas venenatis iaculis sapien sit amet auctor. Curabitur euismod venenatis velit non tempor. Cras vel sapien purus, mollis fermentum nulla. Mauris sed elementum enim. Donec ultrices urna at justo adipiscing rutrum.</p>', '2012-08-09 01:19:59', 'admin',NULL, NULL, 0, 1);
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `challenges`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `challenges` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`title` varchar(255) DEFAULT NULL,
|
|
`pkg_name` varchar(255) NOT NULL,
|
|
`description` text,
|
|
`author` varchar(255) NOT NULL,
|
|
`category` varchar(255) NOT NULL,
|
|
`date_posted` datetime NOT NULL,
|
|
`visibility` varchar(255) DEFAULT 'private',
|
|
`publish` int(10) DEFAULT '0',
|
|
`abstract` varchar(255) DEFAULT NULL,
|
|
`level` varchar(255) DEFAULT NULL,
|
|
`duration` int(11) DEFAULT NULL,
|
|
`goal` varchar(255) DEFAULT NULL,
|
|
`solution` varchar(255) DEFAULT NULL,
|
|
`availability` varchar(255) DEFAULT 'private',
|
|
`default_points` int(11) DEFAULT NULL,
|
|
`default_duration` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`)
|
|
);
|
|
|
|
--
|
|
-- Dumping data for table `challenges`
|
|
--
|
|
|
|
INSERT INTO `challenges` (`title`, `pkg_name`, `description`, `author`, `category`, `date_posted`, `visibility`, `publish`, `abstract`, `level`, `duration`, `goal`, `solution`, `availability`, `default_points`, `default_duration`) VALUES
|
|
('Challenge 1', 'ch001', 'Our agents (hackers) informed us that there reasonable suspicion \r\nthat the site of this <a href="ch001/" target="_blank">Logistics Company</a> is a blind \r\nfor a human organs'' smuggling organisation.<br /> <br /> This organisation attracts its \r\nvictims through advertisments for jobs with very high salaries. They choose those ones who \r\ndo not have many relatives, they assasinate them and then sell their organs to very rich \r\nclients, at very high prices.<br /> <br /> These employees are registered in the secret \r\nfiles of the company as "special clients"!<br /> <br /> One of our agents has been hired \r\nas by the particular company. Unfortunately, since 01/01/2007 he has gone missing.<br /> \r\n<br /> We know that our agent is alive, but we cannot contact him. Last time he \r\ncommunicated with us, he mentioned that we could contact him at the e-mail address the \r\ncompany has supplied him with, should there a problem arise.<br /> <br /> The problem is \r\nthat when we last talked to him, he had not a company e-mail address yet, but he told us \r\nthat his e-mail can be found through the company''s site. <br /> <br /> The only thing we \r\nremember is that he was hired on Friday the 13th! <br /> <br /> You have to find his e-mail \r\naddress and send it to us by using the central communication panel of the company''s \r\nsite.<br /> <br /> Good luck!!!', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n \n Anastasios Stasinopoulos,\n Vasilios Vlachos,\n Alexandros \nPapanikolaou', 'web', '2012-08-09 00:23:14', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 2', 'ch002', 'Your Country needs your help for finding the password of an enemy \r\n\r\nsite that contains useful information, which if is not acquired on time, peace in our \r\n\r\narea will be at stake.<br /> <br />\n You must therefore succeed in finding the \r\n\r\npassword of this military <a href="ch002/index.php" target="_blank">SITE</a>.<br /> <br \r\n\r\n/> Good luck!', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n Anastasios \r\n\r\nStasinopoulos,\n Vasilios Vlachos,\n Alexandros Papanikolaou', 'web', '0000-00-00 00:00:00', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 3', 'ch003', 'XSS permits a malevolent user to inject his own code in vulnerable \r\n\r\nweb pages. According to the OWASP 2010 Top 10 Application Security Risks, XSS attacks \r\n\r\nrank 2nd in the "most dangerous" list.<br /> <br /> Your objective is to make an alert \r\n\r\nbox appear <a href="ch003/index.php" target="_blank">HERE</a> bearing the message: \r\n\r\n"<strong>XSS!</strong>".', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n \r\n\r\n Anastasios Stasinopoulos,\n Vasilios Vlachos,\n Alexandros \r\n\r\nPapanikolaou', 'web', '2012-08-09 00:24:46', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 4', 'ch004', 'A hacker informed us that <a href="ch004/index.php" target=\r\n\r\n"_blank">this</a> site suffers from an XSS-like type of vulnerability. Unfortunately, he \r\n\r\nlost the notes he had written regarding how exactly did he exploit the aforementioned \r\n\r\nvulnerability.<br /> Your objective is to make an alert box appear, bearing the message \r\n\r\n"<strong>XSS!</strong>". It should be noted, however, that this site has some protection \r\n\r\nagainst such attacks.', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n \r\n\r\nAnastasios Stasinopoulos,\n Vasilios Vlachos,\n Alexandros \r\n\r\nPapanikolaou', 'web', '2012-08-09 00:25:25', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 5', 'ch005', 'You need to get access to the contents of this <a href=\r\n\r\n"ch005/index.php" target="_blank">SITE</a>. In order to achieve this, however, you \r\n\r\nmust buy the "p0wnBrowser" web browser. Since it is too expensive, you will have to \r\n\r\n"fool" the system in some way, so that it let you read the site''s contents.', 'Andreas \r\n\r\nVenieris,\n Konstantinos Papapanagiotou,\n Anastasios Stasinopoulos,\n \r\n\r\nVasilios Vlachos,\n Alexandros Papanikolaou', 'web', '2012-08-09 00:26:09', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 6', 'ch006', 'In this assignment you must prove your... knightly skills! Real \r\n\r\nknights have not disappeared.They still exist, keeping their secrets well hidden.<br /> \r\n\r\nYour mission is to infiltrate their <a href="ch006/index.php" target="_blank">SITE</a>. \r\n\r\nThere is a small problem, however... We don''t know the password!<br /> Perhaps you could \r\n\r\nfind it?<br /> Let''s see!<br /> g00d luck dudes!', 'Andreas Venieris,\n Konstantinos \r\n\r\nPapapanagiotou,\n Anastasios Stasinopoulos,\n Vasilios Vlachos,\n \r\n\r\nAlexandros Papanikolaou', 'web', '2012-08-09 00:26:52', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 7', 'ch007', 'A good friend of mine studies at Acme University, in the <a href=\r\n\r\n"ch007/index.php" target="_blank">Computer Science and Telecomms Department</a>. \r\n\r\nUnfortunately, her grades are not that good. You are now thinking "This is big news!"... \r\n\r\nHmmm, maybe not. What is big news, however, is this: The network administrator asked for \r\n\r\n3,000 euros to change her marks into A''s. This is obviously a case of administrative \r\n\r\nauthority abuse. Hence... a good chance for D-phase and public exposure...<br /> I need to \r\n\r\nget into the site as admin and upload an index.htm file in the web-root directory, that \r\n\r\nwill present all required evidence for the University''s latest "re-marking" practices!\r\n\r\n<br /> I only need you to find the admin password for me...<br /> <br /> Good \r\n\r\nLuck!', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n Anastasios \r\n\r\nStasinopoulos,\n Vasilios Vlachos,\n Alexandros Papanikolaou', 'web', '0000-00-00 00:00:00', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 8', 'ch008', 'You have managed, after several tries, to install a backdoor shell \r\n\r\n(Locus7Shell) to <a href="ch008/" target="_blank">trytohack.gr<br /></a> <br /> The \r\n\r\nproblem is that, in order to execute the majority of the commands (on the machine running \r\n\r\nthe backdoor) you must have super-user rights (root).<br /> <br /> Your aim is to obtain \r\n\r\nroot rights.', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n Anastasios \r\n\r\nStasinopoulos,\n Vasilios Vlachos,\n Alexandros Papanikolaou', 'web', '0000-00-00 00:00:00', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 9', 'ch009', 'A friend of yours has set up a news blog at <a href=\r\n\r\n"ch009/index.php" target="_blank">slagoff.com</a>. However, he is kind of worried \r\n\r\nregarding the security of the news that gets posted on the blog and has asked you to check \r\n\r\nhow secure it is.<br /> <br /> Your objective is to determine whether any vulnerabilities \r\n\r\nexist that, if exploited, can grant access to the blog''s server.<br /> <br /> Hint: A \r\n\r\nspecially-tailored backdoor shell can be found at "<a href=\r\n\r\n"http://www.really_nasty_hacker.com/shell.txt" target="_blank\r\n\r\n">http://www.really_nasty_hacker.com/shell.txt</a>".', 'Andreas Venieris,\n \r\n\r\nKonstantinos Papapanagiotou,\n Anastasios Stasinopoulos,\n Vasilios Vlachos,\r\n\r\n\n Alexandros Papanikolaou', 'web', '2012-08-09 00:31:31', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Challenge 10', 'ch010', 'Would you like to become an active hacker ?<br /> How about \r\n\r\nbecoming a member of the world''s largest hacker group:<br /> The n1nJ4.n4x0rZ.CreW!<br /> \r\n\r\n<br /> Before you can join though, you ''ll have to prove yourself worthy by passing the \r\n\r\ntest that can be found at: <a href="ch010/" target="_blank\r\n\r\n">http://n1nj4h4x0rzcr3w.com</a><br /> <br /> If you succeed in completing the challenge, \r\n\r\nyou will get a serial number, which you will use for obtaining the password that will \r\n\r\nenable you to join the group.<br /> <br /> Your objective is to bypass the authentication \r\n\r\nmechanism, find the serial number and be supplied with your own username and password from \r\n\r\n the admin team of the site.', 'Andreas Venieris,\n Konstantinos Papapanagiotou,\n \r\n\r\n Anastasios Stasinopoulos,\n Vasilios Vlachos,\n Alexandros \r\n\r\nPapanikolaou', 'web', '2012-08-09 00:32:07', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Example Template For Challenge xml Files creation', 'example', '<p>Insert some text describing the scenario of the challenge(what the users are supposed to do and if there is any fictional story)</p>', 'Name or email or both', 'In what category does your challenge belong?(web? crypto? networks?)', '2012-10-16 22:35:01', 'private', 0, NULL, '1', 60, NULL, NULL, 'private', 1, 0),
|
|
('cookiEng', 'cookiEng', '<p>Hello, we have heard that you are one of the best hackers in our country. We need your services.<br>You must visit an underground site and find<br> the right password. With this password we will cancel 100k+ illegal gun and drug deals!\n The good news are that we have the directory where the password is stored. Its here \\\"/t0psec.php\\\".\n The bad news are that we have no access there. Only the administrator does. Go and find the password for us!<br><br><br>Good luck!</p>', 'Nikos Danopoulos', 'web', '2012-08-09 00:32:07', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 1, 60),
|
|
('Izon Challenge', 'izon', '<p>After the mysterious disappearance of your best friend, you are contacted by an unknown individual who claims to have information about your friend. This individual identifies himself as \"Mister Jax\" and claims that is a former colleague of your friend.</p><p>Your friend was working at Izon Corporation, a weapons manufactured and government contractor as a systems engineer. Mister Jax didn\'t tell you his role in Izon, but wants you to pass through a series of tests to infiltrate Izon\'s web security to find the truth about your friend</p><p>After much consideration you agree with Mister Jax and he, remotely, sets up your computer to look like as if it is a part of Izon\'s Virtual Private Network in order to access their site. He also said that he\'ll guide you while you work your way to uncover the truth about your lost friend</p><p>Here is a copy of Mister Jax\'s last email:</p><p><pre>The task is simple: You get in, get your information and get out.\r\nYour friend was either a dumb programmer or a brilliant one, he left\r\nmany holes to be exploited in order to gain higher access to the site.\r\nI\'ll be guiding you with tips while you try to hack through Izon\'s site.\r\nThere are four tasks, some related to each other, some not.\r\nYou need to use your skills to overcome the obstacles, knowledge will come along.\r\nSixty minutes will suffice. When they\'re over, I won\'t be able to offer any\r\ncover to you, and you\'ll be compromised, with unknown consequences, I\'m afraid.\r\nI\'ll be seeing you there.\r\n\r\ - Jax</pre></p> <p>Once you get in, you\'ll have sixty minutes to complete this challenge. Use common sense, remember that the most obvious place hides the most important stuff and try to behave as if you were hacking a real system.</p><p>Good Luck!</p>', 'Vasileios Mplanas', 'web', '2014-03-27 00:00:00', 'public', 1, NULL, '1', 60, NULL, NULL, 'public', 10, 60);
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `challenge_attempts`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `challenge_attempts` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`challenge_id` int(11) NOT NULL,
|
|
`time` datetime NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `challenge_attempt_count`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `challenge_attempt_count` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`challenge_id` int(11) NOT NULL,
|
|
`tries` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
UNIQUE KEY `challenge_id` (`challenge_id`)
|
|
);
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `classes`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `classes` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL,
|
|
`date_created` datetime NOT NULL,
|
|
`archive` int(1) DEFAULT '0',
|
|
PRIMARY KEY (`id`)
|
|
);
|
|
|
|
--
|
|
-- Dumping data for table `classes`
|
|
--
|
|
|
|
INSERT INTO `classes` (`name`, `date_created`, `archive`) VALUES
|
|
('Sample Class', '2012-08-09 00:43:48', 0),
|
|
('fooClass', '2012-10-16 22:32:43', 0);
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `class_challenges`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `class_challenges` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`challenge_id` int(11) NOT NULL,
|
|
`class_id` int(11) NOT NULL,
|
|
`date_created` datetime NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
);
|
|
|
|
--
|
|
-- Dumping data for table `class_challenges`
|
|
--
|
|
|
|
INSERT INTO `class_challenges` (`challenge_id`, `class_id`, `date_created`) VALUES
|
|
(1, 1, '2012-08-09 01:01:07'),
|
|
(2, 1, '2012-08-09 01:01:07'),
|
|
(3, 1, '2012-08-09 01:01:07'),
|
|
(4, 1, '2012-08-09 01:01:07'),
|
|
(5, 1, '2012-08-09 01:01:07'),
|
|
(6, 1, '2012-08-09 01:01:07'),
|
|
(7, 1, '2012-08-09 01:01:07'),
|
|
(9, 1, '2012-08-09 01:01:07'),
|
|
(10, 1, '2012-08-09 01:01:07'),
|
|
(1, 2, '2012-10-16 22:32:49'),
|
|
(4, 2, '2012-10-16 22:32:52'),
|
|
(9, 2, '2012-10-16 22:32:53'),
|
|
(10, 2, '2012-10-16 22:32:55'),
|
|
(8, 2, '2012-10-16 22:32:58');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `class_memberships`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `class_memberships` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`class_id` int(11) NOT NULL,
|
|
`date_created` datetime NOT NULL,
|
|
PRIMARY KEY (`user_id`,`class_id`),
|
|
UNIQUE KEY `id` (`id`)
|
|
);
|
|
|
|
--
|
|
-- Dumping data for table `class_memberships`
|
|
--
|
|
|
|
INSERT INTO `class_memberships` (`user_id`, `class_id`, `date_created`) VALUES
|
|
( 1, 1, '2012-08-09 00:59:00'),
|
|
( 2, 1, '2012-08-09 00:59:00'),
|
|
( 3, 1, '2012-08-09 00:59:00'),
|
|
( 4, 2, '2012-10-16 22:33:07'),
|
|
( 5, 2, '2012-10-16 22:33:13');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `users`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `users` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`username` varchar(255) NOT NULL,
|
|
`full_name` varchar(255) NOT NULL,
|
|
`email` varchar(100) NOT NULL,
|
|
`password` varchar(255) NOT NULL,
|
|
`joined` datetime NOT NULL,
|
|
`last_visit` datetime DEFAULT NULL,
|
|
`is_activated` int(1) DEFAULT '0',
|
|
`type` int(10) DEFAULT '0',
|
|
`token` int(10) DEFAULT '0',
|
|
PRIMARY KEY (`username`),
|
|
UNIQUE KEY `id` (`id`)
|
|
);
|
|
|
|
--
|
|
-- Dumping data for table `users`
|
|
--
|
|
|
|
INSERT INTO `users` (`username`, `full_name`, `email`, `password`, `joined`, `last_visit`, `is_activated`, `type`, `token`) VALUES
|
|
('bar', 'mr. bar', 'bar@owasp.com', '$P$BJ8UtXZYqS/Lokm8zFMwcxO8dq797P.', '2012-10-16 22:12:52', '2012-10-16 22:22:39', 0, 0, 0),
|
|
('foo', 'mr. foo', 'foo@owasp.com', '$P$BxCHeVG1RMF06UxwRbrVQtPA1yOwAq.', '2012-10-16 22:12:34', '2012-10-16 22:59:29', 0, 0, 0),
|
|
('sensei', 'waspy sifu', 'waspy@owasp.sifu', '$P$Bj/JtLJJR3bUD0LLWXL2UW9DuRVo0I.', '2012-10-16 22:36:06', '2012-10-16 22:37:04', 1, 2, 0);
|
|
|
|
--
|
|
-- Table structure for table `user_has_challenge_token`
|
|
--
|
|
DROP TABLE IF EXISTS `user_has_challenge_token`;
|
|
CREATE TABLE IF NOT EXISTS `user_has_challenge_token` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` varchar(512) NOT NULL,
|
|
`challenge_id` varchar(512) NOT NULL,
|
|
`token` varchar(256) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
);
|
|
|
|
SHOW WARNINGS;
|