This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| man() { | |
| if [ "$1" = "which" ]; then | |
| shift | |
| curl -sL "https://attackd.com/man-which" | grep -m1 -A10 "Sloppy joe." | |
| else | |
| command man "$@" | |
| fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This patch fixes the following error when using certipy-ad with python3.11 (Default in Kali 2023.4): | |
| # [-] Got error: module 'enum' has no attribute '_decompose' | |
| # Reference for fix: https://github.com/ly4k/Certipy/issues/159#issuecomment-1665921154 | |
| # Because the comment's code was not formatted correctly, I used python3.10's enum.py as a reference: | |
| # https://github.com/python/cpython/blob/3.10/Lib/enum.py#L1026-L1053 | |
| # To apply this patch, run the following commands to backup enum.py and apply the patch: | |
| # cp /usr/lib/python3.11/enum.py enum.py.bak | |
| # sudo patch /usr/lib/python3.11/enum.py python3.11-enum.patch | |
| --- enum.py 2023-12-21 20:11:33.166093911 -0500 | |
| +++ /usr/lib/python3.11/enum.py 2023-12-21 20:20:30.649163172 -0500 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . | |
| .. | |
| ........ | |
| @ | |
| * | |
| *.* | |
| *.*.* | |
| 🎠|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Turn it into a router | |
| echo 1 > /proc/sys/net/ipv4/ip_forward | |
| # dnsmasq for DNS and DHCP | |
| # DHCP Options 3 and 6 are for Routers and DNS respectively | |
| dnsmasq --interface=eth0 --bind-interfaces --except-interface=lo \ | |
| --dhcp-range=10.5.5.50,10.5.5.150,12h \ | |
| --conf-file=/dev/null \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| ''' | |
| Demo app to teach my daughter how we can make cool tools and apps with python. | |
| She's working on speeding up her times tables at school, so this creates | |
| a set of multiplication problems for her to solve. | |
| ''' | |
| import random, sys | |
| def makeProblems(num): | |
| x = 0 | |
| while x < num: |