Skip to content

Instantly share code, notes, and snippets.

adi leveled

Block or report user

Report or block leveled

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@leveled
leveled / docker_install_ubuntu.sh
Last active Nov 26, 2019
Install Docker on ubuntu
View docker_install_ubuntu.sh
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
@leveled
leveled / gdbserver_with_ld_preload
Created Nov 20, 2019
gdbserver with LD_PRELOAD
View gdbserver_with_ld_preload
gdbserver --wrapper env 'LD_PRELOAD=./libefence.so' -- :1234 ./test-program
@leveled
leveled / pwntools_docker_setup
Created Nov 19, 2019
Pwntools docker setup
View pwntools_docker_setup
docker run -d --rm --name pwntools-dev -v "/home/adi/github/pwntools:/pwntools" --security-opt seccomp=unconfined --security-opt apparmor=unconfined --cap-add=SYS_PTRACE -it --entrypoint /bin/bash ubuntu
@leveled
leveled / gdbscript_preload_library
Created Nov 19, 2019
gdbscript to preload a library and set appropriate breakpoints
View gdbscript_preload_library
source /pwntainer/how2heap/challs/babyheapgdb.py
set startup-with-shell off
set env LD_PRELOAD /pwntainer/how2heap/glibc_versions/libc-2.26-no-tcache.so
#set env LD_DEBUG all
set stop-on-solib-events 1
r /pwntainer/how2heap/challs/0ctfbabyheap
c
c
find_entrypoint
break_on_offset a40
@leveled
leveled / curl_to_sed.sh
Created Oct 21, 2019
Replace contents of curl in-line using sed
View curl_to_sed.sh
curl -s 'https://raw.githubusercontent.com/prompt-toolkit/ptpython/master/examples/ptpython_config/config.py' 2>&1 | sed --expression='s/repl.vi_mode = False/repl.vi_mode = True/g' | less
@leveled
leveled / start_and_execute_docker.sh
Created Oct 20, 2019
Start a docker image and execute a command
View start_and_execute_docker.sh
docker run -t -i kalilinux/kali cat /etc/debian_version
@leveled
leveled / add_user_docker_groups.sh
Created Oct 20, 2019
add user to docker group and refresh groups
View add_user_docker_groups.sh
sudo usermod -aG docker $USER
su - $USER
@leveled
leveled / nvidia_settings_external_monitors_instructions
Created Oct 20, 2019
setting nvidia settings to prevent screen tearing on external monitors
View nvidia_settings_external_monitors_instructions
#Open NVIDIA X Server Settings
#Open X Server Display Configuration
#Advanced -> Check Force Composition Pipeline, Force Full Composition Pipeline
@leveled
leveled / set_editing_mode_to_vi.sh
Created Oct 20, 2019
Set editing mode to vi for the command line
View set_editing_mode_to_vi.sh
#!~/.inputrc
#use bind -f ~/.inputrc afterwards to source
set editing-mode vi
You can’t perform that action at this time.