A unf. social network done poorly.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
6.9KB

  1. -- phpMyAdmin SQL Dump
  2. -- version 4.2.11
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: 127.0.0.1
  6. -- Generation Time: Apr 07, 2015 at 08:16 AM
  7. -- Server version: 5.6.21
  8. -- PHP Version: 5.6.3
  9. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  10. SET time_zone = "+00:00";
  11. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  12. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  13. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  14. /*!40101 SET NAMES utf8 */;
  15. --
  16. -- Database: `socialtune`
  17. --
  18. -- --------------------------------------------------------
  19. --
  20. -- Table structure for table `friends`
  21. --
  22. CREATE TABLE IF NOT EXISTS `friends` (
  23. `id` int(11) NOT NULL,
  24. `user_one` int(11) NOT NULL,
  25. `user_two` int(11) NOT NULL,
  26. `pending` int(11) NOT NULL
  27. ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
  28. --
  29. -- Dumping data for table `friends`
  30. --
  31. INSERT INTO `friends` (`id`, `user_one`, `user_two`, `pending`) VALUES
  32. (2, 4, 7, 0),
  33. (4, 1, 4, 0),
  34. (5, 2, 4, 0),
  35. (6, 11, 4, 0),
  36. (7, 8, 4, 0),
  37. (9, 4, 5, 0),
  38. (10, 4, 3, 0),
  39. (12, 6, 4, 0);
  40. -- --------------------------------------------------------
  41. --
  42. -- Table structure for table `status`
  43. --
  44. CREATE TABLE IF NOT EXISTS `status` (
  45. `id` int(255) NOT NULL,
  46. `poster_id` int(255) NOT NULL,
  47. `post_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  48. `message` text NOT NULL
  49. ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1;
  50. --
  51. -- Dumping data for table `status`
  52. --
  53. INSERT INTO `status` (`id`, `poster_id`, `post_date`, `message`) VALUES
  54. (1, 4, '2015-04-02 16:10:12', 'Today, I implemented a status.'),
  55. (2, 4, '2015-04-02 16:34:32', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'),
  56. (4, 7, '2015-04-02 16:50:09', 'EAT A DICK.'),
  57. (6, 4, '2015-04-03 00:41:40', 'nico nico nii~'),
  58. (9, 4, '2015-04-03 20:54:58', 'testing 1 2 3.'),
  59. (10, 4, '2015-04-04 23:25:43', '<b>Hi</b>'),
  60. (15, 4, '2015-04-04 23:27:22', '<sub><sub>fuuuuuck</sub></sub>'),
  61. (21, 4, '2015-04-04 23:31:48', '<sub><sub><sub>f<sub>u<sub>c<sub>k</sub></sub></sub></sub></sub></sub>'),
  62. (23, 4, '2015-04-04 23:32:15', '日本語'),
  63. (24, 4, '2015-04-04 23:32:30', '<h1>日本語</h1>'),
  64. (40, 4, '2015-04-04 23:40:16', '<script>\r\n var iframe = window.getElementsByTagName( "iframe" )[ 0 ];\r\n alert( "Frame title: " + iframe.contentWindow.title );\r\n</script>\r\n\r\n\r\n<iframe src="http://www.google.com" width="300" height="300">\r\n <p>Your browser does not support iframes.</p>\r\n</iframe>'),
  65. (42, 4, '2015-04-04 23:40:40', '<img src="http://127.0.0.1/socialtune/user-images/4.jpg">'),
  66. (46, 4, '2015-04-04 23:57:12', 'This is easy mode exploitable. Unsure if I should black list or white list.');
  67. -- --------------------------------------------------------
  68. --
  69. -- Table structure for table `users`
  70. --
  71. CREATE TABLE IF NOT EXISTS `users` (
  72. `id` int(254) NOT NULL,
  73. `email` varchar(254) NOT NULL,
  74. `password` varchar(254) NOT NULL,
  75. `first_name` varchar(254) NOT NULL,
  76. `last_name` varchar(254) NOT NULL,
  77. `birthdate` varchar(11) NOT NULL,
  78. `location_country` varchar(254) NOT NULL,
  79. `location_state` varchar(254) NOT NULL,
  80. `location_town` varchar(254) NOT NULL,
  81. `signup_date` varchar(254) NOT NULL,
  82. `bio` longtext NOT NULL,
  83. `default_image` varchar(256) NOT NULL,
  84. `user_type` int(2) NOT NULL,
  85. `isOnline` int(11) NOT NULL
  86. ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
  87. --
  88. -- Dumping data for table `users`
  89. --
  90. ---------- I had to remove some people and edit some things.
  91. INSERT INTO `users` (`id`, `email`, `password`, `first_name`, `last_name`, `birthdate`, `location_country`, `location_state`, `location_town`, `signup_date`, `bio`, `default_image`, `user_type`, `isOnline`) VALUES
  92. (1, 'jsmith@example.com', 'f0716b9280cc081c2f1b2789sd3cb09f5e828baa08799db578bsdf64be144465a6c94a', 'John', 'Smith', '0000-00-00', '', '', '', '0000-00-00', 'Hello. This is a test bio. In the future, I will add the ability to edit. In the mean time, enjoy NOT BEING ABLE TO EDIT IT. MWAHAHAHAHAHAHHAAHAH - Ashton', '1.jpg', 0, 0),
  93. (2, 'jdoe@example.com', '93d057269122f3255ba708b4604aa6ef83454bdd4c76b9fda234557a38614896223', 'Jane', 'Doe', '05/20/1992', '', '', '', 'signup_date', 'Hello. This is a test bio. In the future, I will add the ability to edit. In the mean time, enjoy NOT BEING ABLE TO EDIT IT. MWAHAHAHAHAHAHHAAHAH - Ashton', '2.jpg', 0, 0),
  94. (3, 'test@test.com', 'f07416b9280cc081c2f1b2789cb09f5ea828baa08799db578346b64be144465a6c94a', 'Douglas', 'Harding', '12/23/1991', 'USA', 'Texas', 'Houston', '3/25/2015', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum', '5.jpg', 0, 0),
  95. (4, 'asdasda@asdasdasd.com', '2ddde0ff4405833483527fa2dd82f9e37f07249cf69d610e7718ba50328cb6f2', 'Asdasd', 'asdasd', '01/01/1993', '', '', '', '3/27/2015', '', '', 0, 0),
  96. (5, 'as@as.com', '141641f1f06dc8346ac61236tfd6d3bb2ab4861c428fe4d3b7326a5ee4012a86fe8e3', 'Ashton', 'Harding', '01/01/1993', '', '', '', '3/27/2015', '', '10.jpg', 0, 0),
  97. (6, 'firstband@first.com', 'f0716b923480cc0681c2f1b2789cb09f5e828baa08799db578b64be144465a6c94a', 'First Band', '', '01/1/2015', 'USA', 'Texas', 'Spring', '3/27/2015', 'Super radical band. With music.', '11.jpg', 0, 0);
  98. --
  99. -- Indexes for dumped tables
  100. --
  101. --
  102. -- Indexes for table `friends`
  103. --
  104. ALTER TABLE `friends`
  105. ADD PRIMARY KEY (`id`);
  106. --
  107. -- Indexes for table `status`
  108. --
  109. ALTER TABLE `status`
  110. ADD PRIMARY KEY (`id`);
  111. --
  112. -- Indexes for table `users`
  113. --
  114. ALTER TABLE `users`
  115. ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`), ADD KEY `password` (`password`,`first_name`,`last_name`,`birthdate`,`location_country`,`location_state`,`location_town`,`signup_date`);
  116. --
  117. -- AUTO_INCREMENT for dumped tables
  118. --
  119. --
  120. -- AUTO_INCREMENT for table `friends`
  121. --
  122. ALTER TABLE `friends`
  123. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13;
  124. --
  125. -- AUTO_INCREMENT for table `status`
  126. --
  127. ALTER TABLE `status`
  128. MODIFY `id` int(255) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=47;
  129. --
  130. -- AUTO_INCREMENT for table `users`
  131. --
  132. ALTER TABLE `users`
  133. MODIFY `id` int(254) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
  134. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  135. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  136. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;