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
from pwn import * | |
import argparse | |
# context.log_level = 'debug' | |
context.log_level = 'error' | |
def parse_args(): | |
parser = argparse.ArgumentParser(description='Exploit for Fortress') | |
parser.add_argument('--host', type=str, default='localhost', help='Host to connect to') | |
parser.add_argument('--port', type=int, default=20001, help='Port to connect to') |
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
function FindProxyForURL(url, host) { | |
return "SOCKS localhost:10080"; | |
} |
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 struct | |
import numpy as np | |
d = open('./baby_nn', 'rb').read() | |
def inv_sigmoid(x): | |
return np.log(x / (1 - x)) | |
biases_info = [(0x0A8A0, 0x28), (0x07560, 0x28), (0x04220, 0x28), (0x00EE0, 0x28)] |
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
# -*- coding: utf-8 -*- | |
from pwn import * | |
from z3 import * | |
context(arch = 'i386', os = 'linux') | |
# context(arch = 'amd64', os = 'linux') | |
context.log_level = 'debug' | |
v1 = 1240041760064458136 | |
v2 = 2569194187569403613 |
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
cat id_rsa.pub >> ./.ssh/authorized_keys | |
hostname vu | |
echo "vu" > /etc/hostname | |
sudo dpkg --add-architecture i386 | |
sudo sed -i'~' -E "s@http://(..\.)?(archive|security)\.ubuntu\.com/ubuntu@http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu@g" /etc/apt/sources.list | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install git build-essential socat vim zsh gdb python3-dev libc6-dbg curl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-dev libncurses5-dev zlib1g-dev liblzma-dev | |
sudo apt install libc6:i386 libc6-dbg:i386 libncurses5:i386 libstdc++6:i386 gcc-multilib g++-multilib |
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
hitcon{dYauhy0urak9nbavca1m} |
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
[vagrant@vagrant-ubuntu-trusty-64]# sudo python3 creator.py [/home/vagrant/git/test-environment-manager/creator] | |
Container already exists: env_base | |
lxc_container: bdev.c: aufs_mount: 2613 No such device - aufs: error mounting /var/lib/lxc/env_base/rootfs onto /usr/lib/x86_64-linux-gnu/lxc options br=/var/lib/lxc/env_zabbix_server22/delta0=rw:/var/lib/lxc/env_base/rootfs=ro,xino=/run/lxc/aufs.xino | |
Create Container: env_zabbix_server22 | |
Traceback (most recent call last): | |
File "creator.py", line 335, in <module> | |
create_containers() | |
File "creator.py", line 329, in create_containers | |
create_container_if_needed(container_name, get_commands_function_name) | |
File "creator.py", line 295, in create_container_if_needed |
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 socket | |
import datetime | |
import random | |
basedeck = [ | |
"Birds of Paradise1", | |
"Birds of Paradise2", | |
"Birds of Paradise3", | |
"Birds of Paradise4", | |
"Eternal Witness1", |