Skip to content

Instantly share code, notes, and snippets.

View r3k2's full-sized avatar
🏠
on SourceHut sr.ht I do not push to github

CF_ReK2 r3k2

🏠
on SourceHut sr.ht I do not push to github
  • CyberSecurity, Hacker, Pentester, DevSecOps
  • Barcelona, Madrid , San Francisco, Boston CyberSpace
View GitHub Profile
@r3k2
r3k2 / LinuxPrivEsc.sh
Created August 24, 2017 21:31 — forked from 1N3/LinuxPrivEsc.sh
Linux Privilege Escalation Script by 1N3 @CrowdShield - https://crowdshield.com
#!/bin/sh
#
# `7MN. `7MF'
# __, MMN. M
#`7MM M YMb M pd""b.
# MM M `MN. M (O) `8b
# MM M `MM.M ,89
# MM M YMM ""Yb.
#.JMML..JML. YM 88
# (O) .M'
@r3k2
r3k2 / Efficient Encrypted UEFI-Booting Arch Installation
Created February 10, 2017 09:11 — forked from HardenedArray/Efficient Encrypted UEFI-Booting Arch Installation
An effcient method to install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Multi-OS UEFI-booting is also supported.
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI.
# Note: This method supports both dedicated Arch installs and those who wish to install Arch on a multi-OS-UEFI booting system.
# The official Arch installation guide contains details that you should refer to during this installation process.
# That guide resides at: https://wiki.archlinux.org/index.php/Installation_Guide
# Download the archlinux-*.iso image from https://www.archlinux.org/download/ and its GnuPG signature.
# Use gpg --verify to ensure your archlinux-*.iso is exactly what the Arch developers intended. For example:
@r3k2
r3k2 / Install vim-go
Last active January 13, 2017 00:59
Steps I keep forgetting to install vim-go
git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go
make sure you have your $GOPATH setup in your ~/.bashrc
open vim and type :GoInstallBinaries
use :GoUpdateBinaries to update the installed binaries
For autocompletion:
https://github.com/roxma/SimpleAutoComplPop
git clone https://github.com/roxma/SimpleAutoComplPop.git ~/.vim/pack/plugins/start/SimpleAutoComplPop
@r3k2
r3k2 / turn_monitor-mode.rb
Last active October 19, 2015 22:08
get list of all interfaces and prompt for selection of interface that we want to put in monitor mode
#!/usr/bin/env ruby
# Christian Fernandez
# rek2wilds bbk
# cfernandez hispagatos binaryfreedom
require 'open3'
require 'socket'
def monitor(int_name)
@r3k2
r3k2 / FakeSudo2Password
Last active August 29, 2015 14:08
fake sudo to grab local user passwords when you already have access at user level.
#!/usr/bin/env ruby
# HISPAGATOS.org
# probe of comcept to capture user password.
# when attacker compromise a regular use shell account, he can
# jump into root or steal user password by adding into the user enviroment
# the path where this sudo script sits example PATH=/theplace:$PATH etc notice that is BEFORE
# the rest of the path entries so any program in this path will run BEFORE the real program.
# cfernandez@hispagatos.org http://hispagatos.org

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Installing Arch:
sudo vim /etc/pacman.conf
Update packages list: sudo pacman -Syy
run sudo pacman -Syu before installing any software (to update the repositories first)
* Timing issue:
- Change hardware clock to use UTC time:
sudo timedatectl set-local-rtc 0
Installing Arch:
sudo vim /etc/pacman.conf
Update packages list: sudo pacman -Syy
run sudo pacman -Syu before installing any software (to update the repositories first)
* Timing issue:
- Change hardware clock to use UTC time:
sudo timedatectl set-local-rtc 0