Skip to content

Instantly share code, notes, and snippets.

@Fray117
Last active March 7, 2019 17:41
Show Gist options
  • Save Fray117/48ed11587d29b93f02bc6e2cfc8cfc59 to your computer and use it in GitHub Desktop.
Save Fray117/48ed11587d29b93f02bc6e2cfc8cfc59 to your computer and use it in GitHub Desktop.
Exploiter Proxy
<?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