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


Viewing file:     yelp.js (3.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
var slt = {
  /* Shorten the link trail by chopping off links from the
  beginning of it until it's no longer wider than the screen */
  init: function() {
    slt.lt = document.getElementById('linktrail');
    if (!slt.lt) return;

    /* Try and add links, in case we've just resized the
       window to be bigger */
    var canContinue = true;
    while (canContinue &&
          (slt.findRightEdge() < document.body.offsetWidth)) {
      canContinue = slt.addLinktrailElement();
    }

    /* Now remove links until the linktrail is narrower than
       the window */
    canContinue = true;
    while (canContinue &&
          (slt.findRightEdge() > document.body.offsetWidth)) {
      canContinue = slt.removeLinktrailElement();
    }
  },

  findRightEdge: function() {
    /* get the position of the far right-hand-edge of the rightmost
       element in the linktrail */
    var maxright = 0;

    for (var i=0;i<slt.lt.childNodes.length;i++) {
      if (typeof slt.lt.childNodes[i].offsetLeft != 'undefined' &&
          typeof slt.lt.childNodes[i].offsetWidth != 'undefined') {
        var rightedge = slt.lt.childNodes[i].offsetLeft +
            slt.lt.childNodes[i].offsetWidth;
        if (rightedge > maxright) maxright = rightedge;
      }
    }

    return maxright;
  },

  removeLinktrailElement: function() {
    /* Walk through the link trail until we find a complete
       link; when we do, change its displayed text to "…",
       put its actual text in a tooltip, and return */
    var links = slt.lt.getElementsByTagName('a');

    for (var i=0;i<links.length;i++) {
      if (links[i].firstChild) {
        if (links[i].firstChild.nodeValue != '…') {
          links[i].title = links[i].firstChild.nodeValue;
          links[i].firstChild.nodeValue = '…';
          return true;
        }
      }
    }

    /* There are no links left to remove; indicate this back
       to the caller so it doesn't loop infinitely */
    return false;
  },

  addLinktrailElement: function() {
    /* Walk through the link trail until we find a "…"
       link; when we do, change its displayed text back to
       what it should be and return */
    var links = slt.lt.getElementsByTagName('a');

    for (var i=0;i<links.length;i++) {
      if (links[i].firstChild) {
        if (links[i].firstChild.nodeValue == '…') {
          links[i].firstChild.nodeValue = links[i].title;
          return true;
        }
      }
    }

    /* There are no links left to add; indicate this back
       to the caller so it doesn't loop infinitely */
    return false;
  }
}

/* addEventListener() is Gecko-only, but so is yelp */
window.addEventListener("load",slt.init,false);
/* load doesn't seem to get fired in Yelp.  I might need to tell Gecko
   that I'm finished or something.  DOMContentLoaded works though */
window.addEventListener("DOMContentLoaded",slt.init,false);
window.addEventListener("resize",slt.init,false);

function submit_search ()
{
    window.location = "x-yelp-search:" + document.getElementById ('search-entry').value;
    return false;
}

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