!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/usr/share/doc/freetds-common/examples/   drwxr-xr-x
Free 1.48 GB of 7.22 GB (20.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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 execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0151 ]--