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

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/itce.co.in/branch2/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     yearwiseidentitycard.php (6.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

<?php
include('session.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Student Search </title>

</head>
<script type="text/javascript">

 function print1(strid)
 {
 if(confirm("Do you want to print?"))
 {
 var values = document.getElementById(strid);
 

 
 
 var printing =
 window.open('','','left=0,top=0,size=12, width=550,height=400,toolbar=0,scrollbars=0,sta?tus=0');
 
 printing.document.write(values.innerHTML);
 
 printing.document.close();
 printing.focus();
 printing.print();
 printing.close();
 }
 }
 </script>s
</head>
<center>
<body>
<form action="" method="get" name="form">
  <table width="946" border="0" cellspacing="1" cellpadding="1">
   <tr>
    <td width="823" colspan="4" align="center"><?php include('header.php'); ?></td>
    </tr>
  <tr>
    <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td>
  </tr>
  <tr>
    <td width="210" bgcolor="#6699CC">Welcome: Mr.<?php echo $user ?></td>
        <td width="335" bgcolor="#6699CC"><a href="logout.php">Logout</a></td>
        <td width="454" bgcolor="#6699CC"><?php echo "Today is " date("d/m/y") . "<br>";?></td>
  </tr>
  <tr align="left"  width="100">
    <td width="83" bgcolor="#FFCC00"><input name="q" type="text" /></td>
    
    <td width="362" bgcolor="#FFCC00"><input type="submit" name="Submit" value="Search" /></td>
  </tr>
  
</table>
 </form>

       
        
       

<div   id="print2"> 
<div id="talltweets">
<?php

  
// Get the search variable from URL

  
$var = @$_GET['q'] ;
  
  
$trimmed trim($var); //trim whitespace from the stored variable
  
// rows to return
$limit=100

// check for an empty string and display a message.
if ($trimmed == "")
  {
 
  exit;
  }

// check for a search parameter
if (!isset($var))
  {
  echo 
"<p>We dont seem to have a search parameter!</p>";
  exit;
  }

mysql_connect("localhost","mitm_user","mitmpass838"); //(host, username, password)

//specify database ** EDIT REQUIRED HERE **
mysql_select_db("mitm_ailwssor_database") or die("Unable to select database"); //select which database we're using


$field 'cyear';
// Build SQL Query  
$query "select * from student_admission where $field like \"$trimmed\"  
order by 
$field"// EDIT HERE and specify your table and field names for the SQL query

$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);

// If we have no results, offer a google search as an alternative

if ($numrows == 0)
  {
  
  echo 
"   Sorry,  $trimmed   this  Number is not found";


  }

// next determine if s has been passed to script, if not use 0
  
if (empty($s)) {
  
$s=0;
  }

// get results
  
$query .= " limit $s,$limit";
  
$result mysql_query($query) or die("Couldn't execute query");

// begin to show results set
$count $s ;

// now you can display the results returned
  
while ($rowmysql_fetch_array($result))
   {

$photo="<img border='5' width='70' height='100' src=http://www.mitmgroup.com/data/files/".$row['photo_upload'] .">";

$id=$row[roll_no]; 
$name=$row[stduentname];
$father=$row[studentfathername]; 
$addres=$row[address]; 
$Subject=$row[subject1]; 
$year=$row[cyear]; 
$DOB=$row[dob]; 
$mobile=$row[mobileno]; 

echo 
"<table width=\"338\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" CLASS='boldtable'>
\n"

echo 
"  <tr>
\n"

echo 
"    <td width=\"338\" height=\"225\" align=\"left\" valign=\"top\"><table width=\"332\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" CLASS='boldtable'>
\n"

echo 
"      <tr>
\n"

echo 
"        <td height=\"66\" colspan=\"3\" align=\"left\" valign=\"top\" bgcolor=\"#EAEAEA\"><p><img src=\"images/idlogo.jpg\" width=\"339\" height=\"66\" /></p></td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td width=\"99\" bgcolor=\"#EAEAEA\">NAME</td>
\n"

echo 
"        <td width=\"130\" bgcolor=\"#EAEAEA\"> $row[stduentname]
\n"

echo 
"     </td>
\n"

echo 
"        <td rowspan=\"7\" align=\"left\" valign=\"top\" bgcolor=\"#EAEAEA\"> $photo  </td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">FATHER NAME</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\"> $father </td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">DOB</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\"> $DOB </td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td height=\"17\" bgcolor=\"#EAEAEA\">ROLL NO</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\"> $id </td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">PROGRAMME</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">$Subject</td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">YEAR</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\"> $year </td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">ADDRESS</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">$addres </td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">MOBILE NO:</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">$mobile</td>
\n"

echo 
"        <td width=\"110\" bgcolor=\"#EAEAEA\">&nbsp;</td>
\n"

echo 
"        </tr>
\n"

echo 
"      <tr>
\n"

echo 
"        <td height=\"12\" bgcolor=\"#EAEAEA\">&nbsp;</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">&nbsp;</td>
\n"

echo 
"        <td bgcolor=\"#EAEAEA\">Authority Signature</td>
\n"

echo 
"        </tr>
\n"

echo 
"      </table></td>
\n"

echo 
"  </tr>
\n"

echo 
"  </table>\n";
 
  
$count++ ;
  }

$currPage = (($s/$limit) + 1);

//break before paging
  
echo "";

  
// next we need to do the links to other results
  
if ($s>=1) { // bypass PREV link if s is 0
  
$prevs=($s-$limit);
  print 
"<a href=\"$PHP_SELF?s=$prevs&q=$var\">&lt;&lt; 
  Prev 10</a>&nbsp"
;
  }

// calculate number of pages needing links
  
$pages=intval($numrows/$limit);

// $pages now contains int of pages needed unless there is a remainder from division

?>     
 
  
 </div> 
  </form>
</div> 



<input type="button"  name="printbutton" value="Print ID" onclick="return print1('print2')"/>
</body></center>
</html>
<!-- The PNG image will be added here -->
<div style="background:gray ;">
  <img id="textScreenshot" src="">
</div>
 
<!-- Include the HTMl2Canvas library -->
<script src="//cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script>
 
<script>
  html2canvas(document.getElementById("talltweets"), {
    onrendered: function(canvas) {
      var screenshot = canvas.toDataURL("image/png");
      document.getElementById("textScreenshot").setAttribute("src", screenshot);
    }
  });
</script>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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