Skip to content

Instantly share code, notes, and snippets.

View googkhan's full-sized avatar
🍉

Gokhan Gunduz googkhan

🍉
View GitHub Profile
@googkhan
googkhan / kerberos_attacks_cheatsheet.md
Created September 11, 2021 21:01 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

{
"apiVersion": "v1beta1",
"kind": "Pod",
"id": "redis-master-pod",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "redis-master-pod",
"containers": [{
"name": "redis-master",
@googkhan
googkhan / iptables-server-restorefile.txt
Created July 24, 2019 20:23
iptables server configuration for apache httpd server
# Generated by me, Gokhan on somewhere at middle of the night
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-N LOGGING
# ssh configurasyon icin sadece vm-netsecp-sshmid e izin vermeli
@googkhan
googkhan / rules-both.iptables
Created July 24, 2019 20:22 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
## based on the blogpost here: http://blog.sjas.de/posts/colored-iptables-output.html
iptables --line-numbers -vnL |\
sed -E 's/^Chain.*$/\x1b[4m&\x1b[0m/' |\
sed -E 's/^num.*/\x1b[33m&\x1b[0m/' |\
sed -E '/([^y] )((REJECT|DROP))/s//\1\x1b[31m\3\x1b[0m/' |\
sed -E '/([^y] )(ACCEPT)/s//\1\x1b[32m\2\x1b[0m/' |\
sed -E '/([ds]pt[s]?:)([[:digit:]]+(:[[:digit:]]+)?)/s//\1\x1b[33;1m\2\x1b[0m/' |\
sed -E '/([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}(\/([[:digit:]]){1,3}){0,1}/s//\x1b[36;1m&\x1b[0m/g' |\
sed -E '/([^n] )(LOGDROP)/s//\1\x1b[33;1m\2\x1b[0m/'|\
@googkhan
googkhan / xox-2.0.py
Created May 4, 2019 21:21
xox trials
import random
board = [[ '', '', ''],
['', '', ''],
['', '', '']]
empty_points = [[0,0], [0,1], [0,2],
[1,0], [1,1], [1,2],
[2,0], [2,1], [2,2]]
while True:
board = """
- - -
- - -
- - -
"""
user1_x = int(input("x kordinati gir: "))
user1_y = int(input("y kordinati gir: "))
# celsius gir fahrenheit versin
print("""Celsius ver fahrenite cevireyim
""")
cel = float(input('Give a celsius to me: '))
fah = cel * 1.8 + 32
print('Your temp in celsius is ', cel)
print('Your temp in fahreneit is ', fah)