Setup Port forwarding on the debugged machine:
ssh student@atutor
echo -e "\nGatewayPorts yes \n" | sudo tee -a /etc/ssh/sshd_config && sudo service sshd restart
Set up proxy Server on the Kali VM/VPN machine :
Setup Port forwarding on the debugged machine:
ssh student@atutor
echo -e "\nGatewayPorts yes \n" | sudo tee -a /etc/ssh/sshd_config && sudo service sshd restart
Set up proxy Server on the Kali VM/VPN machine :
.386 | |
.model flat, stdcall | |
OPTION CaseMap:None | |
.stack 6096 | |
ExitProcess PROTO, dwExitCode: DWORD | |
include \masm32\include\windows.inc |
#!/bin/bash | |
# how to run it to output everything to file : | |
# chmod +x priv_basic.sh | |
# ./priv_basic.sh > file_name.rc 2>&1 | |
# Notes: | |
# 1) It takes around 1 min. | |
# Commands mostly gathered from g0tmi1k priv escalation post (https://blog.g0tmi1k.com/2011/08/basic-linux-privilege-escalation/) | |
global_seprator=$"\n------------------------------------------------------------------------------------------------------------------------------\n" ; | |
# Setting commands to be printed before execution: |
# tmux 2.4+ | |
set -g default-terminal "screen-256color" | |
# Change prefix key | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-a | |
set -g history-limit 10000 | |
set -g allow-rename off |
As configured in my dotfiles.
start new:
tmux
start new with session name: