!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/netpbm-10.35.58/userguide/   drwxr-xr-x
Free 40.46 GB of 127.8 GB (31.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     libmaketmpfilefd.html (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Netpbm subroutine library: pm_make_tmpfile_fd() function

pm_make_tmpfile_fd()

Updated: 31 December 2007

NAME

pm_make_tmpfile_fd() - create a temporary named file

SYNOPSIS

#include <netpbm/pm.h>

pm_make_tmpfile(int *         fdP,
                const char ** filenameP);

EXAMPLE

This simple example creates a temporary file, writes "hello world" to it, then writes some search patterns to it, then uses it as input to grep:

#include <netpbm/pm.h>

int fd;
const char * myfilename;

pm_make_tmpfile_fd(&fdP, &myfilename);

write(fd, "^account:\\s.*\n", 16);
fprintf(fd, "^name:\\s.*\n", 13);

close(fd);

asprintfN(&grepCommand, "grep --file='%s' /tmp/infile >/tmp/outfile");

system(grepCommand);

strfree(grepCommand);

unlink(myfilename);

strfree(myfilename);

DESCRIPTION

This library function is part of Netpbm.

pm_make_tmpfile_fd() is analogous to pm_make_tmpfile(). The only difference is that it opens the file as a low level file, as open() would, rather than as a stream, as fopen() would.

If you don't need to access the file by name, use pm_tmpfile_fd() instead, because it's cleaner. With pm_tmpfile_fd(), the operating system always deletes the temporary file when your program exits, if the program failed to clean up after itself.

HISTORY

pm_tmpfile() was introduced in Netpbm 10.42 (March 2008).


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