!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)

/var/www/html/cvc/js/   drwxr-xr-x
Free 51.01 GB of 127.8 GB (39.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ver_js.js (10.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
jQuery.extend(jQuery.expr[':'], {
    focus: function(element) { 
        return element == document.activeElement; 
    }
});
jQuery(document).ready(function(){
	jQuery(".preventDf").click(function(event){
		event.preventDefault();
	});
	jQuery('#btnClear').click(function(){
		jQuery('#btnClear').parents('form').find(':text:not(.calendarDateInput),:hidden').attr('value','').end().find('select:not(.calendarDateInput)').children().removeAttr('selected').end().attr('value','');
		jQuery('div.error').remove();
//alert(jQuery('#btnClear').parents('form').find(':text,:hidden').length);
	});
	jQuery('.link').hover(function(){
		jQuery(this).addClass('hover');
	},function(){
		jQuery(this).removeClass('hover');
	});
	jQuery('.preSubmit').click(function(){
		jQuery('#s_id').attr('value',jQuery(this).next(':hidden').attr('value'));
		jQuery('#s_id').parents('form').trigger('submit');	
	});
	jQuery('input[class^="required"],select.required').blur(function(event){
		jQuery(this).next('span').children('.error').remove();
		if(jQuery(this).attr('class') == 'required-thai'){
			if(!/^[ก-๙ 0-9 . ( ) / -]+$/.test(this.value)){
				jQuery(this).next('span.error').append('<div class="error">กรุณาป้อนและควรป้อนเป็นภาษาไทยเท่านั้น</div>');
				return false;
			}else{
				jQuery(this).next('span.error').children('.error').remove();
				return true;
			}	
		}else if(jQuery(this).attr('class')=='required-eng'){
			if(!/^[a-z A-Z 0-9 . ( ) / -]+$/.test(this.value)){
				jQuery(this).next('span.error').append('<div class="error">กรุณาป้อนและควรป้อนเป็นภาษาอังกฤษเท่านั้น</div>');
				return false;
			}else{
				jQuery(this).next('span.error').children('.error').remove();
				return true;
			}			
		}else if(jQuery(this).attr('class')=='required-float'){
			if(!/^[0-9 .]+$/.test(this.value)){
				jQuery(this).next('span.error').append('<div class="error">กรุณาป้อนและควรป้อนเป็นตัวเลขเท่านั้น</div>');
				return false;
			}else{ 
				jQuery(this).next('span.error').children('.error').remove();
				return true;
			}
		}else if(jQuery(this).attr('class')=='required-int'){
			if(!/^[0-9]+$/.test(this.value)){
				jQuery(this).next('span.error').append('<div class="error">กรุณาป้อนและควรป้อนเป็นตัวเลขเท่านั้น</div>');
				return false;
			}else{
				jQuery(this).next('span.error').children('.error').remove();
				return true;
			}
		}else{
			if(this.value == ''){
				jQuery(this).next('span.error').append('<div class="error">กรุณาป้อนข้อมูล</div>');
				return false;				
			}else{
				jQuery(this).next('span.error').children('.error').remove();
				return true;
			}
		}
	});
/*	jQuery('form.chkBeforeSubmit').submit(function(){
		jQuery('input[class^="required"]').trigger('blur');
		var numError = jQuery('div.error',this).length;
		if(numError)
			return false;
	});
*/
	jQuery('table.table tbody tr').hover(function(){
		jQuery(this).addClass('trHover');
	},function(){
		jQuery(this).removeClass('trHover');
	});
	jQuery('table.tablePrint').find('td.optCol').remove();
});
function clearAttr(attr){
	jQuery.each(attr,function(index,value){
		jQuery("#"+index).attr(value,null);
	});
}
function pre_submit(id){
	jQuery('#s_id').attr('value',id);
	jQuery('#s_id').parents('form').trigger('submit');
}
function preSubmitAdv(id,frm,action){
	var $s_id = jQuery('#s_id');
	$s_id.attr('value',id);
	jQuery(frm).children().find(':text').attr('value','').end().find('select').children().removeAttr('selected').end().attr('value','');
//	jQuery('#btnClear').parents('form').find(':text').attr('value','').end().find('select').children().removeAttr('selected').end().attr('value','');
	jQuery(frm).unbind();
	if(action == "" )
		jQuery(frm).trigger("submit");
	else
		jQuery(frm).attr('action',action).trigger('submit');
}
function preSubmitMHd(arr,frm,action){
//	jQuery('#btnClear').parents('form').find(':text').attr('value','').end().find('select').children().removeAttr('selected').end().attr('value','');
//	jQuery(frm).unbind();
	jQuery("#"+frm).children().find(":text").val(null).end().find("select").children().attr("selected","");
	jQuery.each(arr,function(key,value){
		if(jQuery("#"+key).length == 0)
			jQuery("#"+frm).append("<input type=\"hidden\" name=\""+key+"\" id=\""+key+"\" value=\""+value+"\"/>");
		else
			jQuery("#"+key).attr("value",value);
		//alert(key+" have "+jQuery("#"+key).length+" value = "+jQuery("#"+key).val());
	});
	if(action == "")
		jQuery("#"+frm).trigger("submit");
	else
		jQuery("#"+frm).attr("action",action).trigger("submit");
}
function confirmDel(id,frm,action,fnc){
	if(confirm("คุณต้องการลบใช่หรือไม่") == true)
		if(fnc == "")
			preSubmitAdv(id,frm,action);
		else 
			fnc(id,frm,action);
}
function vprint(){
	window.print();
}
function chkDisable(ele,obj){
	alert(jQuery(obj).val());
	jQuery(obj).attr("value",true);
	if(jQuery(ele).attr("disabled")==true){
		jQuery(ele).attr("disabled",false);
		jQuery(obj).attr("value",false);
	}else{
		jQuery(ele).attr("disabled",true);
		jQuery(obj).attr("value",true);
	}
}
function popUp(url){
	strOption = "scrollbars=yes,left=0,top=0,width=500,height=500";
	window.open(url,"",strOption);
}
function clearFrm(frm,txtexcept,opt){
	var frmId = "#"+frm;
	jQuery(frmId+" :input").each(function(index){
		if(txtexcept.indexOf(jQuery(this).attr("id")) < 0){
			switch(this.type){
				case "password":
				case "text":
				case "select-one":
				case "textarea":
				case "hidden":
					jQuery(this).val("");
					break;
				case "checkbox":
				case "radio":
					this.checked = false;
			}
		}
	});
	if(opt != ""){
		jQuery.each(opt,function(id,tag){
			jQuery(tag+".#"+id).empty();
		});
	}
}
function sendPost(frmId, value, url, opt) {
	var html = "";
	if(url != "")
	{
		if (jQuery("#"+frmId).length > 0) {
			old_url = jQuery("#"+frmId).attr("action");
			jQuery("#"+frmId).attr("action",url);
		}
		else {
			jQuery("body").append("<form action=\""+url+"\" id=\""+frmId+"\" method=\"post\" ></form>")
		}
	}
	if (value != "") {
		jQuery.each(value,function(index,value){
			if(jQuery("#"+frmId).find("input:hidden[name='"+index+"']").length == 0)
			{
				html += "<input type='hidden' name='"+index+"' value='"+value+"' id='"+index+"' />";
			}else{
				jQuery("input:hidden[name='"+index+"']").val(value);
			}
			temp = index;
		});
	}
	if (typeof(opt) == "object") {
		var def_attrs = {'width':400,'height':400,'resizeable':true,'scrollbars':true};
		var attrs = "";
		jQuery.each(def_attrs,function(key,val){
			var tmp_val = (opt[key])?opt[key]:val;
			attrs += key+"="+tmp_val+",";
			delete opt[key];
		});
		jQuery.each(opt,function(key,val){
			attrs +=  key+"="+val+",";
		});
		attrs = attrs.substring(0,(attrs.length -1));
		jQuery("#"+frmId).submit(function(){
			window.open('', frmId+"_popup", attrs);
			this.target = frmId+"_popup";
		});
	}
	jQuery("#"+frmId).append(html).trigger("submit");
}

function setSuccessMsg(msg,flag){
//	var jflag = parseInt(flag);
	var html = "<div id='msgBox'";
	if(flag)
		html += " class=\"success\">";
	else
		html += " class=\"fail\">";

	html += msg+"</div>";
	jQuery(html).appendTo("body").delay(2000).fadeOut(1000);
}
//for ajax
function newXmlHttp(){
	var xmlhttp = false;

	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp = false;
			}
		}


	if(!xmlhttp && document.createElement){
		xmlhttp = new XMLHttpRequest();
	}

	return xmlhttp;
}

