From 843f00c19547926ec9a45c02097524150316a5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?s=C4=B1x?= <51x@keemail.me> Date: Thu, 19 Apr 2018 23:45:16 +0200 Subject: [PATCH] Merging, fixing, making it better. --- profile_files/.ptz/v3das/coding_python_venv.txt | 6 ++++++ profile_files/.ptz/v3das/network_iptables.txt | 16 ++++++++++++++++ profile_files/.zsh/setopt.zsh | 1 + profile_files/.zshrc | 3 +-- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 profile_files/.ptz/v3das/coding_python_venv.txt create mode 100644 profile_files/.ptz/v3das/network_iptables.txt 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