!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/arch/mips/kernel/   drwxr-xr-x
Free 318.34 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     irixinv.c (2.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Support the inventory interface for IRIX binaries
 * This is invoked before the mm layer is working, so we do not
 * use the linked lists for the inventory yet. 
 *
 * Miguel de Icaza, 1997.
 *
 * $Id: irixinv.c,v 1.3 1998/04/05 11:23:51 ralf Exp $
 */
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <asm/inventory.h>

#define MAX_INVENTORY 50
int inventory_items = 0;

static inventory_t inventory [MAX_INVENTORY];

void
add_to_inventory (int class, int type, int controller, int unit, int state)
{
    inventory_t *ni = &inventory [inventory_items];

    if (inventory_items == MAX_INVENTORY)
        return;
    
    ni->inv_class      = class;
    ni->inv_type       = type;
    ni->inv_controller = controller;
    ni->inv_unit       = unit;
    ni->inv_state      = state;
    ni->inv_next       = ni;
    inventory_items++;
}

int
dump_inventory_to_user (void *userbuf, int size)
{
    inventory_t *inv  = &inventory [0];
    inventory_t *user = userbuf;
    int v;

    if ((v = verify_area (VERIFY_WRITE, userbuf, size)))
        return v;

    for (v = 0; v < inventory_items; v++){
        inv = &inventory [v];
        copy_to_user (user, inv, sizeof (inventory_t));
        user++;
    }
    return inventory_items * sizeof (inventory_t);
}

void __init init_inventory (void)
{
    /* gross hack while we put the right bits all over the kernel
     * most likely this will not let just anyone run the X server
     * until we put the right values all over the place
     */
     
    add_to_inventory (10, 3, 0, 0, 16400);
    add_to_inventory (1, 1, 150, -1, 12);
    add_to_inventory (1, 3, 0, 0, 8976);
    add_to_inventory (1, 2, 0, 0, 8976);
    add_to_inventory (4, 8, 0, 0, 2);
    add_to_inventory (5, 5, 0, 0, 1);
    add_to_inventory (3, 3, 0, 0, 32768);
    add_to_inventory (3, 4, 0, 0, 32768);
    add_to_inventory (3, 8, 0, 0, 524288);
    add_to_inventory (3, 9, 0, 0, 64);
    add_to_inventory (3, 1, 0, 0, 67108864);
    add_to_inventory (12, 3, 0, 0, 16);
    add_to_inventory (8, 7, 17, 0, 16777472);
    add_to_inventory (8, 0, 0, 0, 1);
    add_to_inventory (2, 1, 0, 13, 2);
    add_to_inventory (2, 2, 0, 2, 0);
    add_to_inventory (2, 2, 0, 1, 0);
    add_to_inventory (7, 14, 0, 0, 6);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0046 ]--