367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
--------------------------------------------------------------------------------
/faculty.js:
--------------------------------------------------------------------------------
1 | function randBetween(min,max) {
2 | return Math.floor(Math.random()*(max-min+1)+min);
3 | }
4 |
5 | $('.skeleton .card').each(function() {
6 | var text = '
';
8 | var numHigh = randBetween(3,4);
9 | var numLow = randBetween(1,2);
10 | var container = $(this).find('.card__text');
11 |
12 | for( var i = 0; i < numLow; i++ ) {
13 | container.append(title);
14 | }
15 |
16 | container.find('.card__title:last-child').css('width', ((numHigh + 2) * 10) + '%');
17 |
18 | for( var i = 0; i < numHigh; i++ ) {
19 | container.append(text);
20 | }
21 |
22 | container.find('.card__desc:last-child').css('width', (numHigh * 10) + '%');
23 | })
--------------------------------------------------------------------------------
/faculty.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
11 |
282 |
283 |
284 |
285 |
286 |
290 |
291 |
292 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
320 |
321 |
327 |
328 |
Faculty 1
329 |
Vast experience inthe field of education with high honors. One of the best in the country with great knowledge.
330 |
331 | Read More
332 |
333 |
334 |
335 |
336 |
342 |
343 |
Faculty 2
344 |
Vast experience inthe field of education with high honors. One of the best in the country with great knowledge.
345 |
346 |
347 | Read More
348 |
349 |
350 |
351 |
352 |
358 |
359 |
Faculty 3
360 |
Vast experience inthe field of education with high honors. One of the best in the country with great knowledge.
361 | Read More
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
--------------------------------------------------------------------------------
/faculty1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Faculty 1
5 |
6 |
7 |
14 |
15 |
16 |
28 |
29 |
30 |
31 |
32 |
Overview
33 |
With wide knowledge of subject and extreme teaching experience, he is one of the best tutors in the country. With his humrous attitute, he will surely make you fall in love with the subject.
34 |
35 |
36 |
65 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/faculty1.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
Faculty 1
8 |
9 |
10 |
17 |
18 |
19 |
31 |
32 |
33 |
34 |
35 |
Overview
36 |
With wide knowledge of subject and extreme teaching experience, he is one of the best tutors in the country. With his humrous attitute, he will surely make you fall in love with the subject.
37 |
Write a review
38 |
39 |
40 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/faculty2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Faculty 2
5 |
6 |
7 |
13 |
14 |
15 |
27 |
28 |
29 |
30 |
Overview
31 |
With wide knowledge of subject and extreme teaching experience, he is one of the best tutors in the country. With his humrous attitute, he will surely make you fall in love with the subject.
32 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/faculty2.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
Faculty 2
9 |
10 |
11 |
17 |
18 |
19 |
31 |
32 |
33 |
34 |
Overview
35 |
With wide knowledge of subject and extreme teaching experience, he is one of the best tutors in the country. With his humrous attitute, he will surely make you fall in love with the subject.
36 |
Write a review
37 |
38 |
39 |
67 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/faculty3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Faculty 3
5 |
6 |
7 |
13 |
14 |
15 |
27 |
28 |
29 |
30 |
31 |
Overview
32 |
With wide knowledge of subject and extreme teaching experience, he is one of the best tutors in the country. With his humrous attitute, he will surely make you fall in love with the subject.
33 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/faculty3.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
Faculty 3
8 |
9 |
10 |
16 |
17 |
18 |
30 |
31 |
32 |
33 |
34 |
Overview
35 |
With wide knowledge of subject and extreme teaching experience, he is one of the best tutors in the country. With his humrous attitute, he will surely make you fall in love with the subject.
36 |
Write a review
37 |
38 |
39 |
67 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/faculty_welcome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/praneshn99/web_security_testing/d0a222040c3dbb5b79f059186a06b468c9d51c9b/faculty_welcome.png
--------------------------------------------------------------------------------
/fetch_comment_c1.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM course_1 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_c2.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM course_2 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_c3.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM course_3 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_c4.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM course_4 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_c5.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM course_5 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_f1.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM faculty_1 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_f2.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM faculty_2 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/fetch_comment_f3.php:
--------------------------------------------------------------------------------
1 | prepare($query);
14 |
15 | $statement->execute();
16 |
17 | $result = $statement->fetchAll();
18 | $output = '';
19 | foreach($result as $row)
20 | {
21 | $output .= '
22 |
23 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
24 |
'.$row["comment"].'
25 |
26 |
27 | ';
28 | $output .= get_reply_comment($connect, $row["comment_id"]);
29 | }
30 |
31 | echo $output;
32 |
33 | function get_reply_comment($connect, $parent_id = 0, $marginleft = 0)
34 | {
35 | $query = "
36 | SELECT * FROM faculty_3 WHERE parent_comment_id = '".$parent_id."'
37 | ";
38 | $output = '';
39 | $statement = $connect->prepare($query);
40 | $statement->execute();
41 | $result = $statement->fetchAll();
42 | $count = $statement->rowCount();
43 | if($parent_id == 0)
44 | {
45 | $marginleft = 0;
46 | }
47 | else
48 | {
49 | $marginleft = $marginleft + 48;
50 | }
51 | if($count > 0)
52 | {
53 | foreach($result as $row)
54 | {
55 | $output .= '
56 |
57 |
By '.$row["comment_sender_name"].' on '.$row["date"].'
58 |
'.$row["comment"].'
59 |
60 |
61 | ';
62 | $output .= get_reply_comment($connect, $row["comment_id"], $marginleft);
63 | }
64 | }
65 | return $output;
66 | }
67 |
68 | ?>
69 |
--------------------------------------------------------------------------------
/hacking.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.8.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Aug 30, 2019 at 07:23 PM
7 | -- Server version: 10.1.37-MariaDB
8 | -- PHP Version: 5.6.39
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET AUTOCOMMIT = 0;
12 | START TRANSACTION;
13 | SET time_zone = "+00:00";
14 |
15 |
16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 | /*!40101 SET NAMES utf8mb4 */;
20 |
21 | --
22 | -- Database: `hacking`
23 | --
24 |
25 | -- --------------------------------------------------------
26 |
27 | --
28 | -- Table structure for table `clickjacking`
29 | --
30 |
31 | CREATE TABLE `clickjacking` (
32 | `name` char(50) NOT NULL,
33 | `id` int(100) NOT NULL,
34 | `dob` date NOT NULL,
35 | `gender` char(10) NOT NULL,
36 | `address` varchar(300) NOT NULL,
37 | `contact` int(15) NOT NULL,
38 | `email` varchar(50) NOT NULL,
39 | `username` varchar(25) NOT NULL,
40 | `password` varchar(25) NOT NULL
41 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
42 |
43 | --
44 | -- Indexes for dumped tables
45 | --
46 |
47 | --
48 | -- Indexes for table `clickjacking`
49 | --
50 | ALTER TABLE `clickjacking`
51 | ADD PRIMARY KEY (`email`),
52 | ADD UNIQUE KEY `username` (`username`),
53 | ADD UNIQUE KEY `contact` (`contact`),
54 | ADD KEY `id` (`id`);
55 |
56 | --
57 | -- AUTO_INCREMENT for dumped tables
58 | --
59 |
60 | --
61 | -- AUTO_INCREMENT for table `clickjacking`
62 | --
63 | ALTER TABLE `clickjacking`
64 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
65 | COMMIT;
66 |
67 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
68 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
69 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
70 |
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/praneshn99/web_security_testing/d0a222040c3dbb5b79f059186a06b468c9d51c9b/icon.png
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
Upload
7 |
8 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/lock.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Login
5 |
6 |
7 |
8 |
9 |
106 |
107 |
108 |
109 |
110 |
114 |
115 | L
116 | O
117 | G
118 | I
119 | N
120 |
121 |
122 |
138 |
139 |
150 |
151 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
--------------------------------------------------------------------------------
/login.php:
--------------------------------------------------------------------------------
1 | Go back and retry!";
21 | }
22 | }
23 | //The below code is secured from sql injection as it counts and tags its entries, overcoming the boolean disadvantage
24 | /*
25 |
26 | $sql = "SELECT * from register where username = '$user'" ;
27 | $result=mysqli_query($db,$sql);
28 | $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
29 | $active=$row['active'];
30 | if(!$active){
31 | echo "Invalid Entry";
32 | }
33 |
34 | $count=mysqli_num_rows($result);
35 |
36 | if(($count === 1)){
37 | header("Location:website.php");
38 | $_SESSION['login_user'] = $user;
39 | }
40 | else{
41 | echo "
Go back and retry!";
42 | }
43 | }
44 | */
45 | ?>
--------------------------------------------------------------------------------
/login_content_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/praneshn99/web_security_testing/d0a222040c3dbb5b79f059186a06b468c9d51c9b/login_content_1.png
--------------------------------------------------------------------------------
/logout.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pass_chg.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
Password Change
9 |
10 |
11 |
Change Password
12 |
17 |
18 |
19 | connect_error){
22 | echo "Connection Error: ".$link->connect_error;
23 | }
24 | if(isset($_GET['submit'])){
25 | $newp = $_GET['new_password'];
26 | $confirmp = $_GET['confirm_password'];
27 | if($newp === $confirmp){
28 | $change = $link->query("UPDATE register set password='hacked' where username='$login_session'");
29 | if($change){
30 | echo "";
31 | echo "
Click Here to go to dashboard";
32 |
33 | }
34 |
35 | }
36 | else{
37 | echo "";
38 | echo "
Click Here to Retry!";
39 |
40 |
41 | }
42 |
43 | }
44 | ?>
--------------------------------------------------------------------------------
/payment.php:
--------------------------------------------------------------------------------
1 | connect_error){
8 | echo "Connection Error:" .$connection->connect_error."
Go Back and retry!";
9 | }
10 | ?>
11 |
12 |
13 |
Wait...
14 |
16 |
17 |
18 |
27 |
OR
28 |
Cancel Order
29 |
30 |
31 | query($get);
38 |
39 | if ($result->num_rows > 0) {
40 | // output data of each row
41 | while($row = $result->fetch_assoc()) {
42 | $id = $row['order_id'];
43 | } }
44 | else {
45 | echo "0 results";
46 | }
47 | $sql = "INSERT into payment(order_id,total_amount,customer) values ('$id','$actual_amt','$login_session')";
48 |
49 | if($connection->query($sql)=== TRUE){
50 | header("Location:thank.php");
51 | }
52 | else{
53 | echo "ERROR!
Click here to go back and retry!";
54 | }
55 | }
56 |
57 | ?>
--------------------------------------------------------------------------------
/personal.php:
--------------------------------------------------------------------------------
1 | query("SELECT * FROM register where username = '$login_session'");
4 |
5 | if($query->num_rows > 0){
6 | while($row = $query->fetch_assoc()){
7 | $name = $row['name'];
8 | $birth = $row['dob'];
9 | $gender = $row['gender'];
10 | $home = $row['address'];
11 | $contact = $row['contact'];
12 | $mail = $row['email'];
13 | $password = $row['password'];
14 | }
15 | }
16 | ?>
17 |
18 |
19 |
129 |
130 |
131 |
132 |
Personal Information
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
--------------------------------------------------------------------------------
/register_welcome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/praneshn99/web_security_testing/d0a222040c3dbb5b79f059186a06b468c9d51c9b/register_welcome.png
--------------------------------------------------------------------------------
/style.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: Arial;
3 | font-size: 14px;
4 | }
5 | .bgColor {
6 | max-width: 440px;
7 | height:150px;
8 | background-color: #fff4be;
9 | border-radius: 4px;
10 | }
11 | .bgColor label{
12 | font-weight: bold;
13 | color: #A0A0A0;
14 | }
15 | #targetLayer{
16 | float:left;
17 | width:150px;
18 | height:150px;
19 | text-align:center;
20 | line-height:150px;
21 | font-weight: bold;
22 | color: #C0C0C0;
23 | background-color: #F0E8E0;
24 | border-bottom-left-radius: 4px;
25 | border-top-left-radius: 4px;
26 | }
27 | #uploadFormLayer{
28 | float:left;
29 | padding: 20px;
30 | }
31 | .btnSubmit {
32 | background-color: #696969;
33 | padding: 5px 30px;
34 | border: #696969 1px solid;
35 | border-radius: 4px;
36 | color: #FFFFFF;
37 | margin-top: 10px;
38 | }
39 | .inputFile {
40 | padding: 5px;
41 | background-color: #FFFFFF;
42 | border:#F0E8E0 1px solid;
43 | border-radius: 4px;
44 | }
45 | .image-preview {
46 | width:150px;
47 | height:150px;
48 | border-bottom-left-radius: 4px;
49 | border-top-left-radius: 4px;
50 | }
51 |
--------------------------------------------------------------------------------
/thank.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Thank You!
4 |
107 |
108 |
109 |
135 |
177 |
178 |
179 |
180 |
--------------------------------------------------------------------------------
/unauth.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/unauth.js:
--------------------------------------------------------------------------------
1 | var str = document.getElementsByTagName('div')[0].innerHTML.toString();
2 | var i = 0;
3 | document.getElementsByTagName('div')[0].innerHTML = "";
4 |
5 | setTimeout(function() {
6 | var se = setInterval(function() {
7 | i++;
8 | document.getElementsByTagName('div')[0].innerHTML = str.slice(0, i) + "|";
9 | if (i == str.length) {
10 | clearInterval(se);
11 | document.getElementsByTagName('div')[0].innerHTML = str;
12 | }
13 | }, 10);
14 | },0);
15 |
--------------------------------------------------------------------------------
/upload.php:
--------------------------------------------------------------------------------
1 | query("INSERT into images (file_name, uploaded_on,username) VALUES ('".$fileName."', NOW(),'$login_session')");
20 | if($insert){
21 | $statusMsg = "The file ".$fileName. " has been uploaded successfully.
to go back to Dashboard";
22 | }else{
23 | $statusMsg = "File upload failed, please try again
to go back to Dashboard.";
24 | }
25 | }else{
26 | $statusMsg = "Sorry, there was an error uploading your file.
to go back to Dashboard";
27 | }
28 | }else{
29 | $statusMsg = 'Invalid file format.
to go back to Dashboard';
30 | }
31 | }else{
32 | $statusMsg = 'Please select a file to upload.
to go back to Dashboard';
33 | }
34 |
35 | // Display status message
36 | echo $statusMsg;
37 | ?>
--------------------------------------------------------------------------------
/website.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
34 |
35 |
36 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
--------------------------------------------------------------------------------
/website.php:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
11 |
16 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
37 |
38 |
39 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
--------------------------------------------------------------------------------
/website_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/praneshn99/web_security_testing/d0a222040c3dbb5b79f059186a06b468c9d51c9b/website_logo.png
--------------------------------------------------------------------------------
/website_welcome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/praneshn99/web_security_testing/d0a222040c3dbb5b79f059186a06b468c9d51c9b/website_welcome.png
--------------------------------------------------------------------------------