!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/parisc/kernel/   drwxr-xr-x
Free 318.33 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:     sys_parisc.c (1.73 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * linux/arch/parisc/kernel/sys_parisc.c
 *
 * this implements the missing syscalls.
 */

#include <asm/uaccess.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/linkage.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/smp_lock.h>

/* for some reason, "old_readdir" is the only syscall which does not begin
 * with "sys_", which breaks the ENTRY_* macros in syscall.S so I "fixed"
 * it here.
 */

int sys_old_readdir(unsigned int fd, void *dirent, unsigned int count)
{
    return old_readdir(fd, dirent, count);
}

int sys_pipe(int *fildes)
{
    int fd[2];
    int error;

    lock_kernel();
    error = do_pipe(fd);
    unlock_kernel();
    if (!error) {
        if (copy_to_user(fildes, fd, 2*sizeof(int)))
            error = -EFAULT;
    }
    return error;
}

int sys_pause(void)
{
    current->state = TASK_INTERRUPTIBLE;
    schedule();
    return -ERESTARTNOHAND;
}

int sys_mmap(unsigned long addr, unsigned long len,
        unsigned long prot, unsigned long flags, unsigned long fd,
        unsigned long offset)
{
    struct file * file = NULL;
    int error;

    down_write(&current->mm->mmap_sem);
    lock_kernel();
    if (!(flags & MAP_ANONYMOUS)) {
        error = -EBADF;
        file = fget(fd);
        if (!file)
            goto out;
    }
    flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
    error = do_mmap(file, addr, len, prot, flags, offset);
    if (file != NULL)
        fput(file);
out:
    unlock_kernel();
    up_write(&current->mm->mmap_sem);
    return error;
}

int sys_ioperm(unsigned long from, unsigned long num, int on)
{
    return -ENOSYS;
}

long sys_shmat_wrapper(int shmid, void *shmaddr, int shmflag)
{
    extern int sys_shmat(int shmid, char *shmaddr, int shmflg,
                 unsigned long * raddr);
    unsigned long raddr;
    int r;

    r = sys_shmat(shmid, shmaddr, shmflag, &raddr);
    if (r < 0)
        return r;
    return raddr;
}

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