Skip to content

Instantly share code, notes, and snippets.

View cyanboy's full-sized avatar

Mathias Rørvik cyanboy

View GitHub Profile
@cyanboy
cyanboy / .emacs
Last active August 29, 2015 14:02
cyanboy/.emacs
(require 'package)
(prefer-coding-system 'utf-8)
;;Mirross
(setq package-archives '(("gnu" . "http://elpa.gnu.org/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
;;Disable splash screen
@cyanboy
cyanboy / addAll.js
Created June 17, 2014 14:40
All all friends on search page BuckysRooom
//Run this code in the developer console of your browser
var links = document.getElementsByTagName('a'); //Get array of all links
for (var i = 0; i < links.length; i++) { //Loop through all links
if (links[i].innerHTML == "Send Friend Request") {
links[i].click()
}
}
@cyanboy
cyanboy / gist:9a8a6dcad048acacba44
Created August 18, 2014 20:09
Linked list implementation example
#include <iostream>
#include <string>
#include <memory>
struct Node {
std::shared_ptr<Node> next = nullptr;
std::string data;
Node(std::string s) {
data = s;

Keybase proof

I hereby claim:

  • I am cyanboy on github.
  • I am cyanboy (https://keybase.io/cyanboy) on keybase.
  • I have a public key whose fingerprint is 4946 3E4D 4502 1639 DAFE 6D3A 2F88 23EF 93BA DE6B

To claim this, I am signing this object:

@cyanboy
cyanboy / docker-compose.yml
Created October 15, 2018 09:27
Simple Wordpress
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
@cyanboy
cyanboy / ctfoct24_writeup.md
Last active October 24, 2018 18:29
Writeup of CTF tasks for web hacking workshop 24. Oct 2018
@cyanboy
cyanboy / ctf_web_oct31.md
Last active November 2, 2018 15:24
Writeup Bottle, #Hash, Military Encryption Revenge, Secure Document Storage

These four challenges were heavily inspired by the Login Sec (100) and Canadian FOI (50) task from P.W.N. CTF

Bottle

from flask import Flask, request

app = Flask(__name__)

passwd = open("passwd.txt").read()
@cyanboy
cyanboy / Dockerfile
Created July 7, 2020 08:25
Dockerfile for Pwn
FROM kalilinux/kali-rolling
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get upgrade -y && apt-get install -y python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential gdb vim curl wget cmake
RUN wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | sh
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install capstone unicorn keystone-engine ropper pwntools
@cyanboy
cyanboy / tools.md
Created June 27, 2022 08:31
Norwegian Security Champions: Tools of The Trade