Skip to content

Instantly share code, notes, and snippets.

@jocopa3
jocopa3 / client-only.json
Created March 6, 2017 00:05
Command files from MCPE/Win10 1.0.3
{
"closewebsocket": {
"versions": [
{
"description": "commands.closewebsocket.description",
"permission": "any",
"is_hidden": true,
"overloads": {
"default": {
@jocopa3
jocopa3 / client-only-test.json
Last active December 10, 2019 23:09
Debug command files from 0.15.90.0
{
"aigoals": {
"versions": [
{
"description": "Enables | Disables Drawing AI Goals",
"permission": "any",
"overloads": {
"default": {
"input": {
/*
This exports vtable entry symbols to a file.
Run this in the IDA Script Command window (File->Script Command...)
Each vtable segment in the output file is separated by an empty line.
*/
#include <idc.idc>
static getPointerAddress(loc)
@jocopa3
jocopa3 / PaletteArray.java
Last active March 17, 2017 00:14
Compresses arrays of a few repeating random values using a variation on Palette Mapping.
/*
* I release this code into the public domain.
*/
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
@jocopa3
jocopa3 / JScriptAnalyzer.html
Last active March 2, 2017 01:00
Rudimentary webpage which can help deobfuscate malicious JScript files. It reports the URLS accessed, Files accessed, and ActiveX API calls made.
<html><head>
<script type="text/javascript">
var URLSRequested = [];
var FilesAccessed = [];
var APICalls = [];
// If true, the analyzer displays an alert box whenever the script calls WScript.echo
// If false, the analyzer prints the echo message to console
var AlertEchos = false;
@jocopa3
jocopa3 / ChatListener.java
Created February 20, 2017 01:04
Example of a global chat room listener for Minecraft using the PEWS API
/*
* This is a basic example of a global chatroom for Minecraft PE/Win10 made
* using the Pocket Edition WebSocket API.
*/
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.Collection;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array/>
<key>name</key>
<string>Data Values List</string>
<key>patterns</key>
<array>
@jocopa3
jocopa3 / BiomesList.txt
Last active December 12, 2016 01:01
All biomes and some additional biome data as found in the 0.17.0.1 binary
============ Biomes ============
List of all biomes, biome Id's, and biome colors.
Id Name Technical Name Color Unknown Data
0 Ocean ocean 0x000070
1 Plains plains 0x8DB360
2 Desert desert 0xFA9418
3 Extreme Hills extremeHills 0x606060
@jocopa3
jocopa3 / components.txt
Created October 24, 2016 02:21
Components from 0.16.0 B4
Behaviors:
minecraft:behavior.avoid_mob_type
minecraft:behavior.beg
minecraft:behavior.break_door
minecraft:behavior.breed
minecraft:behavior.controlled_by_player
minecraft:behavior.defend_village_target
minecraft:behavior.door_interact
minecraft:behavior.eat_block
minecraft:behavior.enderman_leave_block
@jocopa3
jocopa3 / MinecraftOptions.cpp
Last active October 13, 2016 16:48
Options Class for MCW10 as of 0.15.10.
class String
{
public:
union {
char charBuffer[16];
char* charPtr;
};
size_t Length;
size_t MaxCapacity;