vim /usr/local/etc/pkg/repos/clonos-pkg.ircdriven.net.conf
ClonOS-pkg.ircdriven.net: {
url: "https://pkg.ircdriven.net/packages/12amd64-clonos/",
mirror_type: "none",
enabled: yes
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
/** | |
* [関数名] strlrep | |
* [機能] 文字列を置換する | |
* [引数] | |
* - src 入力文字列 | |
* - target 置き換え対象となる文字列 |
import socket | |
host:str = 'tekeisan-ekusutoriim.chall.beginners.seccon.jp' | |
port:int = 8690 | |
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
client.connect((host, port)) | |
for i in range(0,101): |
#!/bin/python | |
""" | |
環境構築メモ | |
- Python 3.6.3 | |
python -m pip install pyzbar | |
python -m pip install pillow | |
python -m pip install opencv-python | |
python -m pip install scipy | |
アルゴリズムの説明 |
apt-get install firewalld
systemctl start firewalld
systemctl enable firewalld
firewall-cmd --permanent --new-zone=hostonly
firewall-cmd --permanent --add-port=0-65535/tcp --zone=hostonly
firewall-cmd --permanent --add-port=0-65535/udp --zone=hostonly
firewall-cmd --permanent --zone=hostonly --change-interface=<interface_name>
package main | |
import ( | |
"fmt" | |
"net" | |
) | |
func main() { | |
tcpAddr, _ := net.ResolveTCPAddr("tcp", ":9000") | |
listner, _ := net.ListenTCP("tcp", tcpAddr) |
#!/usr/bin/env bash | |
function fullpath (){ | |
f=$@; | |
if [ -d "$f" ];then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; | |
dir=$(dirname "$f"); | |
fi; |
#include <stdio.h> | |
#include <unistd.h> // pid_t, fork | |
#include <sys/types.h> // pid_t, fork | |
#include <sys/wait.h> // wait | |
int main(){ | |
pid_t pid; | |
int swap = 0; | |
if( (pid = fork()) == 0 ){ | |
sleep(2); |
#!/usr/bin/env node | |
'use strict'; | |
/** | |
* CVE-2017-5638のexploit code | |
* | |
* File name : CVE-2017-5638.js | |
* | |
* $ ./CVE-2017-5638.js | |
* | |
* Copyright (c) 2017, Hayato Doi |