- REST calls follow standard convention.
REQUEST TYPE ACTION
| 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |
| ===================================================== | |
| 000 | 4C 00 00 00 01 14 02 00 00 00 00 00 C0 00 00 00 | |
| 010 | 00 00 00 46 81 00 00 00 00 00 00 00 00 00 00 00 | |
| 020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
| 030 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
| 040 | 00 00 00 00 00 00 00 00 00 00 00 00 80 00 14 00 | |
| 050 | 1F 00 E0 4F D0 20 EA 3A 69 10 A2 D8 08 00 2B 30 | |
| 060 | 30 9D 14 00 2E 1E 20 20 EC 21 EA 3A 69 10 A2 DD | |
| 070 | 08 00 2B 30 30 9D 56 00 00 00 00 00 00 00 00 00 |
| 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 |
| package main | |
| import ( | |
| "net" | |
| "fmt" | |
| "math/rand" | |
| "flag" | |
| "bufio" | |
| "os" | |
| "strconv" |
| ## 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 |
| 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 |
| 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. |
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "strings" | |
| ) | |
| // Map to hold a list of "currently running" processes. |