Skip to content

Instantly share code, notes, and snippets.

View tanaka-geek's full-sized avatar

tanaka tanaka-geek

  • Tokyo
View GitHub Profile
{
"name": "desktop-tester",
"displayName": "Desktop-tester",
"description": "",
"version": "0.0.1",
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Other"
@tanaka-geek
tanaka-geek / dnscheck.sh
Created April 10, 2022 05:58
dns query dig +answer
#!/bin/bash
dig ANY @127.0.0.1 helloworld.local +noall +answer
dig A @127.0.0.1 helloworld.local +noall +answer
dig AAAA @127.0.0.1 helloworld.local +noall +answer
dig TXT @127.0.0.1 helloworld.local +noall +answer
dig MX @127.0.0.1 helloworld.local +noall +answer
dig NS @127.0.0.1 helloworld.local +noall +answer
dig -x 192.168.0.2 @127.0.0.1 +noall +answer
@tanaka-geek
tanaka-geek / ldapEnum.py
Created April 9, 2022 08:52
ldap enumeration
import ldap3
ip = '127.0.0.1'
server = ldap3.Server(ip, get_info = ldap3.ALL, port =389, use_ssl = False)
connection = ldap3.Connection(server)
connection.bind()
res = server.info
print(res)
@tanaka-geek
tanaka-geek / whatsmyusername.js
Created April 3, 2022 11:13
OSINT username list generator, enumerating usernames, list of usernames etc.
// OSINT username list generator
const arg = process.argv.slice(2);
if (process.argv.length === 3) {
console.log("[*]usage: node whatsmyusername.js Hugo Smith")
console.log("Enter first name and last name!(E.g Hugo Smith)")
process.exit(1);
}
#!/bin/bash
if [ $# -eq 0 ]
then
echo "./this.sh https://example.com"
fi
curl --insecure -vvI $1 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
@tanaka-geek
tanaka-geek / cookie-stealer.js
Last active December 20, 2021 06:17
cookie-stealer
#!/bin/bash
# Prettify Javascript Code を適用して、このスクリプトを使用
file="$1"
function main(){
printf "\n\e[00;31m#########################################################\e[00m"
printf "\n\e[00;31m JAVASCRIPT SCANNER \e[00m"
@tanaka-geek
tanaka-geek / googleId-osint.md
Last active August 24, 2021 07:02
How to Google and OSINT

GmailアドレスでのGoogle ID検索方法。

hangouts.google.comを開き、左隅にある連絡先をクリックします。

チャットの作成をクリックし、検索に必要なgmailアドレスを入力します。

アカウント名を右クリックし、「インスペクト」を選択します。

開発者ツールでネットワーク(読み込みファイル)のところでautocompleteと検索する。

@tanaka-geek
tanaka-geek / wget.vbs
Created July 17, 2021 08:26
execute all the lines on the commandlet directly, not execute as a file
echo strUrl = WScript.Arguments.Item(0) > wget.vbs
echo StrFile = WScript.Arguments.Item(1) >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_DEFAULT = 0 >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_PRECONFIG = 0 >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_DIRECT = 1 >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_PROXY = 2 >> wget.vbs
echo Dim http, varByteArray, strData, strBuffer, lngCounter, fs, ts >> wget.vbs
echo Err.Clear >> wget.vbs
echo Set http = Nothing >> wget.vbs
echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> wget.vbs
@tanaka-geek
tanaka-geek / developer.bat
Created June 28, 2021 19:01
windows 10 activation code
@echo off
cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ >nul