Skip to content

Instantly share code, notes, and snippets.

View tehmasta's full-sized avatar
💣
no talent, just dreams

Robert tehmasta

💣
no talent, just dreams
View GitHub Profile
@Gram21
Gram21 / keybase.md
Last active February 19, 2023 07:36

Keybase proof

I hereby claim:

  • I am gram21 on github.
  • I am gramarye (https://keybase.io/gramarye) on keybase.
  • I have a public key ASDy0MWdIt7cGUouUXFMjpTXHbADgYf8F8snBTUdS13VZAo

To claim this, I am signing this object:

@inhji
inhji / aliases.zsh
Created August 26, 2015 17:56
zsh aliases
# util
alias c='clear'
alias r='source ~/.bashrc'
# ls aliases
alias l='ls'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
@Gram21
Gram21 / .zshrc
Last active November 6, 2023 17:00
Standard .zshrc files
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gnzh"
# Texteditor and zshconfig aliases
@Gram21
Gram21 / gist:5f8dcddd38800c974299
Created November 15, 2015 19:11
GDB Debug w/ open connection for remote
Socat-Version:
gdb socat -exec="set follow-fork-mode child"
r tcp-listen:4444,reuseaddr exec:./binary,PTY,raw,echo=0
Ncat-Version
gdb ncat -exec="set follow-fork-mode child"
r -l 0.0.0.0 1234 -e ./binary
r2repo="~/rand/radare2"
echo "Start updating and upgrading. This may take a while"
echo "****************************************************************"
echo "brew..."
brew update --verbose && brew upgrade && brew cleanup
echo "****************************************************************"
echo "pip..."
pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 pip install -U
pip list --format=legacy --outdated | cut -d ' ' -f1 | xargs -n1 sudo -H pip install -U
echo "****************************************************************"
@JohnHammond
JohnHammond / source.py
Created September 2, 2018 01:06
Codefest CTF 2018 "Access Denied?" Challenge Source
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import user_functions
user = raw_input("Enter your name: ")
if not user_functions.exists(user):
# generate a code
@JohnHammond
JohnHammond / get_flag.py
Created September 2, 2018 01:14
Codefest CTF 2018 "Access Denied?" get_flag Script
#!/usr/bin/env python
import random
from pwn import *
context.log_level = 'critical'
# nc 34.216.132.109 9094
host = '34.216.132.109'
@JohnHammond
JohnHammond / source.py
Created September 2, 2018 01:18
Codefest CTF 2018 "Ghost Protocol" Source Code
##########################################################
##########################################################
####### ###### # #####
# # # # #
# ### # #####
# # # # #
##### # # #####
##########################################################
##########################################################
@JohnHammond
JohnHammond / get_flag.py
Created September 2, 2018 02:04
Codefest CTF 2018 "Polyglot" get_flag Script
#!/usr/bin/env python
import re
h = open('secret.c')
lines = [ x[:-1] for x in h.readlines() ] # remove newline char
h.close()
flag = []
for line in lines:
num =''.join(re.findall(r'\s+', line)).replace('\t','1').replace(' ','0')
@JohnHammond
JohnHammond / attack.py
Created September 13, 2018 13:26
IceCTF "History of Computing" XSS Generator
#!/usr/bin/env python
first_piece = '{ "typ": "JWT", "alg": "none" }'
our_xss = '<script>alert("xss")</script>'
second_piece = '''
{ "username": "%s",
"flag": "IceCTF{hope you don\'t think this is a real flag}"}''' \
% our_xss.replace('"','\\"')