-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcatfile.php
executable file
·34 lines (32 loc) · 1.04 KB
/
catfile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<?
//header('P3P: CP="CAO PSA OUR"');
session_start();
?>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?
include('html_include/styles.php');
include('globals.php');
?>
</head>
<body>
<div class="navbar navbar-fixed-top navbar-inverse" style="position: absolute;">
<div class="navbar-inner">
<div class="container" style="width: auto; padding: 0 20px;">
<a class="brand" href="#"><? echo $_GET['file2cat']; ?></a>
<ul class="nav pull-right">
<li><a href="download.php?file=<? echo $_GET['file2cat']; ?>">Download</a></li>
<li><a href="javascript:window.close()"><div class="badge badge-important"
style="position:relative; top:-1px;">Close</div></a></li>
</ul>
</div>
</div>
</div>
<div class="well" style="padding: 50px;">
<?
$text = ssh2_exec2($_SESSION['username'],$_SESSION['password'],'cat '.$_GET['file2cat']);
echo '<pre class="prettyprint linenums"><code>' . $text . '</code></pre>';
?>
</div>
</body>