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 java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.objectweb.asm.ClassVisitor; | |
import org.objectweb.asm.ClassWriter; | |
import org.objectweb.asm.commons.ClassRemapper; |
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 argparse | |
from construct import Int16ul, Int64ul | |
def main(args): | |
with open(args.kernel, 'rb') as f: | |
data = f.read() | |
sym_addrs = data.find(Int64ul.build(0xffffff8008080000) * 2) | |
for offset in range(0, len(data), 0x100): |
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
diff -Naur a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c | |
--- a/llvm_mode/afl-clang-fast.c 2017-01-25 03:51:26.000000000 +0100 | |
+++ b/llvm_mode/afl-clang-fast.c 2017-06-21 16:35:01.203146919 +0200 | |
@@ -120,7 +120,28 @@ | |
http://clang.llvm.org/docs/SanitizerCoverage.html#tracing-pcs-with-guards */ | |
#ifdef USE_TRACE_PC | |
- cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard"; | |
+ u8 *trace_ind = ""; | |
+ #ifdef USE_TRACE_IND |
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
97 Pearson | |
76 Codility | |
52 Stereoarts | |
43 Webkul | |
43 FHAdmin | |
41 Attributor | |
37 OffensiveSecurity | |
35 Odoo | |
35 Jetbrains | |
29 Mobiscroll |
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
package fr.neatmonster.lasergun; | |
import java.lang.reflect.InvocationTargetException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; |
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
diff -Naur a/llvm_mode/afl-llvm-rt.o.c b/llvm_mode/afl-llvm-rt.o.c | |
--- a/llvm_mode/afl-llvm-rt.o.c 2017-02-01 02:59:41.000000000 +0100 | |
+++ b/llvm_mode/afl-llvm-rt.o.c 2017-06-29 15:55:53.052681442 +0200 | |
@@ -304,3 +304,205 @@ | |
} | |
} | |
+ | |
+/* This function is called on every indirect call, but only if the binary has | |
+ been compiled with -fsanitize-coverage=trace-pc,indirect-calls. */ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <unistd.h> | |
typedef void (*F)(); | |
static F t[256]; |
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
package fr.alaric1001.checkpoint; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Location; | |
import org.bukkit.block.Sign; | |
import org.bukkit.command.Command; |
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
public static class Save { | |
private final Block block; | |
private final byte data; | |
private final Material type; | |
@SuppressWarnings("deprecation") | |
public Save(final Block block) { | |
this.block = block; | |
type = block.getType(); | |
data = block.getData(); |
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
package fr.neatmonster.emerauldbank; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Material; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.entity.Villager; | |
import org.bukkit.event.EventHandler; |