class Annotator(object):
def __init__(self, nlp, **kwargs):
# `nlp` is a spaCy Language object
self.nlp = nlp
def annotate(self, agr, rules):
""" `agr` (short for Agreement) is a tree-like data structure.
A node of the tree (class `Element`) has a `tag` (e.g. PREAMBLE, SECTION) and may have
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.shiftleft.codepropertygraph.Cpg | |
import io.shiftleft.semanticcpg.language._ | |
import scala.io.Source | |
// joern --script hardcoded_creds.sc --params binaryIn=/home/claudiu/src/joern/artifacts/mtfwu | |
@main def exec(binaryIn: String) = { | |
importCode.ghidra(binaryIn) | |
val decompiledBinary = cpg.method.dumpRaw.mkString("\n") | |
val entry = Source.fromFile("entry.c").getLines.mkString | |
importCode.c.fromString(decompiledBinary + "\n\n" + entry) |
I hereby claim:
- I am ursachec on github.
- I am ursachec (https://keybase.io/ursachec) on keybase.
- I have a public key whose fingerprint is A7FF BC47 0060 AC4A 619B 852F 37B9 05E7 113D B932
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/urandom bs=1 count=2 2>/dev/null | hexdump -v -e '1/1 "%u"'; echo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __mrt_timer_h__ | |
#define __mrt_timer_h__ | |
#include <sys/time.h> | |
#define mrt_timer_setup() \ | |
struct timeval mrt_te; \ | |
time_t mrt_start = 0, mrt_end = 0; | |
#define mrt_timer_start() \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
# Setup architectures, library name and other vars + cleanup from previous runs | |
ARCHS=("armv7" "armv7s" "i386") | |
SDKS=("iphoneos" "iphoneos" "macosx") | |
LIB_NAME="libevent-2.0.21-stable" | |
TEMP_DIR="$(pwd)/tmp" | |
TEMP_LIB_PATH="$(pwd)/tmp/${LIB_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make a directory in which to run the build | |
mkdir ~/openssl-ios | |
cd ~/openssl-ios | |
# Download the openssl source (verify the file before using it in production!) | |
curl -O http://www.openssl.org/source/openssl-1.0.1e.tar.gz | |
# Download the openssl iOS build script | |
curl -O https://raw.github.com/Raphaelios/raphaelios-scripts/master/openssl/build-openssl.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
# Setup architectures, library name and other vars + cleanup from previous runs | |
ARCHS=("armv7s" "armv7" "i386") | |
SDKS=("iphoneos" "iphoneos" "macosx") | |
LIB_NAME="openssl-1.0.1e" | |
TEMP_LIB_PATH="/tmp/${LIB_NAME}" | |
LIB_DEST_DIR="lib" | |
HEADER_DEST_DIR="include" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NON-repeating event: r ] | |
{0 : 31178732, 1 : 33620352, 2 : 10, 3 : 0, 4 : 0, 5 : 0, 6 : 0, 7 : 0, 8 : 0, 9 : -2028929489, 10 : 59081, 11 : 0, 12 : 0, 13 : 9936, 14 : 162, 15 : 7471125, 16 : 16580722, 17 : 7471105, } | |
[repeating event: r ] | |
{0 : 31178732, 1 : 33620352, 2 : 10, 3 : 0, 4 : 0, 5 : 0, 6 : 0, 7 : 0, 8 : 0, 9 : -1528719789, 10 : 59081, 11 : 0, 12 : 0, 13 : 9936, 14 : 162, 15 : 7471125, 16 : 16580722, 17 : 7471105, } | |
[repeating event: r ] | |
{0 : 31178732, 1 : 33620352, 2 : 10, 3 : 0, 4 : 0, 5 : 0, 6 : 0, 7 : 0, 8 : 0, 9 : -1445174829, 10 : 59081, 11 : 0, 12 : 0, 13 : 9936, 14 : 162, 15 : 7471125, 16 : 16580722, 17 : 7471105, } | |
[repeating event: r ] |
NewerOlder