ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:27.74 GB of 70.42 GB (39.39%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ share/ doc/ freetds-common/ examples/ - drwxr-xr-x

Directory:
Viewing file:     freetds.conf.pl (2.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
#
# FreeTDS - Library of routines accessing Sybase and Microsoft databases
# Copyright (C) 2001  James K. Lowden

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.

# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.

# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

# This program converts entries in an interfaces file to the format
# of freetds.conf.

if( @ARGV > 0 ) {
    $interfaces = $ARGV[0];
    goto OPEN if( -e $interfaces && ! -d $interfaces );

    # agument was only directory name?
    $interfaces = "$interfaces/interfaces";    
    goto OPEN if( -e $interfaces );
    
    warn "Could not find 'interfaces' file using $ARGV[0].\n";
}

# is it in the current directory?
$interfaces = 'interfaces';
goto OPEN if( -e $interfaces );
    
# is it in the $SYBASE directory?
$interfaces = "$ENV{SYBASE}/interfaces";
goto OPEN if( -e $interfaces );

CROAK:    # no input file found <sigh>.  
$searched = qq("$ARGV[0]", ) if $ARGV[0];
$searched .= qq/\$SYBASE ("$SYBASE") /;
$searched .= ", " if $ARGV[0];
$searched .= "or " . `pwd`;
die qq(No "interfaces" file found to convert in $searched);


OPEN:
open INTERFACES, $interfaces or die qq(Could not open "$interfaces" from `pwd`);
print qq(# The following lines were converted from "$interfaces":\n);

$fPrintComments = 0;
while(<INTERFACES>) {
    # Print comments after finding some kind of data line
    # (skip boilerplate explanatory comments in model interfaces file).
    if( /^#/ ) {
        print if $fPrintComments;
        next;
    }

    $fPrintComments = 1;    # reached first non-commented line
    
    if( /^(\w+)/ ) {    # new symbolic name found
        chomp;
        $SymbolicName = $1;
        $hostname = $port = $tds = '';
        next;
    }
    
    next unless $SymbolicName; 
    
    # ignore "master" record
    next if /^\s+master/;
    
    # if we know the symbolic name and we found a "query" line...
    if( s/^\s+query//o ) {        # found a live one
        chomp;
        ($tcp, $tds, $hostname, $port) = split;
        $tds =~ s/tds//o;    # strip off 'tds' if in form of 'tds4.2'
        print qq([$SymbolicName]\n);
        print qq(\thost = $hostname\n);
        print qq(\tport = $port\n);
        print qq(\ttds version = $tds\n) if $tds =~ /\d.*\d/;
        print qq(\n);

        $SymbolicName = '';
        $hostname = $port = $tds = '';
    }
}
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2486 seconds