Fabric = Shell Script + Python + Useful Methods
pip install fabric
fabric -V
| # decrease key stroke delay | |
| set -sg escape-time 1 | |
| # enable mouse operation | |
| set-option -g mouse on | |
| # fix window name | |
| set-option -g allow-rename off | |
| ############### |
| #!/bin/bash | |
| # [description] | |
| # This script will be executed when someone login with ssh daemon | |
| # [how to use] | |
| # 1. put this file as a /etc/ssh/sshrc | |
| # 2. change file permission with "chmod 755 /etc/ssh/sshrc" | |
| # Send Slack's alerts room |
| #! /bin/bash | |
| # set conf file path | |
| IPTABLES_CONF='/etc/iptables/rules.v4' | |
| # temporary iptables config file | |
| IPTABLES_CONFIG_TMP=`mktemp` | |
| # default rule | |
| echo "*filter" >> $IPTABLES_CONFIG_TMP |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| #! /bin/bash | |
| # set variables | |
| _HASHFILE='/home/pi/script/apache_error_log_check/hash' | |
| _OUTPUTFILE='/home/pi/script/apache_error_log_check/output.txt' | |
| # OLD HASH | |
| if test -f ${_HASHFILE}; then | |
| _OLD_HASH=$(cat ${_HASHFILE}) | |
| else |
| from burp import IBurpExtender | |
| from burp import IHttpListener | |
| class BurpExtender(IBurpExtender, IHttpListener): | |
| def registerExtenderCallbacks(self, callbacks): | |
| self._callbacks = callbacks | |
| self._helpers = callbacks.getHelpers() | |
| callbacks.setExtensionName("Homemade Extension") | |
| callbacks.registerHttpListener(self) | |
| return |
| version: '3.3' | |
| services: | |
| os: | |
| image: "minio/minio" | |
| ports: | |
| - "9000:9000" | |
| volumes: | |
| - os:/data | |
| command: server /data | |
| environment: |
| from burp import IBurpExtender | |
| from burp import IContextMenuFactory | |
| from burp import IHttpRequestResponse | |
| from burp import IMessageEditorController | |
| from burp import IHttpListener | |
| from javax.swing import JMenuItem | |
| from java.io import PrintWriter | |
| from java.lang import RuntimeException | |
| from java.net import URL | |
| import string |
| app | |
| logs/*.log* | |
| node_modules |