Skip to content

Instantly share code, notes, and snippets.

View Jasemalsadi's full-sized avatar

Jasem Al-Sadi Jasemalsadi

  • Qatar-Doha
View GitHub Profile
@Jasemalsadi
Jasemalsadi / remote_debugging_phpstrom.md
Last active April 21, 2023 03:33
PHPSTORM remote debugging with pivoting for OSWE Web Apps

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 :

@Jasemalsadi
Jasemalsadi / shellcodeExec.asm
Last active March 25, 2025 21:59
MASM code to execute shellcode from a file
.386
.model flat, stdcall
OPTION CaseMap:None
.stack 6096
ExitProcess PROTO, dwExitCode: DWORD
include \masm32\include\windows.inc
@Jasemalsadi
Jasemalsadi / priv_basic.sh
Last active December 30, 2019 06:41
Bash Script to automate Basic Linux Privilege Escalation information collection
#!/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:
@Jasemalsadi
Jasemalsadi / tmux.conf
Last active November 5, 2019 19:41
My tmux config for the kali 2018
# 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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: