Skip to content

Instantly share code, notes, and snippets.

View maikroservice's full-sized avatar
🐢
The turtle wins the race.

Maik Ro maikroservice

🐢
The turtle wins the race.
View GitHub Profile
@maikroservice
maikroservice / read_wordlist_to_iterator.rs
Last active March 3, 2022 13:06
Rust - read wordlist from cli into an iterator
use clap::Parser;
use std::boxed::Box;
use std::fs::File;
use std::io::prelude::*; // we need that for BufReader lines()
use std::io::{BufReader, Error};
fn main() {
// read wordlist path from cli
@maikroservice
maikroservice / LDAP_without_credentials.py
Created January 19, 2022 16:40
LDAP query without credentials
#!/usr/bin/python3
import ldap3
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--ip", help="the remote IP to target")
parser.add_argument("--port", help="the remote port", default=389)
@maikroservice
maikroservice / gist:d0e6fc8cbd9940cf4dce31ef566b0a44
Created December 10, 2021 11:38
machine account NT hash from hex password
#!/usr/bin/env python
# python3 port of the script from: https://www.secarma.com/using-machine-account-passwords-during-an-engagement/
import codecs
import hashlib
import binascii
hex_password_mimikatz = "22 a0 7b 88 de 25 60 cb 7b 1d 60 2e b6 7b 8c 4b 56 ef ce 94 bc 02 c3 fc 5b c4 ab bb a1 29 c5 57 24 36 28 b0 0e 80 c8 63 dd 1b b9 50 9f 6c 31 14 8e 02 c9 c6 b2 ba a6 4c fc 7a ad 73 17 57 c0 33 ff e9 06 5b 18 38 12 a3 a1 0d 32 2e 8e a8 78 d0 45 fe 6f fc ac ff d0 fc 06 fb 7d 20 b0 28 f2 ce 3a 46 f7 d8 48 a0 5b c9 9e 50 02 52 07 53 d3 0b 58 81 be 0c 1e e6 14 f7 cb 6f 03 b3 72 f8 ee 3d 6f 59 0b e1 cd 84 17 2e c6 99 4b 3b 58 78 0c cb 82 c2 4c 26 7a 0b 9f c5 99 95 e5 e6 f7 57 83 a4 94 c1 f8 c5 55 55 57 7a 29 5e 82 66 b3 40 cc 6c cf 9c 20 6b fb 8d 35 da bf 88 45 a3 37 c8 dc 44 29 dd bb 71 81 ac db 75 16 f7 2a 1c d3 33 a6 72 e8 16 a2 9b 6b 98 f6 6b ee 5a e3 e9 3a a1 26 c9 db b1 12 ec 33 4f 02 1e 7f de 67 4a c6 4d 33 ac"
# change default prefix from ctrl+b to ctrl+a
unbind C-b
set -g prefix C-a
bind a send-prefix
# enable powerline status bar
set -g default-terminal "screen-256color"
run-shell "source $(find / -name powerline.conf 2>/dev/null)"
@maikroservice
maikroservice / pyproject.toml
Created May 12, 2021 09:19
poetry pyproject.toml for impacket v^0.9.22
[tool.poetry]
name = "impacket"
version = "0.9.22+"
description = ""
authors = ["SecureAuthCorp"]
[tool.poetry.dependencies]
python = "^3.9"
future = "^0.18.2"
six = "^1.16.0"
@maikroservice
maikroservice / vscode
Last active February 25, 2020 17:18
vs code settings
{
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "file-icons",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"**/.classpath": true,