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
| FROM kalilinux/kali-rolling:latest | |
| RUN echo "PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /root/.bashrc | |
| WORKDIR /root/ | |
| CMD ["bash"] |
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 | |
| archiveName=OSWE-`date +%d_%m_%Y`.tar.gz | |
| cd /home/$USER/ | |
| # Cronjob: | |
| # 00 15 * * * /path/cronjob.sh | tee /tmp/cronLogs.txt | |
| tar -czvf $archiveName OSWE/ | |
| mv $archiveName /path/ -v |
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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
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
| import os | |
| playlist = "https://www.youtube.com/user/..." | |
| command = f"youtube-dl -j --flat-playlist --playlist-reverse {playlist} | jq -r '.id' | sed 's_^_https://youtu.be/_'" | |
| output = os.popen(command).read() | |
| print(output) | |
| ytUrls = [] |
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
| # Get USD price of BTC (changing) per minute in your discord server! | |
| # Just replace the webhook_url variable and create a cron as you see fit. | |
| #!/usr/bin/python3 | |
| import requests | |
| import json | |
| # BTCPRICE=`curl -s https://api.coindesk.com/v1/bpi/currentprice/USD.json | jp bpi.USD.rate | cut -d '"' -f2` | |
| # JSON="{\"content\": \"Current price of BTC is: **$BTCPRICE** USD\"}" |
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/python3 | |
| from codecs import encode | |
| import base64 | |
| import argparse | |
| import re | |
| import pycipher | |
| # pycipher import Atbash |
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
| from sys import argv | |
| import json | |
| import jwt | |
| JWTSECRET = "jwtSecretKeyEncryption" | |
| PRIVATEKEY = """-----BEGIN RSA PRIVATE KEY----- | |
| MIIEogIBAAKCAQEAnzyis1ZjfNB0bBgKFMSvvkTtwlvBsaJq7S5wA+kzeVOVpVWw | |
| kWdVha4s38XM/pa/yr47av7+z3VTmvDRyAHcaT92whREFpLv9cj5lTeJSibyr/Mr |
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/python3 | |
| from sys import argv | |
| from os import popen | |
| import json | |
| import argparse | |
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
| # apt-get install squid apache2-utils | |
| # htpasswd -c /etc/squid/.htpasswd user_name | |
| # systemctl restart squid | |
| acl CONNECT method CONNECT | |
| # line 989: add follows for Basic auth | |
| auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/.htpasswd | |
| auth_param basic children 5 | |
| auth_param basic realm Squid Basic Authentication |
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 | |
| mainPATH=$(pwd)/ | |
| bar="---------------------------------------" | |
| echo -e "\n$bar\n\tSubdomains Enumerator\n$bar\n" | |
| read -p "Please enter target (i.e. site.com): " domain | |
| HOST=$domain |
OlderNewer