Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 6e552aa

Browse files
author
nerdofcode
committed
Added auto-select feature for each page
1 parent 7c7b2e4 commit 6e552aa

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
$('#passwd').fadeOut(500);
2929
})
3030
});
31+
32+
var input = document.getElementById('UID');
33+
input.focus();
34+
input.select();
35+
3136
</script>
3237
<p class="footer">By: <a href="https://github.com/NerdOfCode" target="_blank"><b>NerdOf</b>Code</a>, <a href="https://github.com/NerdOfLinux" target="_blank"><b>NerdOf</b>Linux</a> | <a href="https://github.com/NerdOfCode/admin-panel/blob/master/LICENSE">License</a></p>
3338
</body>

mysql_exec.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
<button type="Submit" value="Submit">Submit</button>
3131

3232
</form>
33-
33+
<script>
34+
var input = document.getElementById('mysql_get');
35+
input.focus();
36+
input.select();
37+
</script>
3438
</body>
3539

3640
<?php

php_exec.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
}else{
3232
echo "<b>Nothing has been run yet.</b>";
3333
}
34-
?>
34+
?>
35+
<script>
36+
var input = document.getElementById('query_box');
37+
input.focus();
38+
input.select();
39+
</script>
3540
</body>
3641
</html>

shell.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
SHELL: &nbsp;&nbsp;&ensp;&nbsp;&nbsp;<input type="text" id="query_box" name="query_box" placeholder="Ex: whoami"></input><br><br>
2020
<button type="Submit" value="Submit">Submit</button>
2121
</form>
22+
<script>
23+
var input = document.getElementById('query_box');
24+
input.focus();
25+
input.select();
26+
</script>
27+
28+
2229
<?php
2330
$cwd=getcwd();
2431
echo "<br>Current directory: $cwd<br>";

0 commit comments

Comments
 (0)