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 sys | |
import struct | |
import codecs | |
import binascii | |
sample_string = """ | |
4C 00 00 00 01 14 02 00 00 00 00 00 C0 00 00 00 | |
00 00 00 46 81 00 00 00 00 00 00 00 00 00 00 00 | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
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 main | |
import ( | |
"net" | |
"fmt" | |
"math/rand" | |
"flag" | |
"bufio" | |
"os" | |
"strconv" |
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
## run in terminal ## | |
sudo su - | |
apt-get update | |
apt-get install python | |
git clone https://github.com/trustedsec/ptf /opt/ptf | |
cd /opt/ptf | |
./ptf | |
## run inside PTF ## | |
use modules/exploitation/install_update_all |
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 base64 | |
SEQUENCE_FILE = "blocked_commands.txt" | |
filtered_sequences = [ | |
] | |
def LoadFilteredSequences(wordlist): | |
''' | |
Loads a list of character sequences which aren't allowed in our final output |
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. |
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 main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"strings" | |
) | |
// Map to hold a list of "currently running" processes. |
NewerOlder