Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import sys
from netaddr import *
import socket
from paramiko import SSHClient,AutoAddPolicy
argv = sys.argv
argc = len(argv)
if 3 > argc:
print "usage:%s <ipaddress/subnetmask> <user> <dictionary>" %(argv[0])
exit()
@0x6d61
0x6d61 / smtpuser.py
Created December 9, 2016 04:49
smtp search user
#!/usr/bin/python
import socket
import sys
if 3 > len(sys.argv):
print "%s <target> <wordlist>" %(sys.argv[0])
sys.exit()
with open(sys.argv[2],'rb') as f:
@0x6d61
0x6d61 / decodeCaesar.cs
Created May 16, 2017 10:07
C# Simple substitution cipher
using System;
using System.Collections.Generic;
class DecodeCaesarTool {
public static void Main(string[] args) {
if(args.Length == 0 ) {
Console.WriteLine("DecodeCaesar.exe <cipher text>");
}else{
for(int i = 1;i<26;i++) {
List<char> r = DecodeCaesar(args[0],i);
Console.WriteLine("seed:{0},{1}",i,new String(r.ToArray()));
(defun range(n m)
(if (> n m)
()
(cons n (range (+ n 1) m)
)
)
)
(defun fizzbuzz(i)
(cond ((eq 0 (mod i 3)) (print "Fizz"))
@0x6d61
0x6d61 / OnionGet.py
Created July 23, 2017 03:09
This program creates an onion domain.
from Crypto.PublicKey import RSA
import hashlib
import base64
import sys
def OnionDomainGen():
RSAkey = RSA.generate(1024)
privateKey = RSAkey.exportKey('PEM')
publicKey = RSAkey.publickey().exportKey('DER')
@0x6d61
0x6d61 / obfuscator.py
Created September 11, 2017 06:19
python obfuscator
import sys
code = """for i in range(1,100):
if i%3 == 0 or "3" in str(i):
print("3!!!")
else:
print(i)"""
test = list(code)
@0x6d61
0x6d61 / dir_search.html
Created May 11, 2018 14:34
XMLHttpRequestでディレクトリを探すJavaScript
<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 / .vimrc
Created June 6, 2018 22:58
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 / client.py
Created June 24, 2018 07:57
Get Physical Location Script
import subprocess
import re
import requests
import time
def wifi():
while True:
bssids = []
signal = []
@0x6d61
0x6d61 / obfsh.rb
Last active June 19, 2019 10:51
難読化shell芸を手助けするscript
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")',