{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Analyzing Windows RPC Methods & Other Functions Via GraphFrames" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* **Author:** Roberto Rodriguez (@Cyb3rWard0g)\n", "* **Project:** Infosec Jupyter Book\n", "* **Public Organization:** Open Threat Research\n", "* **License:** Creative Commons Attribution-ShareAlike 4.0 International\n", "* **Reference:**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Import Libraries" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from pyspark.sql import SparkSession\n", "from pyspark.sql.functions import *\n", "from graphframes import *" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Initialize Spark Session" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "spark = SparkSession \\\n", " .builder \\\n", " .appName(\"WinRPC\") \\\n", " .config(\"spark.sql.caseSensitive\",\"True\") \\\n", " .config(\"spark.driver.memory\", \"4g\") \\\n", " .getOrCreate()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
SparkSession - in-memory
\n", " \n", "SparkContext
\n", "\n", " \n", "\n", "v3.0.0
local[*]
WinRPC