Skip to content

Instantly share code, notes, and snippets.

@mrtc0
mrtc0 / password-gen.py
Last active November 2, 2019 08:24
Password Generator for Python3
#!/usr/bin/python3
import random
chars = "abcdefghijklmnopqrstuvwxyziABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^?!?$%&/()=?`'+#*'~';:_,.-<>|"
password = ""
print("Use Char list = %s \n" % chars)
length = int(input("[*] Input Password Length: "))
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/apparmor.h>
#include <sched.h>
#include <sys/mount.h>
#include <fcntl.h>
@mrtc0
mrtc0 / COMP.md
Last active December 27, 2017 21:40

どれも一袋(93g)と混ぜている。

混ぜたもの ml 感想
250ml 豆乳。飲めなくはないが、好きではない。
小岩井ミルクとコーヒー 250ml 良いが若干甘すぎる気も。
グリコ マイルドカフェオーレ 400ml COMP感がほとんどなくて、飲みやすい。非常に良い。
Toropicana マンゴージュース 300~400mlぐらい? 超合う。美味い。
バナナジュース ? 学内カフェで売ってるバナナジュース。あまり溶けなかった。味は美味い。
@mrtc0
mrtc0 / json_parameter_changer.py
Created September 17, 2017 04:29
JSONのフィールドをカウントアップしていくやつ
from burp import IBurpExtender
from burp import ITab
from burp import IHttpListener
from burp import IParameter
from javax import swing
import json
value = 0
@mrtc0
mrtc0 / index.js
Created August 17, 2017 08:53
puppeteerでalertをチェックするやつ
const puppeteer = require('puppeteer');
(async() => {
const url = 'http://';
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(url, {waitUntil: 'networkidle'});
page.on('dialog', dialog => {
console.log(dialog.message());
dialog.accept();
package main
import (
"github.com/lxc/lxd/client"
"github.com/lxc/lxd/shared/api"
"os"
"syscall"
"fmt"
"io/ioutil"
"github.com/lxc/lxd/shared/termios"
from pyxld import Client
client = Client(endpoint="https://10.0.1.10:8443", verify=False)

~/.pypircに以下の内容を記述する。

[distutils]
index-servers =
  pypi
  pypitest

[pypi]
repository=https://pypi.python.org/pypi
package main
import (
"fmt"
"os"
"io"
"github.com/lxc/lxd"
)
func main() {