Last active
March 7, 2019 17:41
-
-
Save Fray117/48ed11587d29b93f02bc6e2cfc8cfc59 to your computer and use it in GitHub Desktop.
Exploiter Proxy
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 | |
/** | |
* Proxy Tunnel | |
* | |
* @author Fray117 | |
* @package ExploiterID/Proxy | |
* @version 0.4.1 | |
*/ | |
// Remove Execution Time Limit | |
set_time_limit(0); | |
class proxify { | |
function image(string $image) { | |
$header = get_headers($image, true); | |
if (preg_match('/image/', $header['Content-Type'])) { | |
header('Content-Type: ' . $header['Content-Type']); | |
if( $header['Content-Length'] == 'image/jpeg' ) { | |
$img = imagecreatefromjpeg($image); | |
imagejpeg($img, NULL, -1); | |
} else { | |
$img = imagecreatefrompng($image); | |
imagepng($img, NULL, -1); | |
} | |
imagedestroy($img); | |
} else { | |
header('HTTP/1.1 400 Bad Request'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment