Skip to content

Instantly share code, notes, and snippets.

View N4NU's full-sized avatar

N4NU N4NU

  • Tokyo,Japan
View GitHub Profile
@N4NU
N4NU / solve.py
Created September 22, 2024 06:40
Fortress (rev, crypto, hard) - IERAE CTF 2024
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')
@N4NU
N4NU / proxy.pac
Created December 8, 2019 10:37
proxy.pac
function FindProxyForURL(url, host) {
return "SOCKS localhost:10080";
}
@N4NU
N4NU / baby_nn.py
Last active October 9, 2018 18:21
SECCON Beginners NEXT 2018 Reversing Solver
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)]
@N4NU
N4NU / BlaBlaMan.py
Created October 10, 2017 17:22
Kaspersky Industrial CTF Quals 2017 - RE700 BlaBlaMan
# -*- 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
@N4NU
N4NU / linux_init.sh
Last active July 7, 2023 18:22
linux init commands
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
@N4NU
N4NU / result.txt
Last active October 19, 2015 15:01
HITCON 2015 risky
hitcon{dYauhy0urak9nbavca1m}
@N4NU
N4NU / errorlog_guest_creator.txt
Created August 25, 2015 00:50
hatohol installation error
[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
@N4NU
N4NU / mtgo_solve.py
Created January 19, 2015 07:37
Ghost in the Shellcode 2015 crypt 200 MTGO
import socket
import datetime
import random
basedeck = [
"Birds of Paradise1",
"Birds of Paradise2",
"Birds of Paradise3",
"Birds of Paradise4",
"Eternal Witness1",