diff --git a/profile_files/.ptz/v3das/coding_python_venv.txt b/profile_files/.ptz/v3das/coding_python_venv.txt new file mode 100644 index 0000000..4bee2e6 --- /dev/null +++ b/profile_files/.ptz/v3das/coding_python_venv.txt @@ -0,0 +1,6 @@ +tl;dr the use of virtual env: + +# #! /usr/bin/env python +# . venv/bin/activate + + diff --git a/profile_files/.ptz/v3das/network_iptables.txt b/profile_files/.ptz/v3das/network_iptables.txt new file mode 100644 index 0000000..71739ac --- /dev/null +++ b/profile_files/.ptz/v3das/network_iptables.txt @@ -0,0 +1,16 @@ +#!/bin/bash +# Desktop example -> just like in the LWHP repo + +IPT=/sbin/iptables +$IPT -F + +#Policies +$IPT -P OUTPUT ACCEPT +$IPT -P INPUT DROP +$IPT -P FORWARD DROP + +#Allow IN for services +$IPT -A INPUT --in-interface lo -j ACCEPT + +#Allow response +$IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT diff --git a/profile_files/.zsh/setopt.zsh b/profile_files/.zsh/setopt.zsh index 4b865a7..b57c780 100644 --- a/profile_files/.zsh/setopt.zsh +++ b/profile_files/.zsh/setopt.zsh @@ -2,3 +2,4 @@ setopt AUTO_CD setopt COMPLETE_IN_WORD setopt ALWAYS_TO_END setopt PROMPT_SUBST +setopt interactivecomments diff --git a/profile_files/.zshrc b/profile_files/.zshrc index 51c8213..702a522 100644 --- a/profile_files/.zshrc +++ b/profile_files/.zshrc @@ -4,8 +4,7 @@ source ~/.zsh/prompt.zsh source ~/.zsh/completion.zsh source ~/.zsh/aliases.zsh source ~/.zsh/bindkeys.zsh -source ~/.zsh/general_functions.zsh -source ~/.zsh/pentest_functions.zsh +source ~/.zsh/ptz_functions.zsh source ~/.zsh/history.zsh zstyle ':completion:*' menu select