diff --git a/XSS/index.php b/XSS/index.php index 05ed52c..f1507fa 100644 --- a/XSS/index.php +++ b/XSS/index.php @@ -155,11 +155,27 @@ - - +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + $conn->exec("USE OSTE"); + $sql = "DELETE FROM comontair"; + $stmt = $conn->prepare($sql); + $stmt->execute(); +} catch (PDOException $e) { + echo "Connection failed: " . $e->getMessage(); +} + +?> diff --git a/XSS/page2.php b/XSS/page2.php new file mode 100644 index 0000000..3015c20 --- /dev/null +++ b/XSS/page2.php @@ -0,0 +1,205 @@ + + + + + + OSTE Vulnerable Web Application + + + +
+ Logo + back + + +
+ +

Greetings, What's your name?

+
+
+ + + +
+
+Welcome To OSTE Vulnerable web application <3"; +$name = str_replace( '