Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
src /
imagick /
util /
[ HOME SHELL ]
Name
Size
Permission
Action
Float32Info.php
737
B
-rw-r--r--
FloatInfo.php
738
B
-rw-r--r--
analyze_params.php
946
B
-rw-r--r--
calculate_cflags.php
1.84
KB
-rw-r--r--
calculate_test_jobs.php
335
B
-rw-r--r--
checkSymbols.php
3.7
KB
-rw-r--r--
check_fonts.php
560
B
-rw-r--r--
check_for_missing_class_method...
5.48
KB
-rw-r--r--
check_for_missing_enums.php
7.92
KB
-rw-r--r--
check_version.php
2.31
KB
-rw-r--r--
fixup_arginfo.php
4.19
KB
-rw-r--r--
functions.php
8.41
KB
-rw-r--r--
genSymbols.sh
1012
B
-rw-r--r--
type_check.php
2.38
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : check_for_missing_class_methods.php
<?php $cache = false; $urls = [ "drawing_wand" => "https://imagemagick.org/api/drawing-wand.php", "pixel_iterator" => "https://imagemagick.org/api/pixel-iterator.php", "pixel_wand" => "https://imagemagick.org/api/pixel-wand.php", "wand_view" => "https://imagemagick.org/api/wand-view.php", "magick_image" => "https://imagemagick.org/api/magick-image.php", "magick_property" => "https://imagemagick.org/api/magick-property.php", "magick_wand" => "https://imagemagick.org/api/magick-wand.php", ]; function getFileName($type) { return __DIR__ . "/found_" . $type . "_methods.txt"; } $methods = []; if ($cache === false) { foreach ($urls as $type => $url) { $html = @file_get_contents($url); if ($html === false) { echo "Failed to retrieve URL $url\n"; exit(-1); } $pattern = '#<a href=".+" id="(.+)">\1</a>#iu'; $count = preg_match_all($pattern, $html, $matches); foreach ($matches[1] as $matchDetail) { $methods[$matchDetail] = false; } file_put_contents(getFileName($type), implode("\n", $matches[1])); } } else { foreach ($urls as $type => $url) { $filename = getFileName($type); $lines = file($filename); foreach ($lines as $line) { $line = trim($line); if (strlen($line) > 0) { $methods[$line] = false; } } } } $tests = [ "draw", "pixel", "wand" ]; $unsupportedMethods = [ "MagickSetImageEndian", // nope. "MagickGetImageEndian", //nope, nope, nope "MagickDestroyImage", //this shouldn't be needed. It's covered by clear? "MagickGetImageFuzz", // I'm not aware of any operations that use the built in fuzz "MagickSetImageFuzz", // I'm not aware of any operations that use the built in fuzz "MagickGetImageChannelDistortions", // Don't understand "MagickGetImageChannelFeatures", // Don't understand "MagickConstituteImage", // duplicate functionality. "MagickCompositeLayers", // duplicate functionality. "SetWandViewDescription", // don't understand "DuplexTransferWandViewIterator", "NewMagickWandFromImage", // We don't expose Image types "NewWandView", // don't understand and we don't expose views "NewWandViewExtent", // don't understand and we don't expose views //Pixel "PixelGetException", // not a user function "NewPixelWands", // Probably not needed. "IsDrawingWand", //Not needed "ClonePixelWands", // Hopefully not needed "DestroyPixelWands", //Shouldn't be needed? "PixelGetMagickColor", // We don't expose MagickPixelPacket currently "PixelSetMagickColor", // We don't expose MagickPixelPacket currently "ClonePixelWands", //Shouldn't be needed. "DestroyPixelWands", //shouldn't be needed. "PixelGetColorAsNormalizedString", //stahp "PixelGetExceptionType", // This should be everywhere? "PixelGetQuantumColor", //pixelpackets are not exposed. "PixelSetQuantumColor", //pixelpackets are not exposed. "PixelGetPixel", // don't understand "PixelGetQuantumPacket", // don't understand "PixelGetQuantumPixel", // don't understand "PixelSetPixelColor", // we don't expose PixelInfo "PixelSetQuantumPixel", // don't understand // Draw "DrawAllocateWand", // not a user function "IsDrawingWand", // Not needed // TODO - add these when someone asks for them or they are required // but curently we don't expose wand view. "SetWandViewIterator", "TransferWandViewIterator", "UpdateWandViewIterator", "ClonePixelIterator", "CloneWandView", "DestroyWandView", "GetWandViewException", "GetWandViewExtent", "GetWandViewIterator", "GetWandViewPixels", "GetWandViewWand", "DrawCloneExceptionInfo", "DrawGetExceptionType", // TODO - these should not be needed in PHP land "IsMagickWand", "IsMagickWandInstantiated", "IsPixelIterator", "IsWandView", // Yeah, no: https://www.zdnet.com/article/london-protesters-slam-us-copyright-laws/ "MagickSetPassphrase", ]; // "MagickConnectedComponentsImage", // MagickBooleanType MagickConnectedComponentsImage(MagickWand *wand, const size_t connectivity,CCObjectInfo **objects) // These functions almost certainly need to be implemented. $todoList = [ "DrawGetTypeMetrics", "MagickConnectedComponentsImage", "MagickGetExceptionType", "MagickDeleteImageProperty", "MagickGetImageDistortions", "MagickGetImageFeatures", "MagickSetProgressMonitor", "MagickSetSecurityPolicy", "PixelGetIteratorExceptionType", ]; $files = glob(__DIR__ . "/../*.c"); $contents = []; $excludeSourceFiles = [ "#.*shim.s*#" ]; foreach ($files as $file) { //Don't look in some source files. foreach ($excludeSourceFiles as $excludeSourceFile) { if (preg_match($excludeSourceFile, $file) !== 0) { echo "Excluding file $file\n"; continue 2; } } echo "Check file $file \n"; $contents = file_get_contents($file); if ($contents == false) { echo "Failed to read $file\n"; exit(0); } foreach ($methods as $name => $found) { if ($found == true) { continue; } $position = strpos($contents, $name); if ($position !== false) { $methods[$name] = true; } } } $any_missing = false; ksort($methods); foreach ($methods as $name => $found) { if (in_array($name, $unsupportedMethods) == true) { continue; } if (in_array($name, $todoList) == true) { continue; } if ($found == false) { echo "Missing: $name\n"; $any_missing = true; } } if ($any_missing === true) { exit(-1); } exit(0);
Close