function isDecimal(ele){//check valid กรอกได้เฉพาะจำนวนทศนิยมที่ไม่ติดลบ
	val=document.getElementById(ele).value;
	if(val!=""){
		if(!(parseFloat(val,10)==(val*1))){ 
			alert("กรอกได้เฉพาะตัวเลขและจุดทศนิยมเท่านั้น !");
			document.getElementById(ele).value="";
			return false;
		}else if((val.indexOf("-")!=-1)){ 
			alert("กรอกได้เฉพาะตัวเลขและจุดทศนิยมเท่านั้น !");
			document.getElementById(ele).value="";
			return false;
		}
	}	
}

function isNumberic(ele){//เฉพาะจำนวนนับ
	val=document.getElementById(ele).value;
	if(val!=""){
		if(!(parseFloat(val,10)==(val*1))){ 
			alert("กรอกได้เฉพาะตัวเลขเท่านั้น !");
			document.getElementById(ele).value="";
			return false;
		}else if((val.indexOf(".")!=-1) || (val.indexOf("-")!=-1)){ 
			alert("กรอกได้เฉพาะตัวเลขเท่านั้น !");
			document.getElementById(ele).value="";
			return false;
		}
	}	
}
	function calBirthDate(birthDate)
	{
		var nowDate = new Date();
		var bDate = birthDate.split("/");
		var resultDate = Array();
		var firstDateOnMonth = new Date( nowDate.getFullYear() , nowDate.getMonth() , 1 );
		var firstDateNextMonth = new Date( nowDate.getFullYear() , nowDate.getMonth()+1 , 1 );
		var timeVary = firstDateNextMonth.getTime() - firstDateOnMonth.getTime();
		var dayVary = timeVary / (1000*60*60*24) ;
		var nDate = Array();
			nDate[0] = nowDate.getDate();
			nDate[1] = nowDate.getMonth()+1;
			nDate[2] = nowDate.getFullYear();
		resultDate[2] = nDate[2] - bDate[2];
		resultDate[1] = nDate[1] - bDate[1];
		if(resultDate[1] < 0 && resultDate[2] > 0)
		{
			resultDate[1] += 12;
			resultDate[2] -= 1;
		}
		resultDate[0] = nDate[0] - bDate[0];
		if(resultDate[0] < 0 && resultDate[1] > 0 )
		{
			resultDate[0] += dayVary;
			resultDate[1] -= 1;
		}

 // var date = new Date();
/*		resultDate[0] = nDate[0] - parseInt(bDate[0]);
		if(resultDate[0] < 0 ){
			resultDate[0] += 30;
			nDate[1] -= 1;
		}
		resultDate[1] = nDate[1] - parseInt(bDate[1]);
		if(resultDate[1] < 1 && nDate[2] > 0){
//			resultDate[1] += 12;
//			nDate[2] -= 1;
		}else if(resultDate[1] < 1 && nDate[2] < 0)
			resultDate[1] += 12;
		resultDate[2] = nDate[2] - parseInt(bDate[2]);
*/
		return resultDate[2]+" ปี  "+resultDate[1]+" เดือน  "+resultDate[0]+" วัน";
	}
	function calNumDay(srcDate,destDate,target,optMsg)
	{
		var temp = (jQuery(":hidden[name='"+srcDate+"']").val()).split("/");
		var sDate = new Date(temp[2]+"/"+temp[1]+"/"+temp[0]);
		var temp = (jQuery(":hidden[name='"+destDate+"']").val()).split("/");
		var dDate = new Date(temp[2]+"/"+temp[1]+"/"+temp[0]);
		var time = dDate.getTime() - sDate.getTime();
		var numDay = time/(1000*60*60*24);
		jQuery("#"+target).append(optMsg+" "+numDay);
	}

:: 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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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