1.2.0-rolling+201904260337
ではgcc
などが依存関係によりインストールできないので他のマシンでビルドを行う
Linux router 4.19.36-amd64-vyos #1 SMP Sun Apr 21 10:39:20 CEST 2019 x86_64 GNU/Linux
kernel
バージョンは4.19.36
のようなので、ubuntu18.10
のkernel
バージョンを4.19.36
にあげてビルドを行う
#!/bin/bash | |
# Advance preparation | |
echo "source $HOME/.ctf_tool" >> $HOME/.zshrc | |
# Support 32-bit elf. | |
sudo apt install -y lib32z1 | |
# Install other tools. | |
sudo apt install -y gdb binutils build-essential strace ltrace\ |
#!/bin/bash | |
# | |
# JetBrains ToolBox | |
# | |
# Download program. | |
wget https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.11.4269.tar.gz -P /tmp | |
# Expand archives. |
#!/usr/bin/env python3 | |
import sys | |
pattern = '<img src="https://latex.codecogs.com/png.latex?{}" />' | |
with open(sys.argv[1] ,"r") as f: | |
new_lines = "" | |
while True: | |
new_line = "" | |
line = f.readline() |
#!/usr/bin/env python3 | |
# | |
# Common Modulus Attack | |
# | |
import gmpy2,binascii | |
n = int(input('n:')) | |
e1 = int(input('e1:')) |
#!/usr/bin/env python3 | |
# | |
# Compute the RSA cipher | |
# | |
import gmpy2,binascii | |
n = int(input('n:')) | |
e = int(input('e:')) |
#!/usr/bin/env python3 | |
# | |
# Low Public-Exponent Attack | |
# | |
import gmpy2 | |
n = int(input('n:')) | |
e = int(input('e:')) |
{ | |
"title": "caps_lock", | |
"rules": [ | |
{ | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", |
vyos1.2
ではDDNSとしてddclient
をサポートしているので以下のように設定できる
$ config
# set service dns dynamic interface eth0 service cloudflare host-name '[変更したいドメイン名]'
# set service dns dynamic interface eth0 service cloudflare login '[email]'
# set service dns dynamic interface eth0 service cloudflare password '[Global API Key]'
# set service dns dynamic interface eth0 service cloudflare protocol 'cloudflare'
import random, string, urllib.request, json, getpass, time | |
#Generate root password | |
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20)) | |
#Download ngrok | |
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
! unzip -qq -n ngrok-stable-linux-amd64.zip | |
#Setup sshd |