This file contains 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
cat /var/log/auth.log | grep -i -e "disconnected from invalid user" | awk -F' ' '{print $10}' | sort | uniq # INVALID LOGINS USERNAMES (for bash autocompletion and reverse-i search) |
This file contains 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
python -c 'import redis; print(redis.Redis().flushall())' |
This file contains 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 can be saved as 'bruteforce_wordpress_users.sh' | |
# | |
# Requirements: | |
# - python2 (with requests) | |
# - jq | |
# - wget | |
# - WPForce | |
# 1. Cloning WPForce: | |
# git clone https://github.com/n00py/WPForce.git && cd ./WPForce |
This file contains 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
wget -qO- "http://ipwhois.app/json/$(wget -qO- http://checkip.amazonaws.com)" | |
# Optionally - pipe the JSON output to jq: | |
# wget -qO- "http://ipwhois.app/json/$(wget -qO- http://checkip.amazonaws.com)" | jq |
This file contains 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
alias locate='find / -name $!' |
This file contains 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
TOOLKIT_CUDA_VERSION=cu114 pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/$TOOLKIT_CUDA_VERSION | |
This file contains 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 IPython | |
import threading | |
import time | |
import os | |
def display_netron(path): | |
os.system(f'netron {path}') | |
thread = threading.Thread(target=display_netron, args=(output_path,)) | |
thread.start() |