Skip to content

Instantly share code, notes, and snippets.

View j1g54w1337's full-sized avatar
🎲
Playing a game...

John Kramer j1g54w1337

🎲
Playing a game...
View GitHub Profile
@j1g54w1337
j1g54w1337 / tmux.md
Last active February 6, 2022 17:15
tmux tips and trick

tmux tips and tricks

Shortlist

Key Description
CTRL A Prefix
M Edit .tmux.conf
r Reload .tmux.conf
v Edit .vimrc.local
h Edit .zshrc
u Reload .zshrc
@j1g54w1337
j1g54w1337 / java.md
Last active February 4, 2022 07:13
java tips and trick

Java tips and tricks

Verify .jar checksum

jarsigner -verify -verbose -certs <jarfile>

Unsigning .jar file

zip -d <jarfile> 'META-INF/*.SF' 'META-INF/*.RSA'

Create .jar file

jar cmvf META-INF/MANIFEST.MF <jarfile> .

@j1g54w1337
j1g54w1337 / keystore.md
Created February 1, 2022 16:19
keystore tips and trick

Keystore tips and tricks

Read content of P12 keystore

openssl pkcs12 -info -nodes -n <.p12 file>

@j1g54w1337
j1g54w1337 / vim.md
Last active February 6, 2022 17:20
vim tips and trick

Vim tips and tricks

Delete word

dw

Delete from cursor position to end of line

d$ or D

Delete all lines from current cursor position to below

:+,$d

@j1g54w1337
j1g54w1337 / plesk.md
Last active February 2, 2022 09:35
plesk tips and tricks
@j1g54w1337
j1g54w1337 / dotfiles.md
Last active February 2, 2022 10:27
setting up a dotfiles repo

Setting up a dotfiles repo

Initial setup

git init --bare $HOME/.myconfigs
echo 'alias config="/usr/bin/git --git-dir=$HOME/.myconfigs/ --work-tree=$HOME"' >> $HOME/.zshrc
source ~/.zshrc
config config --local status.showUntrackedFiles no

Adding first file to the repo

@j1g54w1337
j1g54w1337 / pass-multi-line-to-file.md
Created February 10, 2022 08:48
Pass multi line to file in shell
cat <<EOF > print.sh
#!/bin/bash
echo \$PWD
echo $PWD
EOF
@j1g54w1337
j1g54w1337 / cheat-sheet-basic-linux-privilege-escalation.md
Created February 10, 2022 08:49
Cheat sheet basic Linux Privilege escalation

Cheat sheet basic Linux Privilege Escalation

Cheat sheet - Basic Linux Privilege Escalation

Enumeration is the key. (Linux) privilege escalation is all about:

Collect - Enumeration, more enumeration and some more enumeration.
@j1g54w1337
j1g54w1337 / handy-pentest-links.md
Created February 10, 2022 08:52
Handy Pentest Links
@j1g54w1337
j1g54w1337 / use-multiple-github-gitlab-accounts.md
Last active November 11, 2022 10:19
Use multiple SSH keys for multiple Github Accounts

Multiple SSH Keys settings for different github account

Create different public keys for each Github/Gitlab account

for example, 2 keys created at:

~/.ssh/id_rsa-j1g54w
~/.ssh/id_rsa-itmagix