Skip to content

Instantly share code, notes, and snippets.

@ph4ge
ph4ge / tar_pixz
Created May 27, 2024 14:01
Parallelized XZ compression - debs
# Parallelized XZ compressor
## Install requirement
sudo apt install pixz -y
## Create XZed archive
tar -Ipixz -cvf myArchive.tpxz archive/
@ph4ge
ph4ge / etc_network_interfaces - debian12
Last active May 27, 2024 11:45
Debian 12 - interface configuration for virtualbox
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto enp0s8
@ph4ge
ph4ge / openssl 1.1.1 - debian12.txt
Last active June 20, 2024 21:16
Debian 12/bookwork - install openssl 1.1.1 from source
Openssl 1.1.x on GNU/Debian 12
==============================
The following shows how to install openssl branch 1.1.x alongside debian default libssl3.
Some applications require to have:
- libssl.so.1.1
- libcrypto.so.1.1
Using the following allows one to not tamper with the system's default/setup,
@ph4ge
ph4ge / python3.10-compile-commands.txt
Last active April 23, 2024 06:26
Download and compile Python3.10 version
Target system: Debian 12
========================
main ref: https://www.build-python-from-source.com
# install system dependencies
sudo apt update && sudo apt upgrade -y && sudo apt install git make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl xz-utils liblzma-dev wget
@ph4ge
ph4ge / sources.list
Last active May 6, 2024 15:37
Ubuntu 21.10 Impish Indri - apt sources.list
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted
### python2
mkdir -p venv/py2-00/
sudo apt-get install virtualenv -y
virtualenv -p python2 venv/py2-00/
### python3
@ph4ge
ph4ge / getpeda.sh
Created September 18, 2021 07:39
get peda from github
#!/bin/bash
echo :::::::::::::
echo Getting PEDA
echo :::::::::::::
sudo apt-get update && sudo apt-get install git gdb build-essential gcc-multilib vim -y
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
@ph4ge
ph4ge / uroboros-debian10.7-install.txt
Last active December 14, 2020 20:20
UROBOROS install notes debian 10.7.0
# installation notes of UROBOROS poc on a debian-10.7.0-amd64
# ref.:
https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-wang-shuai.pdf
https://ieeexplore.ieee.org/document/7476646
sha256:
b317d87b0a3d5b568f48a92dcabfc4bc51fe58d9f67ca13b013f1b8329d1306d debian-10.7.0-amd64-netinst.iso
# proceed installation with only the standard utilies and ssh server
@ph4ge
ph4ge / tmux_shortcuts
Created December 6, 2020 22:51
A few tmux shortcuts
# create new session
$ tmux new -s session1
# detach a session
$ Prefix d
# attach to session
$ tmux attach
$ tmux attach -t a_session